Add support for ihub system-wide effects

This commit is contained in:
DarkPhoenix
2025-05-24 14:25:21 +02:00
parent 73b3e347fb
commit b1f048ac93
3 changed files with 20 additions and 24 deletions

View File

@@ -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):

View File

@@ -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"""