Skip to content

Commit

Permalink
Add latest changes from Singularity
Browse files Browse the repository at this point in the history
  • Loading branch information
DarkFenX committed May 21, 2015
1 parent cca7f11 commit 26122f6
Show file tree
Hide file tree
Showing 39 changed files with 113 additions and 98 deletions.
4 changes: 2 additions & 2 deletions config.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
# Version data
version = "1.11.1"
tag = "git"
expansionName = "Mosaic"
expansionVersion = "1.0"
expansionName = "Singularity"
expansionVersion = "883859"
evemonMinVersion = "4081"

# Database version (int ONLY)
Expand Down
2 changes: 1 addition & 1 deletion eos/effects/addtosignatureradius2.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#
# Used by:
# Modules from group: Missile Launcher Bomb (2 of 2)
# Modules from group: Shield Extender (37 of 37)
# Modules from group: Shield Extender (25 of 25)
type = "passive"
def handler(fit, module, context):
fit.ship.increaseItemAttr("signatureRadius", module.getModifiedItemAttr("signatureRadiusAdd"))
2 changes: 1 addition & 1 deletion eos/effects/armorhpbonusadd.py
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"))
2 changes: 1 addition & 1 deletion eos/effects/armorreinforcermassadd.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# armorReinforcerMassAdd
#
# Used by:
# Modules from group: Armor Reinforcer (57 of 57)
# Modules from group: Armor Reinforcer (38 of 38)
# Modules from group: Entosis Link (2 of 2)
type = "passive"
def handler(fit, module, context):
Expand Down
2 changes: 1 addition & 1 deletion eos/effects/capacitorcapacitymultiply.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# Modules from group: Capacitor Flux Coil (6 of 6)
# Modules from group: Capacitor Power Relay (20 of 20)
# Modules from group: Power Diagnostic System (23 of 23)
# Modules from group: Propulsion Module (107 of 107)
# Modules from group: Propulsion Module (114 of 114)
# Modules from group: Reactor Control Unit (22 of 22)
# Modules from group: Shield Flux Coil (11 of 11)
# Modules from group: Shield Power Relay (11 of 11)
Expand Down
1 change: 1 addition & 0 deletions eos/effects/minmatarshipewtargetpaintermc1.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
#
# Used by:
# Ship: Bellicose
# Ship: Rapier
type = "passive"
def handler(fit, ship, context):
level = fit.character.getSkill("Minmatar Cruiser").level
Expand Down
1 change: 0 additions & 1 deletion eos/effects/minmatarshipewtargetpaintermc2.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
#
# Used by:
# Ship: Huginn
# Ship: Rapier
type = "passive"
def handler(fit, ship, context):
level = fit.character.getSkill("Minmatar Cruiser").level
Expand Down
2 changes: 1 addition & 1 deletion eos/effects/modeagilitypostdiv.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# modeAgilityPostDiv
#
# Used by:
# Modules named like: Propulsion Mode (2 of 2)
# Modules named like: Propulsion Mode (3 of 3)
type = "passive"
def handler(fit, module, context):
fit.ship.multiplyItemAttr(
Expand Down
3 changes: 2 additions & 1 deletion eos/effects/modearmorresonancepostdiv.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
# modeArmorResonancePostDiv
#
# Used by:
# Modules named like: Defense Mode (2 of 2)
# Module: Confessor Defense Mode
# Module: Svipul Defense Mode
type = "passive"
def handler(fit, module, context):
for srcResType, tgtResType in (
Expand Down
1 change: 1 addition & 0 deletions eos/effects/modeshieldresonancepostdiv.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# modeShieldResonancePostDiv
#
# Used by:
# Module: Jackdaw Defense Mode
# Module: Svipul Defense Mode
type = "passive"
def handler(fit, module, context):
Expand Down
5 changes: 3 additions & 2 deletions eos/effects/modesigradiuspostdiv.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
#
# Used by:
# Module: Confessor Defense Mode
# Module: Jackdaw Defense Mode
type = "passive"
def handler(fit, module, context):
fit.ship.multiplyItemAttr("signatureRadius", 1/module.getModifiedItemAttr("modeSignatureRadiusPostDiv"),
stackingPenalties = True, penaltyGroup="postDiv")
fit.ship.multiplyItemAttr("signatureRadius", 1 / module.getModifiedItemAttr("modeSignatureRadiusPostDiv"),
stackingPenalties=True, penaltyGroup="postDiv")
2 changes: 1 addition & 1 deletion eos/effects/modevelocitypostdiv.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# modeVelocityPostDiv
#
# Used by:
# Modules named like: Propulsion Mode (2 of 2)
# Modules named like: Propulsion Mode (3 of 3)
type = "passive"
def handler(fit, module, context):
fit.ship.multiplyItemAttr(
Expand Down
2 changes: 1 addition & 1 deletion eos/effects/overloadselfspeedbonus.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# overloadSelfSpeedBonus
#
# Used by:
# Modules from group: Propulsion Module (107 of 107)
# Modules from group: Propulsion Module (114 of 114)
type = "overheat"
def handler(fit, module, context):
module.boostItemAttr("speedFactor", module.getModifiedItemAttr("overloadSpeedFactorBonus"),
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# probeLauncherCPUPercentBonusTacticalDestroyer
#
# Used by:
# Ships from group: Tactical Destroyer (2 of 2)
# Ships from group: Tactical Destroyer (3 of 3)
type = "passive"
def handler(fit, ship, context):
fit.modules.filteredItemBoost(lambda mod: mod.item.requiresSkill("Astrometrics"),
Expand Down
2 changes: 1 addition & 1 deletion eos/effects/shieldcapacitybonusonline.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#
# Used by:
# Modules from group: Shield Amplifier (88 of 88)
# Modules from group: Shield Extender (37 of 37)
# Modules from group: Shield Extender (25 of 25)
type = "passive"
def handler(fit, module, context):
fit.ship.increaseItemAttr("shieldCapacity", module.getModifiedItemAttr("capacityBonus"))
11 changes: 11 additions & 0 deletions eos/effects/shipbonusheavyassaultmissilealldamagemc2.py
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)
11 changes: 11 additions & 0 deletions eos/effects/shipbonusheavymissilealldamagemc2.py
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)
11 changes: 11 additions & 0 deletions eos/effects/shipbonuslightmissilealldamagemc2.py
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)
9 changes: 9 additions & 0 deletions eos/effects/shipheatdamagecaldaritacticaldestroyer3.py
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)
9 changes: 0 additions & 9 deletions eos/effects/shipmissilebonusemdmgmc.py

This file was deleted.

9 changes: 0 additions & 9 deletions eos/effects/shipmissilebonusexpdmgmc.py

This file was deleted.

9 changes: 0 additions & 9 deletions eos/effects/shipmissilebonuskindmgmc.py

This file was deleted.

9 changes: 0 additions & 9 deletions eos/effects/shipmissilebonusthermdmgmc.py

This file was deleted.

9 changes: 0 additions & 9 deletions eos/effects/shipmissileemdamagemc2.py

This file was deleted.

9 changes: 0 additions & 9 deletions eos/effects/shipmissileexpdamagemc2.py

This file was deleted.

9 changes: 0 additions & 9 deletions eos/effects/shipmissilekineticdamagemc2.py

This file was deleted.

9 changes: 9 additions & 0 deletions eos/effects/shipmissilereloadtimecaldaritacticaldestroyer2.py
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)
11 changes: 11 additions & 0 deletions eos/effects/shipmissilerofcaldaritacticaldestroyer1.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# shipMissileRoFCaldariTacticalDestroyer1
#
# 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"),
"speed", ship.getModifiedItemAttr("shipBonusTacticalDestroyerCaldari1") * level)


