Effects used by Orca

first pass
This commit is contained in:
Ebag333
2016-11-18 20:53:57 -08:00
parent d6edb57a10
commit 1fb5bbc36e
10 changed files with 198 additions and 2 deletions

View File

@@ -0,0 +1,15 @@
# cargoCapacityMultiply
#
# Used by:
# Orca
type = "passive"
def handler(fit, src, context):
fit.ship.boostItemAttr("specialOreHoldCapacity",
src.getModifiedItemAttr("shipBonusICS1"),
skill="Industrial Command Ships")
fit.ship.boostItemAttr("capacity",
src.getModifiedItemAttr("shipBonusICS1"),
skill="Industrial Command Ships")

View File

@@ -0,0 +1,17 @@
# Command Burst AOE Bonus
#
# Used by:
# Orca
type = "passive"
# TODO: this isn't applying correctly :(
def handler(fit, src, context):
fit.modules.filteredItemBoost(lambda mod: mod.item.group.name in
(
"Command Burst",
),
"maxRange",
src.getModifiedItemAttr("roleBonusCommandBurstAoERange"),
)
# TODO: test

View File

@@ -5,6 +5,14 @@
# Ship: Orca
# Ship: Rorqual
type = "passive"
def handler(fit, ship, context):
fit.modules.filteredItemIncrease(lambda mod: mod.item.group.name == "Gang Coordinator",
"maxGroupActive", ship.getModifiedItemAttr("maxGangModules"))
fit.modules.filteredItemIncrease(lambda mod: mod.item.group.name in
(
"Command Burst",
),
"maxGroupOnline",
ship.getModifiedItemAttr("shipBonusICS2"),
)
# TODO: test

View File

@@ -0,0 +1,14 @@
# Drone damage bonus
#
# Used by:
# Orca
type = "passive"
def handler(fit, src, context):
fit.drones.filteredItemBoost(lambda drone: drone.item.requiresSkill("Drones"),
"damageMultiplier",
src.getModifiedItemAttr("industrialBonusDroneDamage"),
)
# TODO: test

View File

@@ -0,0 +1,30 @@
# Mining Command Boost
#
# Used by:
# Orca
type = "passive"
def handler(fit, src, context):
fit.ship.boostItemAttr("buffDuration",
src.getModifiedItemAttr("shipBonusICS2"),
skill="Industrial Command Ships",
)
fit.ship.boostItemAttr("warfareBuff1Value",
src.getModifiedItemAttr("shipBonusICS2"),
skill="Industrial Command Ships",
)
fit.ship.boostItemAttr("warfareBuff2Value",
src.getModifiedItemAttr("shipBonusICS2"),
skill="Industrial Command Ships",
)
fit.ship.boostItemAttr("warfareBuff3Value",
src.getModifiedItemAttr("shipBonusICS2"),
skill="Industrial Command Ships",
)
fit.ship.boostItemAttr("warfareBuff4Value",
src.getModifiedItemAttr("shipBonusICS2"),
skill="Industrial Command Ships",
)
# TODO: test

View File

@@ -0,0 +1,30 @@
# Shield Command Boost
#
# Used by:
# Orca
type = "passive"
def handler(fit, src, context):
fit.ship.boostItemAttr("buffDuration",
src.getModifiedItemAttr("shipBonusICS3"),
skill="Industrial Command Ships",
)
fit.ship.boostItemAttr("warfareBuff1Value",
src.getModifiedItemAttr("shipBonusICS3"),
skill="Industrial Command Ships",
)
fit.ship.boostItemAttr("warfareBuff2Value",
src.getModifiedItemAttr("shipBonusICS3"),
skill="Industrial Command Ships",
)
fit.ship.boostItemAttr("warfareBuff3Value",
src.getModifiedItemAttr("shipBonusICS3"),
skill="Industrial Command Ships",
)
fit.ship.boostItemAttr("warfareBuff4Value",
src.getModifiedItemAttr("shipBonusICS3"),
skill="Industrial Command Ships",
)
# TODO: test

View File

@@ -0,0 +1,39 @@
# Drone hitpoints, damage, and mining yield
#
# Used by:
# Orca
type = "passive"
def handler(fit, src, context):
fit.drones.filteredItemBoost(lambda drone: drone.item.requiresSkill("Drones"),
"damageMultiplier",
src.getModifiedItemAttr("shipBonusICS4"),
skill="Industrial Command Ships"
)
fit.drones.filteredItemBoost(lambda drone: drone.item.requiresSkill("Drones"),
"shieldCapacity",
src.getModifiedItemAttr("shipBonusICS4"),
skill="Industrial Command Ships"
)
fit.drones.filteredItemBoost(lambda drone: drone.item.requiresSkill("Drones"),
"armorHP",
src.getModifiedItemAttr("shipBonusICS4"),
skill="Industrial Command Ships"
)
fit.drones.filteredItemBoost(lambda drone: drone.item.requiresSkill("Drones"),
"hp",
src.getModifiedItemAttr("shipBonusICS4"),
skill="Industrial Command Ships"
)
fit.drones.filteredItemBoost(lambda drone: drone.item.requiresSkill("Mining Drone Operation"),
"miningAmount",
src.getModifiedItemAttr("shipBonusICS4"),
skill="Industrial Command Ships"
)
# TODO: test

View File

@@ -0,0 +1,15 @@
# Ice Harvesting Drone Duration
#
# Used by:
# Orca
type = "passive"
def handler(fit, src, context):
fit.drones.filteredItemBoost(lambda drone: drone.item.requiresSkill("Ice Harvesting Drone Operation"),
"duration",
src.getModifiedItemAttr("shipBonusICS5"),
skill="Industrial Command Ships"
)
# TODO: test

View File

@@ -0,0 +1,14 @@
# Ice Harvesting Drone Duration
#
# Used by:
# Orca
type = "passive"
def handler(fit, src, context):
fit.drones.filteredItemBoost(lambda drone: drone.item.requiresSkill("Ice Harvesting Drone Operation"),
"duration",
src.getModifiedItemAttr("roleBonusDroneIceHarvestingSpeed")
)
# TODO: test

View File

@@ -0,0 +1,14 @@
# Drone hitpoints, damage, and mining yield
#
# Used by:
# Orca
type = "passive"
def handler(fit, src, context):
fit.drones.filteredItemBoost(lambda drone: drone.item.requiresSkill("Mining Drone Operation"),
"miningAmount",
src.getModifiedItemAttr("roleBonusDroneMiningYield"),
)
# TODO: test