Fix remote AAR
This commit is contained in:
@@ -6,8 +6,10 @@ runTime = "late"
|
||||
type = "active"
|
||||
def handler(fit, module, context):
|
||||
if module.charge and module.charge.name == "Nanite Repair Paste":
|
||||
module.multiplyItemAttr("armorDamageAmount", 3)
|
||||
multiplier = 3
|
||||
else:
|
||||
multiplier = 1
|
||||
|
||||
amount = module.getModifiedItemAttr("armorDamageAmount")
|
||||
amount = module.getModifiedItemAttr("armorDamageAmount") * multiplier
|
||||
speed = module.getModifiedItemAttr("duration") / 1000.0
|
||||
fit.extraAttributes.increase("armorRepair", amount / speed)
|
||||
|
||||
@@ -2,10 +2,12 @@ runTime = "late"
|
||||
type = "projected", "active"
|
||||
def handler(fit, module, context):
|
||||
if "projected" not in context: return
|
||||
|
||||
|
||||
if module.charge and module.charge.name == "Nanite Repair Paste":
|
||||
module.multiplyItemAttr("armorDamageAmount", 3)
|
||||
|
||||
amount = module.getModifiedItemAttr("armorDamageAmount")
|
||||
multiplier = 3
|
||||
else:
|
||||
multiplier = 1
|
||||
|
||||
amount = module.getModifiedItemAttr("armorDamageAmount") * multiplier
|
||||
speed = module.getModifiedItemAttr("duration") / 1000.0
|
||||
fit.extraAttributes.increase("armorRepair", amount / speed)
|
||||
Reference in New Issue
Block a user