Edit effect headers and fix effects script
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
# drawbackArmorHP
|
||||
#
|
||||
# Used by:
|
||||
# Modules from group: Rig Navigation (48 of 68)
|
||||
# Modules from group: Rig Navigation (48 of 64)
|
||||
type = "passive"
|
||||
def handler(fit, module, context):
|
||||
fit.ship.boostItemAttr("armorHP", module.getModifiedItemAttr("drawback"))
|
||||
@@ -1,7 +1,7 @@
|
||||
# drawbackWarpSpeed
|
||||
#
|
||||
# Used by:
|
||||
# Modules named like: Higgs Anchor I (4 of 4)
|
||||
# Modules from group: Rig Anchor (4 of 4)
|
||||
type = "passive"
|
||||
def handler(fit, module, context):
|
||||
fit.ship.boostItemAttr("warpSpeedMultiplier", module.getModifiedItemAttr("drawback"), stackingPenalties=True)
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
# dreadnoughtMD1ProjDmgBonus
|
||||
#
|
||||
# Used by:
|
||||
# Ship: Naglfar
|
||||
# Ships named like: Naglfar (2 of 2)
|
||||
type = "passive"
|
||||
def handler(fit, ship, context):
|
||||
level = fit.character.getSkill("Minmatar Dreadnought").level
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
# dreadnoughtMD3ProjRoFBonus
|
||||
#
|
||||
# Used by:
|
||||
# Ship: Naglfar
|
||||
# Ships named like: Naglfar (2 of 2)
|
||||
type = "passive"
|
||||
def handler(fit, ship, context):
|
||||
level = fit.character.getSkill("Minmatar Dreadnought").level
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
# dreadnoughtShipBonusHybridDmgG1
|
||||
#
|
||||
# Used by:
|
||||
# Ship: Moros
|
||||
# Ships named like: Moros (2 of 2)
|
||||
type = "passive"
|
||||
def handler(fit, ship, context):
|
||||
level = fit.character.getSkill("Gallente Dreadnought").level
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
# dreadnoughtShipBonusHybridRoFG2
|
||||
#
|
||||
# Used by:
|
||||
# Ship: Moros
|
||||
# Ships named like: Moros (2 of 2)
|
||||
type = "passive"
|
||||
def handler(fit, ship, context):
|
||||
level = fit.character.getSkill("Gallente Dreadnought").level
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
# dreadnoughtShipBonusLaserCapNeedA1
|
||||
#
|
||||
# Used by:
|
||||
# Ship: Revelation
|
||||
# Ships named like: Revelation (2 of 2)
|
||||
type = "passive"
|
||||
def handler(fit, ship, context):
|
||||
level = fit.character.getSkill("Amarr Dreadnought").level
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
# dreadnoughtShipBonusLaserRofA2
|
||||
#
|
||||
# Used by:
|
||||
# Ship: Revelation
|
||||
# Ships named like: Revelation (2 of 2)
|
||||
type = "passive"
|
||||
def handler(fit, ship, context):
|
||||
level = fit.character.getSkill("Amarr Dreadnought").level
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
# dreadnoughtShipBonusShieldResistancesC2
|
||||
#
|
||||
# Used by:
|
||||
# Ship: Phoenix
|
||||
# Ships named like: Phoenix (2 of 2)
|
||||
type = "passive"
|
||||
def handler(fit, ship, context):
|
||||
level = fit.character.getSkill("Caldari Dreadnought").level
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
# evasiveManeuveringAgilityBonusPostPercentAgilityShip
|
||||
#
|
||||
# Used by:
|
||||
# Modules from group: Rig Anchor (4 of 4)
|
||||
# Implants named like: Eifyr and Co. 'Rogue' Evasive Maneuvering EM (6 of 6)
|
||||
# Implants named like: grade Nomad (10 of 12)
|
||||
# Modules named like: Higgs Anchor I (4 of 4)
|
||||
# Modules named like: Low Friction Nozzle Joints (8 of 8)
|
||||
# Implant: Genolution Core Augmentation CA-4
|
||||
# Skill: Evasive Maneuvering
|
||||
|
||||
@@ -1,3 +1,7 @@
|
||||
# freighterAgilityBonus2O2
|
||||
#
|
||||
# Used by:
|
||||
# Ship: Bowhead
|
||||
type = "passive"
|
||||
def handler(fit, ship, context):
|
||||
level = fit.character.getSkill("ORE Freighter").level
|
||||
|
||||
@@ -1,3 +1,7 @@
|
||||
# freighterSMACapacityBonusO1
|
||||
#
|
||||
# Used by:
|
||||
# Ship: Bowhead
|
||||
type = "passive"
|
||||
def handler(fit, ship, context):
|
||||
level = fit.character.getSkill("ORE Freighter").level
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
# massReductionBonusPassive
|
||||
#
|
||||
# Used by:
|
||||
# Modules named like: Higgs Anchor I (4 of 4)
|
||||
# Modules from group: Rig Anchor (4 of 4)
|
||||
type = "passive"
|
||||
def handler(fit, module, context):
|
||||
fit.ship.boostItemAttr("mass", module.getModifiedItemAttr("massBonusPercentage"), stackingPenalties=True)
|
||||
|
||||
@@ -1,3 +1,7 @@
|
||||
# modeAgilityPostDiv
|
||||
#
|
||||
# Used by:
|
||||
# Module: Amarr Tactical Destroyer Propulsion Mode
|
||||
type = "passive"
|
||||
def handler(fit, module, context):
|
||||
fit.ship.multiplyItemAttr("agility", 1/module.getModifiedItemAttr("modeAgilityPostDiv"),
|
||||
|
||||
@@ -1,3 +1,7 @@
|
||||
# modeArmorResonancePostDiv
|
||||
#
|
||||
# Used by:
|
||||
# Module: Amarr Tactical Destroyer Defense Mode
|
||||
type = "passive"
|
||||
def handler(fit, module, context):
|
||||
for resType in ("Em", "Explosive", "Kinetic"):
|
||||
|
||||
@@ -1,3 +1,7 @@
|
||||
# modeSigRadiusPostDiv
|
||||
#
|
||||
# Used by:
|
||||
# Module: Amarr Tactical Destroyer Defense Mode
|
||||
type = "passive"
|
||||
def handler(fit, module, context):
|
||||
level = fit.character.getSkill("Minmatar Destroyer").level
|
||||
|
||||
@@ -1,3 +1,7 @@
|
||||
# modeVelocityPostDiv
|
||||
#
|
||||
# Used by:
|
||||
# Module: Amarr Tactical Destroyer Propulsion Mode
|
||||
type = "passive"
|
||||
def handler(fit, module, context):
|
||||
fit.ship.multiplyItemAttr("maxVelocity", 1/module.getModifiedItemAttr("modeVelocityPostDiv"),
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
# navigationVelocityBonusPostPercentMaxVelocityShip
|
||||
#
|
||||
# Used by:
|
||||
# Modules from group: Rig Anchor (4 of 4)
|
||||
# Implants named like: grade Snake (16 of 18)
|
||||
# Modules named like: Auxiliary Thrusters (8 of 8)
|
||||
# Modules named like: Higgs Anchor I (4 of 4)
|
||||
# Implant: Quafe Zero
|
||||
# Skill: Navigation
|
||||
type = "passive"
|
||||
|
||||
@@ -1,3 +1,7 @@
|
||||
# probeLauncherCPUPercentBonusTacticalDestroyer
|
||||
#
|
||||
# Used by:
|
||||
# Ship: Confessor
|
||||
type = "passive"
|
||||
def handler(fit, ship, context):
|
||||
fit.modules.filteredItemBoost(lambda mod: mod.item.requiresSkill("Astrometrics"),
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
# roleBonusBulkheadCPU
|
||||
#
|
||||
# Used by:
|
||||
# Ships from group: Freighter (4 of 4)
|
||||
# Ships from group: Freighter (4 of 5)
|
||||
# Ships from group: Jump Freighter (4 of 4)
|
||||
type = "passive"
|
||||
def handler(fit, ship, context):
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
# shipAdvancedSpaceshipCommandAgilityBonus
|
||||
#
|
||||
# Used by:
|
||||
# Items from market group: Ships > Capital Ships (27 of 29)
|
||||
# Items from market group: Ships > Capital Ships (32 of 34)
|
||||
type = "passive"
|
||||
def handler(fit, ship, context):
|
||||
skill = fit.character.getSkill("Advanced Spaceship Command")
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
# shipBonusDreadCitadelCruiseRofC1
|
||||
#
|
||||
# Used by:
|
||||
# Ship: Phoenix
|
||||
# Ships named like: Phoenix (2 of 2)
|
||||
type = "passive"
|
||||
def handler(fit, ship, context):
|
||||
level = fit.character.getSkill("Caldari Dreadnought").level
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
# shipBonusDreadCitadelTorpRofC1
|
||||
#
|
||||
# Used by:
|
||||
# Ship: Phoenix
|
||||
# Ships named like: Phoenix (2 of 2)
|
||||
type = "passive"
|
||||
def handler(fit, ship, context):
|
||||
level = fit.character.getSkill("Caldari Dreadnought").level
|
||||
|
||||
@@ -1,3 +1,7 @@
|
||||
# shipHeatDamageAmarrTacticalDestroyer3
|
||||
#
|
||||
# Used by:
|
||||
# Ship: Confessor
|
||||
type = "passive"
|
||||
def handler(fit, ship, context):
|
||||
level = fit.character.getSkill("Amarr Tactical Destroyer").level
|
||||
|
||||
@@ -1,3 +1,7 @@
|
||||
# shipModeMaxTargetRangePostDiv
|
||||
#
|
||||
# Used by:
|
||||
# Module: Amarr Tactical Destroyer Sharpshooter Mode
|
||||
type = "passive"
|
||||
def handler(fit, module, context):
|
||||
fit.ship.multiplyItemAttr("maxTargetRange", 1/module.getModifiedItemAttr("modeMaxTargetRangePostDiv"),
|
||||
|
||||
@@ -1,3 +1,7 @@
|
||||
# shipModeScanResPostDiv
|
||||
#
|
||||
# Used by:
|
||||
# Module: Amarr Tactical Destroyer Sharpshooter Mode
|
||||
type = "passive"
|
||||
def handler(fit, module, context):
|
||||
fit.ship.multiplyItemAttr("scanResolution", 1/module.getModifiedItemAttr("modeScanResPostDiv"),
|
||||
|
||||
@@ -1,3 +1,7 @@
|
||||
# shipModeScanStrengthPostDiv
|
||||
#
|
||||
# Used by:
|
||||
# Module: Amarr Tactical Destroyer Sharpshooter Mode
|
||||
type = "passive"
|
||||
def handler(fit, module, context):
|
||||
fit.ship.multiplyItemAttr("scanRadarStrength", 1/module.getModifiedItemAttr("modeRadarStrengthPostDiv"),
|
||||
|
||||
@@ -1,3 +1,7 @@
|
||||
# shipModeSETOptimalRangePostDiv
|
||||
#
|
||||
# Used by:
|
||||
# Module: Amarr Tactical Destroyer Sharpshooter Mode
|
||||
type = "passive"
|
||||
def handler(fit, module, context):
|
||||
fit.modules.filteredItemMultiply(lambda mod: mod.item.requiresSkill("Small Energy Turret"),
|
||||
|
||||
@@ -1,3 +1,7 @@
|
||||
# shipSETCapNeedAmarrTacticalDestroyer2
|
||||
#
|
||||
# Used by:
|
||||
# Ship: Confessor
|
||||
type = "passive"
|
||||
def handler(fit, ship, context):
|
||||
level = fit.character.getSkill("Amarr Tactical Destroyer").level
|
||||
|
||||
@@ -1,3 +1,7 @@
|
||||
# shipSETDamageAmarrTacticalDestroyer1
|
||||
#
|
||||
# Used by:
|
||||
# Ship: Confessor
|
||||
type = "passive"
|
||||
def handler(fit, ship, context):
|
||||
level = fit.character.getSkill("Amarr Tactical Destroyer").level
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
# shipXLProjectileDamageRole
|
||||
#
|
||||
# Used by:
|
||||
# Ship: Naglfar
|
||||
# Ships named like: Naglfar (2 of 2)
|
||||
type = "passive"
|
||||
def handler(fit, ship, context):
|
||||
fit.modules.filteredItemBoost(lambda mod: mod.item.requiresSkill("Capital Projectile Turret"),
|
||||
|
||||
@@ -57,7 +57,7 @@ import re
|
||||
import sqlite3
|
||||
from optparse import OptionParser
|
||||
|
||||
script_dir = os.path.dirname(unicode(__file__, sys.getfilesystemencoding()))
|
||||
script_dir = os.path.dirname(__file__)
|
||||
|
||||
# Form list of effects for processing
|
||||
effects_path = os.path.join(script_dir, "..", "eos", "effects")
|
||||
@@ -123,7 +123,10 @@ db = sqlite3.connect(os.path.expanduser(options.database))
|
||||
cursor = db.cursor()
|
||||
|
||||
# Force some of the items to make them published
|
||||
FORCEPUB_TYPES = ("Ibis", "Impairor", "Velator", "Reaper")
|
||||
FORCEPUB_TYPES = ("Ibis", "Impairor", "Velator", "Reaper",
|
||||
"Amarr Tactical Destroyer Propulsion Mode",
|
||||
"Amarr Tactical Destroyer Sharpshooter Mode",
|
||||
"Amarr Tactical Destroyer Defense Mode")
|
||||
OVERRIDES_TYPEPUB = 'UPDATE invtypes SET published = 1 WHERE typeName = ?'
|
||||
for typename in FORCEPUB_TYPES:
|
||||
cursor.execute(OVERRIDES_TYPEPUB, (typename,))
|
||||
|
||||
Reference in New Issue
Block a user