Fix several miscalculations

This commit is contained in:
DarkPhoenix
2013-07-14 15:25:11 +04:00
parent c67034eba1
commit bc592eaabe
4 changed files with 85 additions and 62 deletions

View File

@@ -0,0 +1,9 @@
# Used by:
# Drones named like: SD (3 of 3)
type = "projected", "active"
def handler(fit, container, context):
if "projected" in context:
fit.ship.multiplyItemAttr("maxTargetRange", container.getModifiedItemAttr("maxTargetRangeMultiplier"),
stackingPenalties = True, penaltyGroup="postMul")
fit.ship.multiplyItemAttr("scanResolution", container.getModifiedItemAttr("scanResolutionMultiplier"),
stackingPenalties = True, penaltyGroup="postMul")

View File

@@ -4,5 +4,5 @@
type = "passive"
def handler(fit, ship, context):
level = fit.character.getSkill("Gallente Battlecruiser").level
fit.modules.filteredItemBoost(lambda mod: mod.item.group.name == "Armor Repair Unit",
fit.modules.filteredItemBoost(lambda mod: mod.item.requiresSkill("Repair Systems"),
"armorDamageAmount", ship.getModifiedItemAttr("shipBonusGBC2") * level)

View File

@@ -0,0 +1,14 @@
# Used by:
# Drones named like: TD (3 of 3)
type = "projected", "active"
def handler(fit, container, context):
if "projected" in context:
fit.modules.filteredItemMultiply(lambda mod: mod.item.requiresSkill("Gunnery"),
"trackingSpeed", container.getModifiedItemAttr("trackingSpeedMultiplier"),
stackingPenalties = True, penaltyGroup="postMul")
fit.modules.filteredItemMultiply(lambda mod: mod.item.requiresSkill("Gunnery"),
"maxRange", container.getModifiedItemAttr("maxRangeMultiplier"),
stackingPenalties = True, penaltyGroup="postMul")
fit.modules.filteredItemMultiply(lambda mod: mod.item.requiresSkill("Gunnery"),
"falloff", container.getModifiedItemAttr("fallofMultiplier"),
stackingPenalties = True, penaltyGroup="postMul")