forked from pyfa-org/Pyfa
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Conflicts: pyfa.py
- Loading branch information
Showing
60 changed files
with
670 additions
and
372 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,88 @@ | ||
""" | ||
Migration 4 | ||
- Converts modules based on Proteus Module Tiericide | ||
Some modules have been unpublished (and unpublished module attributes are removed | ||
from database), which causes pyfa to crash. We therefore replace these | ||
modules with their new replacements | ||
Based on http://community.eveonline.com/news/patch-notes/patch-notes-for-proteus/ | ||
and output of itemDiff.py | ||
""" | ||
|
||
|
||
CONVERSIONS = { | ||
8529: ( # Large F-S9 Regolith Compact Shield Extender | ||
8409, # Large Subordinate Screen Stabilizer I | ||
), | ||
8419: ( # Large Azeotropic Restrained Shield Extender | ||
8489, # Large Supplemental Barrier Emitter I | ||
), | ||
8517: ( # Medium F-S9 Regolith Compact Shield Extender | ||
8397, # Medium Subordinate Screen Stabilizer I | ||
), | ||
8433: ( # Medium Azeotropic Restrained Shield Extender | ||
8477, # Medium Supplemental Barrier Emitter I | ||
), | ||
20627: ( # Small 'Trapper' Shield Extender | ||
8437, # Micro Azeotropic Ward Salubrity I | ||
8505, # Micro F-S9 Regolith Shield Induction | ||
3849, # Micro Shield Extender I | ||
3851, # Micro Shield Extender II | ||
8387, # Micro Subordinate Screen Stabilizer I | ||
8465, # Micro Supplemental Barrier Emitter I | ||
), | ||
8521: ( # Small F-S9 Regolith Compact Shield Extender | ||
8401, # Small Subordinate Screen Stabilizer I | ||
), | ||
8427: ( # Small Azeotropic Restrained Shield Extender | ||
8481, # Small Supplemental Barrier Emitter I | ||
), | ||
11343: ( # 100mm Crystalline Carbonide Restrained Plates | ||
11345, # 100mm Reinforced Nanofiber Plates I | ||
), | ||
11341: ( # 100mm Rolled Tungsten Compact Plates | ||
11339, # 100mm Reinforced Titanium Plates I | ||
), | ||
11327: ( # 1600mm Crystalline Carbonide Restrained Plates | ||
11329, # 1600mm Reinforced Nanofiber Plates I | ||
), | ||
11325: ( # 1600mm Rolled Tungsten Compact Plates | ||
11323, # 1600mm Reinforced Titanium Plates I | ||
), | ||
11351: ( # 200mm Crystalline Carbonide Restrained Plates | ||
11353, # 200mm Reinforced Nanofiber Plates I | ||
), | ||
11349: ( # 200mm Rolled Tungsten Compact Plates | ||
11347, # 200mm Reinforced Titanium Plates I | ||
), | ||
11311: ( # 400mm Crystalline Carbonide Restrained Plates | ||
11313, # 400mm Reinforced Nanofiber Plates I | ||
), | ||
11309: ( # 400mm Rolled Tungsten Compact Plates | ||
11307, # 400mm Reinforced Titanium Plates I | ||
), | ||
23791: ( # 'Citadella' 100mm Steel Plates | ||
11335, # 50mm Reinforced Crystalline Carbonide Plates I | ||
11337, # 50mm Reinforced Nanofiber Plates I | ||
11333, # 50mm Reinforced Rolled Tungsten Plates I | ||
11291, # 50mm Reinforced Steel Plates I | ||
20343, # 50mm Reinforced Steel Plates II | ||
11331, # 50mm Reinforced Titanium Plates I | ||
), | ||
11319: ( # 800mm Crystalline Carbonide Restrained Plates | ||
11321, # 800mm Reinforced Nanofiber Plates I | ||
), | ||
11317: ( # 800mm Rolled Tungsten Compact Plates | ||
11315, # 800mm Reinforced Titanium Plates I | ||
), | ||
} | ||
|
||
def upgrade(saveddata_engine): | ||
|
||
# Convert modules | ||
for replacement_item, list in CONVERSIONS.iteritems(): | ||
for retired_item in list: | ||
saveddata_engine.execute('UPDATE "modules" SET "itemID" = ? WHERE "itemID" = ?', (replacement_item, retired_item)) | ||
saveddata_engine.execute('UPDATE "cargo" SET "itemID" = ? WHERE "itemID" = ?', (replacement_item, retired_item)) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
# armorHPBonusAdd | ||
# | ||
# Used by: | ||
# Modules from group: Armor Reinforcer (57 of 57) | ||
# Modules from group: Armor Reinforcer (38 of 38) | ||
type = "passive" | ||
def handler(fit, module, context): | ||
fit.ship.increaseItemAttr("armorHP", module.getModifiedItemAttr("armorHPBonusAdd")) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# entosisDurationMultiply | ||
# | ||
# Used by: | ||
# Ships from group: Carrier (4 of 4) | ||
# Ships from group: Dreadnought (4 of 4) | ||
# Ships from group: Supercarrier (5 of 5) | ||
# Ships from group: Titan (4 of 4) | ||
# Ship: Rorqual | ||
type = "passive" | ||
def handler(fit, ship, context): | ||
fit.modules.filteredItemMultiply(lambda mod: mod.item.requiresSkill("Infomorph Psychology"), | ||
"duration", ship.getModifiedItemAttr("entosisDurationMultiplier") or 1) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# shipBonusHeavyAssaultMissileAllDamageMC2 | ||
# | ||
# Used by: | ||
# Ship: Rapier | ||
# Ship: Scythe Fleet Issue | ||
type = "passive" | ||
def handler(fit, ship, context): | ||
level = fit.character.getSkill("Minmatar Cruiser").level | ||
for damageType in ("em", "explosive", "kinetic", "thermal"): | ||
fit.modules.filteredChargeBoost(lambda mod: mod.charge.requiresSkill("Heavy Assault Missiles"), | ||
"{0}Damage".format(damageType), ship.getModifiedItemAttr("shipBonusMC2") * level) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# shipBonusHeavyMissileAllDamageMC2 | ||
# | ||
# Used by: | ||
# Ship: Rapier | ||
# Ship: Scythe Fleet Issue | ||
type = "passive" | ||
def handler(fit, ship, context): | ||
level = fit.character.getSkill("Minmatar Cruiser").level | ||
for damageType in ("em", "explosive", "kinetic", "thermal"): | ||
fit.modules.filteredChargeBoost(lambda mod: mod.charge.requiresSkill("Heavy Missiles"), | ||
"{0}Damage".format(damageType), ship.getModifiedItemAttr("shipBonusMC2") * level) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# shipBonusLightMissileAllDamageMC2 | ||
# | ||
# Used by: | ||
# Ship: Rapier | ||
# Ship: Scythe Fleet Issue | ||
type = "passive" | ||
def handler(fit, ship, context): | ||
level = fit.character.getSkill("Minmatar Cruiser").level | ||
for damageType in ("em", "explosive", "kinetic", "thermal"): | ||
fit.modules.filteredChargeBoost(lambda mod: mod.charge.requiresSkill("Light Missiles"), | ||
"{0}Damage".format(damageType), ship.getModifiedItemAttr("shipBonusMC2") * level) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
type = "passive" | ||
def handler(fit, ship, context): | ||
level = fit.character.getSkill("Caldari Battleship").level | ||
fit.modules.filteredItemBoost(lambda mod: mod.item.group.name == "Missile Launcher Rapid Heavy", | ||
"speed", ship.getModifiedItemAttr("shipBonusCB") * level) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# shipHeatDamageCaldariTacticalDestroyer3 | ||
# | ||
# Used by: | ||
# Ship: Jackdaw | ||
type = "passive" | ||
def handler(fit, ship, context): | ||
level = fit.character.getSkill("Caldari Tactical Destroyer").level | ||
fit.modules.filteredItemBoost(lambda mod: True, "heatDamage", | ||
ship.getModifiedItemAttr("shipBonusTacticalDestroyerCaldari3") * level) |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
9 changes: 9 additions & 0 deletions
9
eos/effects/shipmissilereloadtimecaldaritacticaldestroyer2.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# shipMissileReloadTimeCaldariTacticalDestroyer2 | ||
# | ||
# Used by: | ||
# Ship: Jackdaw | ||
type = "passive" | ||
def handler(fit, ship, context): | ||
level = fit.character.getSkill("Caldari Tactical Destroyer").level | ||
fit.modules.filteredItemBoost(lambda mod: mod.item.requiresSkill("Missile Launcher Operation"), | ||
"reloadTime", ship.getModifiedItemAttr("shipBonusTacticalDestroyerCaldari2") * level) |
Oops, something went wrong.