Add assualt damage control effect
This commit is contained in:
12
eos/effects/modulebonusassaultdamagecontrol.py
Normal file
12
eos/effects/modulebonusassaultdamagecontrol.py
Normal file
@@ -0,0 +1,12 @@
|
||||
type = "active"
|
||||
runTime = "early"
|
||||
|
||||
def handler(fit, src, 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)
|
||||
|
||||
src.forceItemAttr(booster, src.getModifiedItemAttr("resistanceMultiplier"))
|
||||
|
||||
Reference in New Issue
Block a user