Skip to content

Commit ea9b67c

Browse files
committed
Implement python effects
1 parent c4cf1d1 commit ea9b67c

File tree

1 file changed

+61
-1
lines changed

1 file changed

+61
-1
lines changed

eos/effects.py

Lines changed: 61 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32221,7 +32221,7 @@ class Effect6878(BaseEffect):
3222132221
@staticmethod
3222232222
def handler(fit, src, context, projectionRange, **kwargs):
3222332223
fit.modules.filteredItemBoost(lambda mod: mod.item.group.name == 'Warp Scrambler', 'maxRange',
32224-
src.getModifiedItemAttr('eliteBonusBlackOps4'), stackingPenalties=True, skill='Black Ops', **kwargs)
32224+
src.getModifiedItemAttr('eliteBonusBlackOps4'), skill='Black Ops', **kwargs)
3222532225

3222632226

3222732227
class Effect6879(BaseEffect):
@@ -40968,6 +40968,66 @@ def handler(fit, ship, context, projectionRange, **kwargs):
4096840968
fit.modules.filteredItemBoost(lambda mod: mod.item.group.name == 'Stasis Web', 'maxRange', bonus, **kwargs)
4096940969

4097040970

40971+
class Effect12183(BaseEffect):
40972+
"""
40973+
shipBonusATpropDuration
40974+
40975+
Used by:
40976+
Ship: Python
40977+
"""
40978+
40979+
type = 'passive'
40980+
40981+
@staticmethod
40982+
def handler(fit, ship, context, projectionRange, **kwargs):
40983+
fit.modules.filteredItemBoost(
40984+
lambda mod: mod.item.group.name in ('Propulsion Module', 'Microwarpdrive'),
40985+
'duration', ship.getModifiedItemAttr('shipBonusATprobDuration'), **kwargs)
40986+
40987+
40988+
class Effect12184(BaseEffect):
40989+
"""
40990+
shipBonusATAllShieldResistCB3
40991+
40992+
Used by:
40993+
Ship: Python
40994+
"""
40995+
40996+
type = 'passive'
40997+
40998+
@staticmethod
40999+
def handler(fit, ship, context, projectionRange, **kwargs):
41000+
for dmgType in ('em', 'thermal', 'kinetic', 'explosive'):
41001+
fit.ship.boostItemAttr(
41002+
'shield{}DamageResonance'.format(dmgType.capitalize()),
41003+
ship.getModifiedItemAttr('shipBonusCB3'),
41004+
skill='Caldari Battleship', **kwargs)
41005+
41006+
41007+
class Effect12185(BaseEffect):
41008+
"""
41009+
shipBonusBurstJammer ATB
41010+
41011+
Used by:
41012+
Ship: Python
41013+
"""
41014+
41015+
type = 'passive'
41016+
41017+
@staticmethod
41018+
def handler(fit, ship, context, projectionRange, **kwargs):
41019+
# Get pilot sec status bonus directly here, instead of going through the intermediary effects
41020+
try:
41021+
sec_status = ship.owner.getPilotSecurity(low_limit=-10, high_limit=0)
41022+
except (KeyboardInterrupt, SystemExit):
41023+
raise
41024+
except:
41025+
return
41026+
bonus = ship.getModifiedItemAttr('ATBurstJammerStrengthBonus') * sec_status
41027+
for attr in ('ecmBurstRange', 'scanRadarStrengthBonus', 'scanGravimetricStrengthBonus', 'scanLadarStrengthBonus', 'scanMagnetometricStrengthBonus'):
41028+
fit.modules.filteredItemBoost(lambda mod: mod.item.group.name == 'Burst Jammer', attr, bonus, **kwargs)
41029+
41030+
4097141031
class Effect12202(BaseEffect):
4097241032
"""
4097341033
ATcruiserTackleBonus2

0 commit comments

Comments
 (0)