Add mutadaptive RR effect and related UI support
This commit is contained in:
8
eos/effects/shipmoduleremotearmormutadaptiverepairer.py
Normal file
8
eos/effects/shipmoduleremotearmormutadaptiverepairer.py
Normal file
@@ -0,0 +1,8 @@
|
||||
type = "projected", "active"
|
||||
|
||||
|
||||
def handler(fit, container, context, **kwargs):
|
||||
if "projected" in context:
|
||||
bonus = container.getModifiedItemAttr("armorDamageAmount")
|
||||
duration = container.getModifiedItemAttr("duration") / 1000.0
|
||||
fit.extraAttributes.increase("armorRepair", bonus / duration, **kwargs)
|
||||
@@ -1423,12 +1423,13 @@ class Fit(object):
|
||||
continue
|
||||
|
||||
remote_module_groups = {
|
||||
"Remote Armor Repairer" : "Armor",
|
||||
"Remote Armor Repairer": "Armor",
|
||||
"Ancillary Remote Armor Repairer": "Armor",
|
||||
"Remote Hull Repairer" : "Hull",
|
||||
"Remote Shield Booster" : "Shield",
|
||||
"Mutadaptive Remote Armor Repairer": "Armor",
|
||||
"Remote Hull Repairer": "Hull",
|
||||
"Remote Shield Booster": "Shield",
|
||||
"Ancillary Remote Shield Booster": "Shield",
|
||||
"Remote Capacitor Transmitter" : "Capacitor",
|
||||
"Remote Capacitor Transmitter": "Capacitor",
|
||||
}
|
||||
|
||||
module_group = stuff.item.group.name
|
||||
|
||||
@@ -332,7 +332,7 @@ class Miscellanea(ViewColumn):
|
||||
text = "{0}s".format(formatAmount(float(recalibration) / 1000, 3, 0, 3))
|
||||
tooltip = "Sensor recalibration time"
|
||||
return text, tooltip
|
||||
elif itemGroup == "Remote Armor Repairer":
|
||||
elif itemGroup in ("Remote Armor Repairer", "Mutadaptive Remote Armor Repairer"):
|
||||
repAmount = stuff.getModifiedItemAttr("armorDamageAmount")
|
||||
cycleTime = stuff.getModifiedItemAttr("duration")
|
||||
if not repAmount or not cycleTime:
|
||||
|
||||
Reference in New Issue
Block a user