Skip to content

Commit

Permalink
Add new suppression effect as dark code (looks like it's not active yet)
Browse files Browse the repository at this point in the history
  • Loading branch information
DarkFenX committed Nov 30, 2023
1 parent 4d8a891 commit 5405289
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
8 changes: 8 additions & 0 deletions eos/saveddata/fit.py
Original file line number Diff line number Diff line change
Expand Up @@ -882,6 +882,14 @@ def __runCommandBoosts(self, runTime="normal"):
if warfareBuffID == 100: # Weather_caustic_toxin_scan_resolution_bonus
self.ship.boostItemAttr("scanResolution", value, stackingPenalties=True)

if warfareBuffID == 2405: # Insurgency Suppression Bonus: Interdiction Range
self.modules.filteredItemBoost(
lambda mod: mod.item.requiresSkill("Navigation"),
"maxRange", value, stackingPenalties=True)
self.modules.filteredItemBoost(
lambda mod: mod.item.group.name == "Stasis Web",
"maxRange", value, stackingPenalties=True)

del self.commandBonuses[warfareBuffID]

def __resetDependentCalcs(self):
Expand Down
9 changes: 9 additions & 0 deletions gui/builtinContextMenus/envEffectAdd.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,8 @@ def getData(self):
data.groups[_t('Sansha Incursion')] = self.getEffectBeacons(
_t('ContextMenu|ProjectedEffectManipulation|Sansha Incursion'))
data.groups[_t('Triglavian Invasion')] = self.getInvasionBeacons()
# data.groups[_t('Pirate Insurgency')] = self.getEffectBeacons(
# _t('ContextMenu|ProjectedEffectManipulation|Insurgency'))
return data

def getEffectBeacons(self, *groups, extra_garbage=()):
Expand Down Expand Up @@ -238,5 +240,12 @@ def getInvasionBeacons(self):
data.items.append(Entry(item.ID, item.name, item.name))
return data

def getInsurgencyBeacons(self):
data = self.getDestructibleBeacons()
# Suppression Interdiction Range Beacon
item = Market.getInstance().getItem(79839)
data.items.append(Entry(item.ID, item.name, item.name))
return data


AddEnvironmentEffect.register()

0 comments on commit 5405289

Please sign in to comment.