Skip to content

Commit

Permalink
Update to Citadel 1.14 and update effect headers0
Browse files Browse the repository at this point in the history
  • Loading branch information
blitzmann committed May 24, 2016
1 parent 90e54c6 commit fd62c25
Show file tree
Hide file tree
Showing 62 changed files with 200 additions and 73 deletions.
2 changes: 1 addition & 1 deletion eos/effects/capitallauncherskillcruisecitadelemdamage1.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# capitalLauncherSkillCruiseCitadelEmDamage1
# capitalLauncherSkillCruiseCitadelEmDamage1
#
# Used by:
# Skill: XL Cruise Missiles
Expand Down
5 changes: 1 addition & 4 deletions eos/effects/decreasetargetspeed.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
# decreaseTargetSpeed
#
# Used by:
# Drones from group: Stasis Webifying Drone (3 of 3)
# Not used by any item
type = "active", "projected"
def handler(fit, module, context):
if "projected" not in context:
Expand Down
5 changes: 1 addition & 4 deletions eos/effects/dronedamagebonusrequringdrones.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
# droneDamageBonusRequringDrones
#
# Used by:
# Skill: Drone Interfacing
# Not used by any item
type = "passive"
def handler(fit, skill, context):
fit.drones.filteredItemBoost(lambda drone: drone.item.requiresSkill("Drones"),
Expand Down
5 changes: 1 addition & 4 deletions eos/effects/elitebonuscommanddestroyermwdsigradius3.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
# eliteBonusCommandDestroyerMWDSigRadius3
#
# Used by:
# Ships from group: Command Destroyers (4 of 4)
# Not used by any item
type = "passive"
def handler(fit, src, context):
fit.modules.filteredItemBoost(lambda mod: mod.item.requiresSkill("High Speed Maneuvering"), "signatureRadiusBonus", src.getModifiedItemAttr("eliteBonusCommandDestroyer3"), skill="Command Destroyers")
4 changes: 4 additions & 0 deletions eos/effects/elitebonuslogisticremotearmorrepaircapneed1.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# eliteBonusLogisticRemoteArmorRepairCapNeed1
#
# Used by:
# Ship: Oneiros
type = "passive"
def handler(fit, src, context):
fit.modules.filteredItemBoost(lambda mod: mod.item.requiresSkill("Remote Armor Repair Systems"), "capacitorNeed", src.getModifiedItemAttr("eliteBonusLogistics1"), skill="Logistics Cruisers")
4 changes: 4 additions & 0 deletions eos/effects/elitebonuslogisticremotearmorrepaircapneed2.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# eliteBonusLogisticRemoteArmorRepairCapNeed2
#
# Used by:
# Ship: Guardian
type = "passive"
def handler(fit, src, context):
fit.modules.filteredItemBoost(lambda mod: mod.item.requiresSkill("Remote Armor Repair Systems"), "capacitorNeed", src.getModifiedItemAttr("eliteBonusLogistics2"), skill="Logistics Cruisers")
5 changes: 5 additions & 0 deletions eos/effects/elitebonuslogisticshieldtransfercapneed1.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# eliteBonusLogisticShieldTransferCapNeed1
#
# Used by:
# Ship: Basilisk
# Ship: Etana
type = "passive"
def handler(fit, src, context):
fit.modules.filteredItemBoost(lambda mod: mod.item.requiresSkill("Shield Emission Systems"), "capacitorNeed", src.getModifiedItemAttr("eliteBonusLogistics1"), skill="Logistics Cruisers")
4 changes: 4 additions & 0 deletions eos/effects/elitebonuslogisticshieldtransfercapneed2.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# eliteBonusLogisticShieldTransferCapNeed2
#
# Used by:
# Ship: Scimitar
type = "passive"
def handler(fit, src, context):
fit.modules.filteredItemBoost(lambda mod: mod.item.requiresSkill("Shield Emission Systems"), "capacitorNeed", src.getModifiedItemAttr("eliteBonusLogistics2"), skill="Logistics Cruisers")
5 changes: 1 addition & 4 deletions eos/effects/energydestabilizationnew.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
# energyDestabilizationNew
#
# Used by:
# Drones from group: Energy Neutralizer Drone (3 of 3)
# Not used by any item
from eos.types import State
type = "active", "projected"
def handler(fit, container, context):
Expand Down
12 changes: 12 additions & 0 deletions eos/effects/energyneutralizerentity.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# energyNeutralizerEntity
#
# Used by:
# Drones from group: Energy Neutralizer Drone (3 of 3)
from eos.types import State
type = "active", "projected"
def handler(fit, container, context):
if "projected" in context and ((hasattr(container, "state") \
and container.state >= State.ACTIVE) or hasattr(container, "amountActive")):
amount = container.getModifiedItemAttr("energyDestabilizationAmount")
time = container.getModifiedItemAttr("duration")
fit.addDrain(time, amount, 0)
1 change: 0 additions & 1 deletion eos/effects/energyneutralizerfalloff.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# energyNeutralizerFalloff
#
# Used by:
# Drones from group: Energy Neutralizer Drone (3 of 3)
# Modules from group: Energy Neutralizer (51 of 51)
from eos.types import State
type = "active", "projected"
Expand Down
5 changes: 1 addition & 4 deletions eos/effects/energytransfer.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
# energyTransfer
#
# Used by:
# Modules from group: Remote Capacitor Transmitter (38 of 38)
# Not used by any item
type = "projected", "active"
def handler(fit, module, context):
if "projected" in context:
Expand Down
5 changes: 1 addition & 4 deletions eos/effects/ewtargetpaint.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
# ewTargetPaint
#
# Used by:
# Drones named like: TP (3 of 3)
# Not used by any item
type = "projected", "active"
def handler(fit, container, context):
if "projected" in context:
Expand Down
1 change: 1 addition & 0 deletions eos/effects/fighterabilityattackm.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Not used by any item
"""
Since fighter abilities do not have any sort of item entity in the EVE database, we must derive the abilities from the
effects, and thus this effect file contains some custom information useful only to fighters.
Expand Down
1 change: 1 addition & 0 deletions eos/effects/fighterabilityecm.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Not used by any item
"""
Since fighter abilities do not have any sort of item entity in the EVE database, we must derive the abilities from the
effects, and thus this effect file contains some custom information useful only to fighters.
Expand Down
1 change: 1 addition & 0 deletions eos/effects/fighterabilityenergyneutralizer.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Not used by any item
"""
Since fighter abilities do not have any sort of item entity in the EVE database, we must derive the abilities from the
effects, and thus this effect file contains some custom information useful only to fighters.
Expand Down
1 change: 1 addition & 0 deletions eos/effects/fighterabilitylaunchbomb.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Not used by any item
"""
Since fighter abilities do not have any sort of item entity in the EVE database, we must derive the abilities from the
effects, and thus this effect file contains some custom information useful only to fighters.
Expand Down
1 change: 1 addition & 0 deletions eos/effects/fighterabilitymicrowarpdrive.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Not used by any item
"""
Since fighter abilities do not have any sort of item entity in the EVE database, we must derive the abilities from the
effects, and thus this effect file contains some custom information useful only to fighters.
Expand Down
1 change: 1 addition & 0 deletions eos/effects/fighterabilitymissiles.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Not used by any item
"""
Since fighter abilities do not have any sort of item entity in the EVE database, we must derive the abilities from the
effects, and thus this effect file contains some custom information useful only to fighters.
Expand Down
1 change: 1 addition & 0 deletions eos/effects/fighterabilitystasiswebifier.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Not used by any item
"""
Since fighter abilities do not have any sort of item entity in the EVE database, we must derive the abilities from the
effects, and thus this effect file contains some custom information useful only to fighters.
Expand Down
1 change: 1 addition & 0 deletions eos/effects/fighterabilitywarpdisruption.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Not used by any item
"""
Since fighter abilities do not have any sort of item entity in the EVE database, we must derive the abilities from the
effects, and thus this effect file contains some custom information useful only to fighters.
Expand Down
5 changes: 1 addition & 4 deletions eos/effects/maraudermodeeffect26.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
# marauderModeEffect26
#
# Used by:
# Module: Bastion Module I
# Not used by any item
type = "active"
runTime = "early"
def handler(fit, module, context):
Expand Down
4 changes: 4 additions & 0 deletions eos/effects/modulebonusancillaryremotearmorrepairer.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# moduleBonusAncillaryRemoteArmorRepairer
#
# Used by:
# Modules from group: Ancillary Remote Armor Repairer (4 of 4)
runTime = "late"
type = "projected", "active"
def handler(fit, module, context):
Expand Down
4 changes: 4 additions & 0 deletions eos/effects/modulebonusancillaryremoteshieldbooster.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# moduleBonusAncillaryRemoteShieldBooster
#
# Used by:
# Modules from group: Ancillary Remote Shield Booster (4 of 4)
runTime = "late"
type = "projected", "active"
def handler(fit, module, context):
Expand Down
6 changes: 3 additions & 3 deletions eos/effects/overloadselfdamagebonus.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# overloadSelfDamageBonus
#
# Used by:
# Modules from group: Energy Weapon (102 of 209)
# Modules from group: Hybrid Weapon (106 of 221)
# Modules from group: Projectile Weapon (100 of 165)
# Modules from group: Energy Weapon (101 of 209)
# Modules from group: Hybrid Weapon (105 of 221)
# Modules from group: Projectile Weapon (99 of 165)
type = "overheat"
def handler(fit, module, context):
module.boostItemAttr("damageMultiplier", module.getModifiedItemAttr("overloadDamageModifier"))
5 changes: 5 additions & 0 deletions eos/effects/remotearmorpowerneedbonuseffect.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# remoteArmorPowerNeedBonusEffect
#
# Used by:
# Ship: Guardian
# Ship: Oneiros
type = "passive"
def handler(fit, src, context):
fit.modules.filteredItemBoost(lambda mod: mod.item.requiresSkill("Remote Armor Repair Systems"), "power", src.getModifiedItemAttr("remoteArmorPowerNeedBonus"))
10 changes: 10 additions & 0 deletions eos/effects/remotearmorrepairentity.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# remoteArmorRepairEntity
#
# Used by:
# Drones named like: Armor Maintenance Bot (6 of 6)
type = "projected", "active"
def handler(fit, container, context):
if "projected" in context:
bonus = container.getModifiedItemAttr("armorDamageAmount")
duration = container.getModifiedItemAttr("duration") / 1000.0
fit.extraAttributes.increase("armorRepair", bonus / duration)
1 change: 0 additions & 1 deletion eos/effects/remotearmorrepairfalloff.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
#
# Used by:
# Modules from group: Remote Armor Repairer (39 of 39)
# Drones named like: Armor Maintenance Bot (6 of 6)
type = "projected", "active"
def handler(fit, container, context):
if "projected" in context:
Expand Down
5 changes: 1 addition & 4 deletions eos/effects/remoteecmburst.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
# remoteEcmBurst
#
# Used by:
# Module: ECM Jammer Burst Projector
# Not used by any item
type = 'active'
def handler(fit, module, context):
pass
5 changes: 1 addition & 4 deletions eos/effects/remotehullrepair.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
# remoteHullRepair
#
# Used by:
# Drones named like: Hull Maintenance Bot (6 of 6)
# Not used by any item
type = "projected", "active"
runTime = "late"
def handler(fit, module, context):
Expand Down
11 changes: 11 additions & 0 deletions eos/effects/remotehullrepairentity.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# remoteHullRepairEntity
#
# Used by:
# Drones named like: Hull Maintenance Bot (6 of 6)
type = "projected", "active"
runTime = "late"
def handler(fit, module, context):
if "projected" not in context: return
bonus = module.getModifiedItemAttr("structureDamageAmount")
duration = module.getModifiedItemAttr("duration") / 1000.0
fit.extraAttributes.increase("hullRepair", bonus / duration)
1 change: 0 additions & 1 deletion eos/effects/remotehullrepairfalloff.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
#
# Used by:
# Modules from group: Remote Hull Repairer (8 of 8)
# Drones named like: Hull Maintenance Bot (6 of 6)
type = "projected", "active"
runTime = "late"
def handler(fit, module, context):
Expand Down
14 changes: 14 additions & 0 deletions eos/effects/remotesensordampentity.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# remoteSensorDampEntity
#
# Used by:
# Drones named like: SD (3 of 3)
type= "projected", "active"
def handler(fit, module, context):
if "projected" not in context:
return

fit.ship.boostItemAttr("maxTargetRange", module.getModifiedItemAttr("maxTargetRangeBonus"),
stackingPenalties = True, remoteResists=True)

fit.ship.boostItemAttr("scanResolution", module.getModifiedItemAttr("scanResolutionBonus"),
stackingPenalties = True, remoteResists=True)
5 changes: 1 addition & 4 deletions eos/effects/remotesensordampfalloff.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,13 @@
#
# Used by:
# Modules from group: Sensor Dampener (6 of 6)
# Drones named like: SD (3 of 3)
type= "projected", "active"
def handler(fit, module, context):
if "projected" not in context:
return

print "in sensor damp projection on ", fit, module.getModifiedItemAttr("maxTargetRangeBonus")
print fit.ship.getModifiedItemAttr('maxTargetRange')
fit.ship.boostItemAttr("maxTargetRange", module.getModifiedItemAttr("maxTargetRangeBonus"),
stackingPenalties = True, remoteResists=True)
print fit.ship.getModifiedItemAttr('maxTargetRange')

fit.ship.boostItemAttr("scanResolution", module.getModifiedItemAttr("scanResolutionBonus"),
stackingPenalties = True, remoteResists=True)
10 changes: 10 additions & 0 deletions eos/effects/remoteshieldtransferentity.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# remoteShieldTransferEntity
#
# Used by:
# Drones named like: Shield Maintenance Bot (6 of 6)
type = "projected", "active"
def handler(fit, container, context):
if "projected" in context:
bonus = container.getModifiedItemAttr("shieldBonus")
duration = container.getModifiedItemAttr("duration") / 1000.0
fit.extraAttributes.increase("shieldRepair", bonus / duration)
1 change: 0 additions & 1 deletion eos/effects/remoteshieldtransferfalloff.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
#
# Used by:
# Modules from group: Remote Shield Booster (38 of 38)
# Drones named like: Shield Maintenance Bot (6 of 6)
type = "projected", "active"
def handler(fit, container, context):
if "projected" in context:
Expand Down
9 changes: 9 additions & 0 deletions eos/effects/remotetargetpaintentity.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# remoteTargetPaintEntity
#
# Used by:
# Drones named like: TP (3 of 3)
type = "projected", "active"
def handler(fit, container, context):
if "projected" in context:
fit.ship.boostItemAttr("signatureRadius", container.getModifiedItemAttr("signatureRadiusBonus"),
stackingPenalties = True, remoteResists=True)
1 change: 0 additions & 1 deletion eos/effects/remotetargetpaintfalloff.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
#
# Used by:
# Modules from group: Target Painter (8 of 8)
# Drones named like: TP (3 of 3)
type = "projected", "active"
def handler(fit, container, context):
if "projected" in context:
Expand Down
1 change: 0 additions & 1 deletion eos/effects/remotetrackingdisruptfalloff.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# remoteTrackingDisruptFalloff
#
# Used by:
# Drones named like: TD (3 of 3)
# Variations of module: Tracking Disruptor I (6 of 6)
type= "projected", "active"
def handler(fit, module, context):
Expand Down
16 changes: 16 additions & 0 deletions eos/effects/remoteweapondisruptentity.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# remoteWeaponDisruptEntity
#
# Used by:
# Drones named like: TD (3 of 3)
type= "projected", "active"
def handler(fit, module, context):
if "projected" in context:
fit.modules.filteredItemBoost(lambda mod: mod.item.requiresSkill("Gunnery"),
"trackingSpeed", module.getModifiedItemAttr("trackingSpeedBonus"),
stackingPenalties = True, remoteResists=True)
fit.modules.filteredItemBoost(lambda mod: mod.item.requiresSkill("Gunnery"),
"maxRange", module.getModifiedItemAttr("maxRangeBonus"),
stackingPenalties = True, remoteResists=True)
fit.modules.filteredItemBoost(lambda mod: mod.item.requiresSkill("Gunnery"),
"falloff", module.getModifiedItemAttr("falloffBonus"),
stackingPenalties = True, remoteResists=True)
9 changes: 9 additions & 0 deletions eos/effects/remotewebifierentity.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# remoteWebifierEntity
#
# Used by:
# Drones from group: Stasis Webifying Drone (3 of 3)
type = "active", "projected"
def handler(fit, module, context):
if "projected" not in context: return
fit.ship.boostItemAttr("maxVelocity", module.getModifiedItemAttr("speedFactor"),
stackingPenalties = True, remoteResists=True)
1 change: 0 additions & 1 deletion eos/effects/remotewebifierfalloff.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# remoteWebifierFalloff
#
# Used by:
# Drones from group: Stasis Webifying Drone (3 of 3)
# Modules from group: Stasis Grappler (7 of 7)
# Modules from group: Stasis Web (18 of 18)
type = "active", "projected"
Expand Down
4 changes: 4 additions & 0 deletions eos/effects/shieldtransportcpuneedbonuseffect.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# shieldTransportCpuNeedBonusEffect
#
# Used by:
# Ships from group: Logistics (3 of 5)
type = "passive"
def handler(fit, src, context):
fit.modules.filteredItemBoost(lambda mod: mod.item.requiresSkill("Shield Emission Systems"), "cpu", src.getModifiedItemAttr("shieldTransportCpuNeedBonus"))
5 changes: 1 addition & 4 deletions eos/effects/shipbonusenergyvampirerangead2.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
# shipBonusEnergyVampireRangeAD2
#
# Used by:
# Ship: Dragoon
# Not used by any item
type = "passive"
def handler(fit, ship, context):
fit.modules.filteredItemBoost(lambda mod: mod.item.group.name == "Energy Nosferatu",
Expand Down
5 changes: 5 additions & 0 deletions eos/effects/shipbonusremotearmorrepairamount2af.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# shipBonusRemoteArmorRepairAmount2AF
#
# Used by:
# Ship: Deacon
# Ship: Inquisitor
type = "passive"
def handler(fit, src, context):
fit.modules.filteredItemBoost(lambda mod: mod.item.requiresSkill("Remote Armor Repair Systems"), "armorDamageAmount", src.getModifiedItemAttr("shipBonus2AF"), skill="Amarr Frigate")
Loading

0 comments on commit fd62c25

Please sign in to comment.