Merge branch 'AscendencyPatch' of https://github.com/Ebag333/Pyfa into Ebag333-AscendencyPatch
This commit is contained in:
15
eos/effects/cargoandoreholdcapacitybonusics1.py
Normal file
15
eos/effects/cargoandoreholdcapacitybonusics1.py
Normal 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")
|
||||
17
eos/effects/commandburstaoerolebonus.py
Normal file
17
eos/effects/commandburstaoerolebonus.py
Normal 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
|
||||
@@ -8,5 +8,11 @@ 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("maxGangModules"),
|
||||
)
|
||||
# TODO: test
|
||||
|
||||
14
eos/effects/industrialbonusdronedamage.py
Normal file
14
eos/effects/industrialbonusdronedamage.py
Normal 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
|
||||
@@ -10,3 +10,17 @@ def handler(fit, module, context):
|
||||
fit.extraAttributes["siege"] = True
|
||||
fit.ship.boostItemAttr("maxVelocity", module.getModifiedItemAttr("speedFactor"))
|
||||
fit.ship.multiplyItemAttr("mass", module.getModifiedItemAttr("siegeMassMultiplier"))
|
||||
|
||||
|
||||
fit.modules.filteredItemIncrease(lambda mod: mod.item.group.name in
|
||||
(
|
||||
"Command Burst",
|
||||
) and
|
||||
mod.item.requiresSkill in
|
||||
(
|
||||
"Shield Command",
|
||||
),
|
||||
"warfareBuff4Value",
|
||||
src.getModifiedItemAttr("shipBonusORECapital3"),
|
||||
skill="Capital Industrial Ships",
|
||||
)
|
||||
|
||||
74
eos/effects/miningforemanburstbonusics2.py
Normal file
74
eos/effects/miningforemanburstbonusics2.py
Normal file
@@ -0,0 +1,74 @@
|
||||
# Mining Command Boost
|
||||
#
|
||||
# Used by:
|
||||
# Orca
|
||||
type = "passive"
|
||||
|
||||
|
||||
def handler(fit, src, context):
|
||||
fit.modules.filteredItemIncrease(lambda mod: mod.item.group.name in
|
||||
(
|
||||
"Command Burst",
|
||||
) and
|
||||
mod.item.requiresSkill in
|
||||
(
|
||||
"Mining Foreman",
|
||||
),
|
||||
"buffDuration",
|
||||
src.getModifiedItemAttr("shipBonusICS2"),
|
||||
skill="Industrial Command Ships",
|
||||
)
|
||||
|
||||
fit.modules.filteredItemIncrease(lambda mod: mod.item.group.name in
|
||||
(
|
||||
"Command Burst",
|
||||
) and
|
||||
mod.item.requiresSkill in
|
||||
(
|
||||
"Mining Foreman",
|
||||
),
|
||||
"warfareBuff1Value",
|
||||
src.getModifiedItemAttr("shipBonusICS2"),
|
||||
skill="Industrial Command Ships",
|
||||
)
|
||||
|
||||
fit.modules.filteredItemIncrease(lambda mod: mod.item.group.name in
|
||||
(
|
||||
"Command Burst",
|
||||
) and
|
||||
mod.item.requiresSkill in
|
||||
(
|
||||
"Mining Foreman",
|
||||
),
|
||||
"warfareBuff2Value",
|
||||
src.getModifiedItemAttr("shipBonusICS2"),
|
||||
skill="Industrial Command Ships",
|
||||
)
|
||||
|
||||
fit.modules.filteredItemIncrease(lambda mod: mod.item.group.name in
|
||||
(
|
||||
"Command Burst",
|
||||
) and
|
||||
mod.item.requiresSkill in
|
||||
(
|
||||
"Mining Foreman",
|
||||
),
|
||||
"warfareBuff3Value",
|
||||
src.getModifiedItemAttr("shipBonusICS2"),
|
||||
skill="Industrial Command Ships",
|
||||
)
|
||||
|
||||
fit.modules.filteredItemIncrease(lambda mod: mod.item.group.name in
|
||||
(
|
||||
"Command Burst",
|
||||
) and
|
||||
mod.item.requiresSkill in
|
||||
(
|
||||
"Mining Foreman",
|
||||
),
|
||||
"warfareBuff4Value",
|
||||
src.getModifiedItemAttr("shipBonusICS2"),
|
||||
skill="Industrial Command Ships",
|
||||
)
|
||||
|
||||
# TODO: test
|
||||
70
eos/effects/miningforemanburstbonusorecapital2.py
Normal file
70
eos/effects/miningforemanburstbonusorecapital2.py
Normal file
@@ -0,0 +1,70 @@
|
||||
# Mining Command Boost
|
||||
#
|
||||
# Used by:
|
||||
# Orca
|
||||
type = "passive"
|
||||
|
||||
|
||||
def handler(fit, src, context):
|
||||
fit.modules.filteredItemIncrease(lambda mod: mod.item.group.name in
|
||||
(
|
||||
"Command Burst",
|
||||
) and
|
||||
mod.item.requiresSkill in
|
||||
(
|
||||
"Mining Foreman",
|
||||
),
|
||||
"buffDuration",
|
||||
src.getModifiedItemAttr("shipBonusORECapital2"),
|
||||
)
|
||||
|
||||
fit.modules.filteredItemIncrease(lambda mod: mod.item.group.name in
|
||||
(
|
||||
"Command Burst",
|
||||
) and
|
||||
mod.item.requiresSkill in
|
||||
(
|
||||
"Mining Foreman",
|
||||
),
|
||||
"warfareBuff1Value",
|
||||
src.getModifiedItemAttr("shipBonusORECapital2"),
|
||||
)
|
||||
|
||||
fit.modules.filteredItemIncrease(lambda mod: mod.item.group.name in
|
||||
(
|
||||
"Command Burst",
|
||||
) and
|
||||
mod.item.requiresSkill in
|
||||
(
|
||||
"Mining Foreman",
|
||||
),
|
||||
"warfareBuff2Value",
|
||||
src.getModifiedItemAttr("shipBonusORECapital2"),
|
||||
)
|
||||
|
||||
fit.modules.filteredItemIncrease(lambda mod: mod.item.group.name in
|
||||
(
|
||||
"Command Burst",
|
||||
) and
|
||||
mod.item.requiresSkill in
|
||||
(
|
||||
"Mining Foreman",
|
||||
),
|
||||
"warfareBuff3Value",
|
||||
src.getModifiedItemAttr("shipBonusORECapital2"),
|
||||
)
|
||||
|
||||
fit.modules.filteredItemIncrease(lambda mod: mod.item.group.name in
|
||||
(
|
||||
"Command Burst",
|
||||
) and
|
||||
mod.item.requiresSkill in
|
||||
(
|
||||
"Mining Foreman",
|
||||
),
|
||||
"warfareBuff4Value",
|
||||
src.getModifiedItemAttr("shipBonusORECapital2"),
|
||||
skill="Capital Industrial Ships",
|
||||
)
|
||||
|
||||
# TODO: test
|
||||
70
eos/effects/shieldcommandburstbonusics3.py
Normal file
70
eos/effects/shieldcommandburstbonusics3.py
Normal file
@@ -0,0 +1,70 @@
|
||||
type = "passive"
|
||||
|
||||
|
||||
def handler(fit, src, context):
|
||||
fit.modules.filteredItemIncrease(lambda mod: mod.item.group.name in
|
||||
(
|
||||
"Command Burst",
|
||||
) and
|
||||
mod.item.requiresSkill in
|
||||
(
|
||||
"Shield Command",
|
||||
),
|
||||
"buffDuration",
|
||||
src.getModifiedItemAttr("shipBonusICS3"),
|
||||
skill="Industrial Command Ships",
|
||||
)
|
||||
|
||||
fit.modules.filteredItemIncrease(lambda mod: mod.item.group.name in
|
||||
(
|
||||
"Command Burst",
|
||||
) and
|
||||
mod.item.requiresSkill in
|
||||
(
|
||||
"Shield Command",
|
||||
),
|
||||
"warfareBuff1Value",
|
||||
src.getModifiedItemAttr("shipBonusICS3"),
|
||||
skill="Industrial Command Ships",
|
||||
)
|
||||
|
||||
fit.modules.filteredItemIncrease(lambda mod: mod.item.group.name in
|
||||
(
|
||||
"Command Burst",
|
||||
) and
|
||||
mod.item.requiresSkill in
|
||||
(
|
||||
"Shield Command",
|
||||
),
|
||||
"warfareBuff2Value",
|
||||
src.getModifiedItemAttr("shipBonusICS3"),
|
||||
skill="Industrial Command Ships",
|
||||
)
|
||||
|
||||
fit.modules.filteredItemIncrease(lambda mod: mod.item.group.name in
|
||||
(
|
||||
"Command Burst",
|
||||
) and
|
||||
mod.item.requiresSkill in
|
||||
(
|
||||
"Shield Command",
|
||||
),
|
||||
"warfareBuff3Value",
|
||||
src.getModifiedItemAttr("shipBonusICS3"),
|
||||
skill="Industrial Command Ships",
|
||||
)
|
||||
|
||||
fit.modules.filteredItemIncrease(lambda mod: mod.item.group.name in
|
||||
(
|
||||
"Command Burst",
|
||||
) and
|
||||
mod.item.requiresSkill in
|
||||
(
|
||||
"Shield Command"
|
||||
),
|
||||
"warfareBuff4Value",
|
||||
src.getModifiedItemAttr("shipBonusICS3"),
|
||||
skill="Industrial Command Ships",
|
||||
)
|
||||
|
||||
# TODO: test
|
||||
70
eos/effects/shieldcommandburstbonusorecapital3.py
Normal file
70
eos/effects/shieldcommandburstbonusorecapital3.py
Normal file
@@ -0,0 +1,70 @@
|
||||
type = "passive"
|
||||
|
||||
|
||||
def handler(fit, src, context):
|
||||
fit.modules.filteredItemIncrease(lambda mod: mod.item.group.name in
|
||||
(
|
||||
"Command Burst",
|
||||
) and
|
||||
mod.item.requiresSkill in
|
||||
(
|
||||
"Shield Command",
|
||||
),
|
||||
"buffDuration",
|
||||
src.getModifiedItemAttr("shipBonusORECapital3"),
|
||||
skill="Capital Industrial Ships",
|
||||
)
|
||||
|
||||
fit.modules.filteredItemIncrease(lambda mod: mod.item.group.name in
|
||||
(
|
||||
"Command Burst",
|
||||
) and
|
||||
mod.item.requiresSkill in
|
||||
(
|
||||
"Shield Command",
|
||||
),
|
||||
"warfareBuff1Value",
|
||||
src.getModifiedItemAttr("shipBonusORECapital3"),
|
||||
skill="Capital Industrial Ships",
|
||||
)
|
||||
|
||||
fit.modules.filteredItemIncrease(lambda mod: mod.item.group.name in
|
||||
(
|
||||
"Command Burst",
|
||||
) and
|
||||
mod.item.requiresSkill in
|
||||
(
|
||||
"Shield Command",
|
||||
),
|
||||
"warfareBuff2Value",
|
||||
src.getModifiedItemAttr("shipBonusORECapital3"),
|
||||
skill="Capital Industrial Ships",
|
||||
)
|
||||
|
||||
fit.modules.filteredItemIncrease(lambda mod: mod.item.group.name in
|
||||
(
|
||||
"Command Burst",
|
||||
) and
|
||||
mod.item.requiresSkill in
|
||||
(
|
||||
"Shield Command",
|
||||
),
|
||||
"warfareBuff3Value",
|
||||
src.getModifiedItemAttr("shipBonusORECapital3"),
|
||||
skill="Capital Industrial Ships",
|
||||
)
|
||||
|
||||
fit.modules.filteredItemIncrease(lambda mod: mod.item.group.name in
|
||||
(
|
||||
"Command Burst",
|
||||
) and
|
||||
mod.item.requiresSkill in
|
||||
(
|
||||
"Shield Command",
|
||||
),
|
||||
"warfareBuff4Value",
|
||||
src.getModifiedItemAttr("shipBonusORECapital3"),
|
||||
skill="Capital Industrial Ships",
|
||||
)
|
||||
|
||||
# TODO: test
|
||||
39
eos/effects/shipbonusdronehpdamageminingics4.py
Normal file
39
eos/effects/shipbonusdronehpdamageminingics4.py
Normal 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
|
||||
39
eos/effects/shipbonusdronehpdamageminingorecapital4.py
Normal file
39
eos/effects/shipbonusdronehpdamageminingorecapital4.py
Normal 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("shipBonusORECapital4"),
|
||||
skill="Capital Industrial Ships"
|
||||
)
|
||||
|
||||
fit.drones.filteredItemBoost(lambda drone: drone.item.requiresSkill("Drones"),
|
||||
"shieldCapacity",
|
||||
src.getModifiedItemAttr("shipBonusORECapital4"),
|
||||
skill="Capital Industrial Ships"
|
||||
)
|
||||
|
||||
fit.drones.filteredItemBoost(lambda drone: drone.item.requiresSkill("Drones"),
|
||||
"armorHP",
|
||||
src.getModifiedItemAttr("shipBonusORECapital4"),
|
||||
skill="Capital Industrial Ships"
|
||||
)
|
||||
|
||||
fit.drones.filteredItemBoost(lambda drone: drone.item.requiresSkill("Drones"),
|
||||
"hp",
|
||||
src.getModifiedItemAttr("shipBonusORECapital4"),
|
||||
skill="Capital Industrial Ships"
|
||||
)
|
||||
|
||||
fit.drones.filteredItemBoost(lambda drone: drone.item.requiresSkill("Mining Drone Operation"),
|
||||
"miningAmount",
|
||||
src.getModifiedItemAttr("shipBonusORECapital4"),
|
||||
skill="Capital Industrial Ships"
|
||||
)
|
||||
|
||||
# TODO: test
|
||||
15
eos/effects/shipbonusdroneiceharvestingics5.py
Normal file
15
eos/effects/shipbonusdroneiceharvestingics5.py
Normal 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
|
||||
15
eos/effects/shipbonusdroneiceharvestingorecapital5.py
Normal file
15
eos/effects/shipbonusdroneiceharvestingorecapital5.py
Normal 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("shipBonusORECapital5"),
|
||||
skill="Capital Industrial Ships"
|
||||
)
|
||||
|
||||
# TODO: test
|
||||
14
eos/effects/shipbonusdroneiceharvestingrole.py
Normal file
14
eos/effects/shipbonusdroneiceharvestingrole.py
Normal 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
|
||||
14
eos/effects/shipbonusdroneminingamountrole.py
Normal file
14
eos/effects/shipbonusdroneminingamountrole.py
Normal 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
|
||||
Reference in New Issue
Block a user