Implement remaining changes - besides new modules and ships

This commit is contained in:
DarkPhoenix
2014-05-31 19:16:15 +04:00
parent 7b3e0fe3b0
commit c9dca6cd2a
8 changed files with 27 additions and 3 deletions

View File

@@ -0,0 +1,5 @@
type = "passive"
def handler(fit, ship, context):
level = fit.character.getSkill("Caldari Carrier").level
fit.drones.filteredItemBoost(lambda drone: drone.item.requiresSkill("Fighters") or drone.item.requiresSkill("Fighter Bombers"),
"signatureRadius", ship.getModifiedItemAttr("carrierCaldariBonus1") * level)

View File

@@ -0,0 +1,4 @@
type = "passive"
def handler(fit, module, context):
fit.drones.filteredItemBoost(lambda drone: drone.item.requiresSkill("Drones"), "maxVelocity",
module.getModifiedItemAttr("speedFactor"), stackingPenalties = True)

View File

@@ -0,0 +1,4 @@
type = "passive"
def handler(fit, ship, context):
level = fit.character.getSkill("Transport Ships").level
fit.ship.boostItemAttr("warpSpeedMultiplier", ship.getModifiedItemAttr("eliteBonusIndustrial1") * level)

View File

@@ -0,0 +1,9 @@
type = "gang", "active"
gangBoost = "miningMaxRange"
def handler(fit, module, context):
if "gang" not in context: return
fit.modules.filteredItemBoost(lambda mod: mod.item.requiresSkill("Gas Cloud Harvesting") or mod.item.requiresSkill("Ice Harvesting") or mod.item.requiresSkill("Mining"),
"maxRange", module.getModifiedItemAttr("commandBonus"),
stackingPenalties = True)
fit.modules.filteredItemBoost(lambda mod: mod.item.requiresSkill("CPU Management"),
"surveyScanRange", module.getModifiedItemAttr("commandBonus"))

View File

@@ -0,0 +1,3 @@
type = "passive"
def handler(fit, module, context):
module.boostItemAttr("falloffBonus", module.getModifiedChargeAttr("falloffBonusBonus"))

View File

@@ -4,4 +4,3 @@
type = "passive"
def handler(fit, module, context):
module.boostItemAttr("maxRangeBonus", module.getModifiedChargeAttr("maxRangeBonusBonus"))
module.boostItemAttr("falloffBonus", module.getModifiedChargeAttr("falloffBonusBonus"))

View File

@@ -359,4 +359,4 @@ class Unit(EqBase):
pass
class Traits(EqBase):
pass
pass

View File

@@ -372,7 +372,7 @@ class Module(HandledItem, HandledCharge, ItemAttrShortcut, ChargeAttrShortcut):
if shipType is not None:
fitsOnType.add(shipType)
for i in xrange(1, 5):
for i in xrange(1, 6):
shipType = self.getModifiedItemAttr("canFitShipType%d" % i)
if shipType is not None:
fitsOnType.add(shipType)