9 changes: 0 additions & 9 deletions eos/effects/shipmissilethermdamagemc2.py

This file was deleted.

2 changes: 1 addition & 1 deletion eos/effects/shipmodemaxtargetrangepostdiv.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# shipModeMaxTargetRangePostDiv
#
# Used by:
# Modules named like: Sharpshooter Mode (2 of 2)
# Modules named like: Sharpshooter Mode (3 of 3)
type = "passive"
def handler(fit, module, context):
fit.ship.multiplyItemAttr(
Expand Down
13 changes: 13 additions & 0 deletions eos/effects/shipmodemissilevelocitypostdiv.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# shipModeMissileVelocityPostDiv
#
# Used by:
# Module: Jackdaw Sharpshooter Mode
type = "passive"
def handler(fit, module, context):
fit.modules.filteredChargeMultiply(
lambda mod: mod.charge.requiresSkill("Missile Launcher Operation"),
"maxVelocity",
1 / module.getModifiedItemAttr("modeMaxRangePostDiv"),
stackingPenalties=True,
penaltyGroup="postDiv"
)
2 changes: 1 addition & 1 deletion eos/effects/shipmodescanrespostdiv.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# shipModeScanResPostDiv
#
# Used by:
# Modules named like: Sharpshooter Mode (2 of 2)
# Modules named like: Sharpshooter Mode (3 of 3)
type = "passive"
def handler(fit, module, context):
fit.ship.multiplyItemAttr(
Expand Down
2 changes: 1 addition & 1 deletion eos/effects/shipmodescanstrengthpostdiv.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# shipModeScanStrengthPostDiv
#
# Used by:
# Modules named like: Sharpshooter Mode (2 of 2)
# Modules named like: Sharpshooter Mode (3 of 3)
type = "passive"
def handler(fit, module, context):
for scanType in ("Gravimetric", "Magnetometric", "Radar", "Ladar"):
Expand Down
9 changes: 9 additions & 0 deletions eos/effects/shipsmallmissiledmgpiratefaction.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# shipSmallMissileDmgPirateFaction
#
# Used by:
# Ship: Jackdaw
type = "passive"
def handler(fit, ship, context):
for damageType in ("em", "explosive", "kinetic", "thermal"):
fit.modules.filteredChargeBoost(lambda mod: mod.charge.requiresSkill("Rockets") or mod.charge.requiresSkill("Light Missiles"),
"{0}Damage".format(damageType), ship.getModifiedItemAttr("shipBonusPirateFaction"))
7 changes: 3 additions & 4 deletions eos/effects/speedboostmassaddition.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
# speedBoostMassAddition
#
# Used by:
# Variations of module: 100MN Afterburner I (24 of 24)
# Variations of module: 10MN Afterburner I (14 of 14)
# Variations of module: 1MN Afterburner I (15 of 15)
# Module: Civilian Afterburner
# Variations of module: 100MN Afterburner I (25 of 25)
# Variations of module: 10MN Afterburner I (15 of 15)
# Variations of module: 1MN Afterburner I (16 of 16)
type = "active"
runTime = "late"
def handler(fit, module, context):
Expand Down
6 changes: 3 additions & 3 deletions eos/effects/speedboostmasssigrad.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# speedBoostMassSigRad
#
# Used by:
# Variations of module: 100MN Microwarpdrive I (24 of 24)
# Variations of module: 10MN Microwarpdrive I (14 of 14)
# Variations of module: 1MN Microwarpdrive I (15 of 15)
# Variations of module: 500MN Microwarpdrive I (26 of 26)
# Variations of module: 50MN Microwarpdrive I (16 of 16)
# Variations of module: 5MN Microwarpdrive I (16 of 16)
type = "active"
runTime = "late"
def handler(fit, module, context):
Expand Down
3 changes: 2 additions & 1 deletion eos/saveddata/ship.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,8 @@ def _getModeItems(self):
items = []
g = eos.db.getGroup(modeGroupID, eager=("items.icon", "items.attributes"))
for item in g.items:
if item.raceID == self.item.raceID:
# Rely on name detection because race is not reliable
if item.name.lower().startswith(self.item.name.lower()):
items.append(item)

return items
Expand Down
Binary file modified staticdata/eve.db
Binary file not shown.
Binary file added staticdata/icons/ships/34828.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 26122f6

Please sign in to comment.