Implement remaining changes - besides new modules and ships
This commit is contained in:
5
eos/effects/carriercaldarifightersandbomberssig1.py
Normal file
5
eos/effects/carriercaldarifightersandbomberssig1.py
Normal 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)
|
||||
4
eos/effects/dronemwdspeedbonus.py
Normal file
4
eos/effects/dronemwdspeedbonus.py
Normal 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)
|
||||
4
eos/effects/eliteindustrialwarpspeedbonus1.py
Normal file
4
eos/effects/eliteindustrialwarpspeedbonus1.py
Normal 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)
|
||||
@@ -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"))
|
||||
3
eos/effects/scripttrackingcomputerfalloffbonusbonus.py
Normal file
3
eos/effects/scripttrackingcomputerfalloffbonusbonus.py
Normal file
@@ -0,0 +1,3 @@
|
||||
type = "passive"
|
||||
def handler(fit, module, context):
|
||||
module.boostItemAttr("falloffBonus", module.getModifiedChargeAttr("falloffBonusBonus"))
|
||||
@@ -4,4 +4,3 @@
|
||||
type = "passive"
|
||||
def handler(fit, module, context):
|
||||
module.boostItemAttr("maxRangeBonus", module.getModifiedChargeAttr("maxRangeBonusBonus"))
|
||||
module.boostItemAttr("falloffBonus", module.getModifiedChargeAttr("falloffBonusBonus"))
|
||||
|
||||
@@ -359,4 +359,4 @@ class Unit(EqBase):
|
||||
pass
|
||||
|
||||
class Traits(EqBase):
|
||||
pass
|
||||
pass
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user