From 50911c7fc8bb8b6afa6db2cd52561756ebdbd069 Mon Sep 17 00:00:00 2001 From: blitzman Date: Fri, 21 Oct 2016 22:16:24 -0400 Subject: [PATCH] test --- eos/effects/chargebonuswarfarecharge.py | 16 ++++++++++++++++ eos/effects/modulebonuswarfarelinkskirmish.py | 6 ++++++ scripts/prep_data.py | 2 +- 3 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 eos/effects/chargebonuswarfarecharge.py create mode 100644 eos/effects/modulebonuswarfarelinkskirmish.py diff --git a/eos/effects/chargebonuswarfarecharge.py b/eos/effects/chargebonuswarfarecharge.py new file mode 100644 index 000000000..8bc9db28b --- /dev/null +++ b/eos/effects/chargebonuswarfarecharge.py @@ -0,0 +1,16 @@ +# We should probably have something a little less hacky in place, but time is money! +type = "passive" +def handler(fit, module, context): + + def runEffect(id, value): + if id == 21: # Skirmish Burst: Interdiction Maneuvers: Tackle Range + groups = ("Stasis Web", "Warp Scrambler") + fit.modules.filteredItemBoost(lambda mod: mod.item.group.name in groups, + "maxRange", value, + stackingPenalties=True) + + print "Inside the CHARGE" + for x in xrange(1, 4): + if module.getModifiedChargeAttr("warfareBuff{}ID".format(x)): + runEffect(module.getModifiedChargeAttr("warfareBuff{}ID".format(x)), module.getModifiedChargeAttr("warfareBuff{}Value".format(x))) + diff --git a/eos/effects/modulebonuswarfarelinkskirmish.py b/eos/effects/modulebonuswarfarelinkskirmish.py new file mode 100644 index 000000000..bdd6fb4a9 --- /dev/null +++ b/eos/effects/modulebonuswarfarelinkskirmish.py @@ -0,0 +1,6 @@ + +type = "passive" +def handler(fit, src, context): + print "Inside the MODULE" + print "1 ID/value", src.getModifiedChargeAttr("warfareBuff1ID"), src.getModifiedChargeAttr("warfareBuff1Value") + diff --git a/scripts/prep_data.py b/scripts/prep_data.py index b4508d208..723338e93 100644 --- a/scripts/prep_data.py +++ b/scripts/prep_data.py @@ -82,7 +82,7 @@ if not args.nojson: "invtypes,mapbulk_marketGroups,phbmetadata,phbtraits,fsdTypeOverrides,"\ "evegroups,evetypes,evecategories,marketProxy()_GetMarketGroups()" - FlowManager(miners, writers).run(list, "multi") + FlowManager(miners, writers).run('', "en-us") ### SQL Convert import jsonToSql