Group renames

This commit is contained in:
blitzmann
2016-04-06 00:22:19 -04:00
parent 9c33947a45
commit 8ed485df0e
8 changed files with 14 additions and 14 deletions

View File

@@ -4,5 +4,5 @@
# Skill: Advanced Drone Interfacing
type = "passive"
def handler(fit, skill, context):
fit.modules.filteredItemIncrease(lambda mod: mod.item.group.name == "Drone Control Unit",
fit.modules.filteredItemIncrease(lambda mod: mod.item.group.name == "Fighter Support Unit",
"maxGroupActive", skill.level)

View File

@@ -4,5 +4,5 @@
# Implants named like: grade Centurion (10 of 12)
type = "passive"
def handler(fit, implant, context):
fit.modules.filteredItemBoost(lambda mod: mod.item.group.name == "Remote ECM Burst",
fit.modules.filteredItemBoost(lambda mod: mod.item.group.name == "Burst Projectors",
"maxRange", implant.getModifiedItemAttr("rangeSkillBonus"))

View File

@@ -4,5 +4,5 @@
# Skill: Burst Projector Operation
type = "passive"
def handler(fit, skill, context):
fit.modules.filteredItemBoost(lambda mod: mod.item.group.name == "Remote ECM Burst",
fit.modules.filteredItemBoost(lambda mod: mod.item.group.name == "Burst Projectors",
"duration", skill.getModifiedItemAttr("projECMDurationBonus") * skill.level)

View File

@@ -4,6 +4,6 @@
# Ship: Leviathan
type = "passive"
def handler(fit, ship, context):
groups = ("Capital Torpedo", "Capital Cruise")
groups = ("XL Torpedo", "XL Cruise Missile")
fit.modules.filteredChargeBoost(lambda mod: mod.charge.group.name in groups,
"kineticDamage", ship.getModifiedItemAttr("shipBonusCT1"), skill="Caldari Titan")

View File

@@ -70,7 +70,7 @@ def handler(fit, module, context):
# EW cap need increase
groups = [
'Burst Jammer',
'Remote ECM Burst',
'Burst Projectors',
'Weapon Disruptor',
'ECM',
'Remote Sensor Damper',

View File

@@ -80,7 +80,7 @@ def handler(fit, module, context):
# EW cap need increase
groups = [
'ECM Burst',
'Remote ECM Burst',
'Burst Projectors',
'Weapon Disruptor',
'ECM',
'Remote Sensor Damper',

View File

@@ -754,20 +754,20 @@ class Fit(object):
repairers = []
#Map a repairer type to the attribute it uses
groupAttrMap = {"Armor Repair Unit": "armorDamageAmount",
"Fueled Armor Repairer": "armorDamageAmount",
"Ancillary Armor Repairer": "armorDamageAmount",
"Hull Repair Unit": "structureDamageAmount",
"Shield Booster": "shieldBonus",
"Fueled Shield Booster": "shieldBonus",
"Ancillary Shield Booster": "shieldBonus",
"Remote Armor Repairer": "armorDamageAmount",
"Remote Shield Booster": "shieldBonus"}
#Map repairer type to attribute
groupStoreMap = {"Armor Repair Unit": "armorRepair",
"Hull Repair Unit": "hullRepair",
"Shield Booster": "shieldRepair",
"Fueled Shield Booster": "shieldRepair",
"Ancillary Shield Booster": "shieldRepair",
"Remote Armor Repairer": "armorRepair",
"Remote Shield Booster": "shieldRepair",
"Fueled Armor Repairer": "armorRepair",}
"Ancillary Armor Repairer": "armorRepair",}
capUsed = self.capUsed
for attr in ("shieldRepair", "armorRepair", "hullRepair"):

View File

@@ -205,7 +205,7 @@ class Miscellanea(ViewColumn):
tooltip = "{0} disruption".format(formatList(ttEntries)).capitalize()
return text, tooltip
elif itemGroup in ("ECM", "Burst Jammer", "Remote ECM Burst"):
elif itemGroup in ("ECM", "Burst Jammer", "Burst Projectors"):
grav = stuff.getModifiedItemAttr("scanGravimetricStrengthBonus")
ladar = stuff.getModifiedItemAttr("scanLadarStrengthBonus")
radar = stuff.getModifiedItemAttr("scanRadarStrengthBonus")
@@ -458,7 +458,7 @@ class Miscellanea(ViewColumn):
return text, item.name
else:
return "", None
elif itemGroup in ("Fueled Armor Repairer", "Fueled Shield Booster"):
elif itemGroup in ("Ancillary Armor Repairer", "Ancillary Shield Booster"):
hp = stuff.hpBeforeReload
cycles = stuff.numShots
cycleTime = stuff.rawCycleTime
@@ -470,7 +470,7 @@ class Miscellanea(ViewColumn):
useEhp = self.mainFrame.statsPane.nameViewMap["resistancesViewFull"].showEffective
tooltip = "HP restored over duration using charges"
if useEhp:
if itemGroup == "Fueled Armor Repairer":
if itemGroup == "Ancillary Armor Repairer":
hpRatio = ehpTotal["armor"] / hpTotal["armor"]
else:
hpRatio = ehpTotal["shield"] / hpTotal["shield"]
@@ -487,7 +487,7 @@ class Miscellanea(ViewColumn):
if chargeGroup in ("Rocket", "Advanced Rocket", "Light Missile", "Advanced Light Missile", "FoF Light Missile",
"Heavy Assault Missile", "Advanced Heavy Assault Missile", "Heavy Missile", "Advanced Heavy Missile", "FoF Heavy Missile",
"Torpedo", "Advanced Torpedo", "Cruise Missile", "Advanced Cruise Missile", "FoF Cruise Missile",
"Capital Torpedo", "Capital Cruise"):
"XL Torpedo", "XL Cruise Missile"):
cloudSize = stuff.getModifiedChargeAttr("aoeCloudSize")
aoeVelocity = stuff.getModifiedChargeAttr("aoeVelocity")
if not cloudSize or not aoeVelocity: