Implement caustic weather

This commit is contained in:
blitzmann
2018-05-20 14:14:35 -04:00
parent afd16e1afd
commit 90f1947ea7

View File

@@ -1,6 +1,13 @@
runTime = "early"
type = ("projected", "passive")
type = ("projected", "passive", "gang")
def handler(fit, beacon, context):
pass
def handler(fit, beacon, context, **kwargs):
for x in range(1, 3):
if beacon.getModifiedItemAttr("warfareBuff{}ID".format(x)):
value = beacon.getModifiedItemAttr("warfareBuff{}Value".format(x))
id = beacon.getModifiedItemAttr("warfareBuff{}ID".format(x))
if id:
fit.addCommandBonus(id, value, beacon, kwargs['effect'], 'early')