From 90f1947ea745f844f8a9019e23b2d95500f1f7c2 Mon Sep 17 00:00:00 2001 From: blitzmann Date: Sun, 20 May 2018 14:14:35 -0400 Subject: [PATCH] Implement caustic weather --- eos/effects/weathercaustictoxin.py | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/eos/effects/weathercaustictoxin.py b/eos/effects/weathercaustictoxin.py index 726601d67..708ce8925 100644 --- a/eos/effects/weathercaustictoxin.py +++ b/eos/effects/weathercaustictoxin.py @@ -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') +