Replace submodules with actual files
Submodules never were actually useful
This commit is contained in:
11
eos/effects/damagecontrol.py
Executable file
11
eos/effects/damagecontrol.py
Executable file
@@ -0,0 +1,11 @@
|
||||
# Used by:
|
||||
# Modules from group: Damage Control (14 of 14)
|
||||
type = "active"
|
||||
def handler(fit, module, context):
|
||||
for layer, attrPrefix in (('shield', 'shield'), ('armor', 'armor'), ('hull', '')):
|
||||
for damageType in ('Kinetic', 'Thermal', 'Explosive', 'Em'):
|
||||
bonus = "%s%sDamageResonance" % (attrPrefix, damageType)
|
||||
bonus = "%s%s" % (bonus[0].lower(), bonus[1:])
|
||||
booster = "%s%sDamageResonance" % (layer, damageType)
|
||||
fit.ship.multiplyItemAttr(bonus, module.getModifiedItemAttr(booster),
|
||||
stackingPenalties=True, penaltyGroup="preMul")
|
||||
Reference in New Issue
Block a user