Stop applying neut resistance twice
Energy neut/nos resistance was being applied twice when a nos or neut is projected onto a fit. I have removed the redundant resistance application in energyneutralizerfalloff.py and also in energynosferatufalloff.py as they are already being applied once in eos.saveddata.fit.addDrain.
This commit is contained in:
@@ -13,9 +13,6 @@ def handler(fit, src, context, **kwargs):
|
||||
hasattr(src, "amountActive")):
|
||||
amount = src.getModifiedItemAttr("energyNeutralizerAmount")
|
||||
|
||||
if 'effect' in kwargs:
|
||||
amount *= ModifiedAttributeDict.getResistance(fit, kwargs['effect'])
|
||||
|
||||
time = src.getModifiedItemAttr("duration")
|
||||
|
||||
fit.addDrain(src, time, amount, 0)
|
||||
|
||||
@@ -12,9 +12,6 @@ def handler(fit, src, context, **kwargs):
|
||||
amount = src.getModifiedItemAttr("powerTransferAmount")
|
||||
time = src.getModifiedItemAttr("duration")
|
||||
|
||||
if 'effect' in kwargs:
|
||||
amount *= ModifiedAttributeDict.getResistance(fit, kwargs['effect'])
|
||||
|
||||
if "projected" in context:
|
||||
fit.addDrain(src, time, amount, 0)
|
||||
elif "module" in context:
|
||||
|
||||
Reference in New Issue
Block a user