Add support for ihub system-wide effects
This commit is contained in:
@@ -63,11 +63,10 @@ class Effect100001(BaseEffect):
|
||||
|
||||
@staticmethod
|
||||
def handler(fit, beacon, context, projectionRange, **kwargs):
|
||||
for i in (1, 4):
|
||||
for i in range(1, 4):
|
||||
if id := beacon.getModifiedItemAttr(f'warfareBuff{i}ID'):
|
||||
value = beacon.getModifiedItemAttr(f'warfareBuff{i}Value')
|
||||
if id:
|
||||
fit.addCommandBonus(id, value, beacon, kwargs['effect'], 'early')
|
||||
fit.addCommandBonus(id, value, beacon, kwargs['effect'], 'early')
|
||||
|
||||
|
||||
class Effect4(BaseEffect):
|
||||
|
||||
@@ -66,8 +66,8 @@ class Module(HandledItem, HandledCharge, ItemAttrShortcut, ChargeAttrShortcut, M
|
||||
"""An instance of this class represents a module together with its charge and modified attributes"""
|
||||
MINING_ATTRIBUTES = ("miningAmount",)
|
||||
SYSTEM_GROUPS = (
|
||||
"Effect Beacon", "MassiveEnvironments", "Abyssal Hazards",
|
||||
"Non-Interactable Object", "Destructible Effect Beacon")
|
||||
"Effect Beacon", "MassiveEnvironments", "Abyssal Hazards", "Non-Interactable Object",
|
||||
"Destructible Effect Beacon", "Sovereignty Hub System Effect Generator Upgrades")
|
||||
|
||||
def __init__(self, item, baseItem=None, mutaplasmid=None):
|
||||
"""Initialize a module from the program"""
|
||||
|
||||
Reference in New Issue
Block a user