Add support for insurgency suppression bonus

This commit is contained in:
DarkPhoenix
2025-03-13 11:28:57 +01:00
parent 9c519b878e
commit 7e92b58c62
3 changed files with 28 additions and 5 deletions

View File

@@ -37,6 +37,20 @@ class DummyEffect(BaseEffect):
pass
class Effect100000(BaseEffect):
runTime = 'early'
type = ('projected', 'passive', 'gang')
@staticmethod
def handler(fit, beacon, context, projectionRange, **kwargs):
if beacon.getModifiedItemAttr('warfareBuff1ID'):
value = beacon.getModifiedItemAttr('warfareBuff1Value')
id = beacon.getModifiedItemAttr('warfareBuff1ID')
if id:
fit.addCommandBonus(id, value, beacon, kwargs['effect'], 'early')
class Effect4(BaseEffect):
"""
shieldBoosting