Fix some mining effects

This commit is contained in:
blitzmann
2015-10-05 20:37:41 -04:00
parent f17fb82ce7
commit a67b46bb9a
7 changed files with 13 additions and 5 deletions

View File

@@ -0,0 +1,7 @@
# crystalMiningamountInfo2
#
# Used by:
# Modules from group: Frequency Mining Laser (3 of 3)
type = "passive"
def handler(fit, module, context):
module.preAssignItemAttr("specialtyMiningAmount", module.getModifiedItemAttr("miningAmount"))

View File

@@ -3,6 +3,7 @@
# Used by:
# Module: Medium Mercoxit Mining Crystal Optimization I
type = "passive"
runTime="early"
def handler(fit, module, context):
fit.modules.filteredChargeBoost(lambda mod: mod.charge.requiresSkill("Mercoxit Processing"),
"specialisationAsteroidYieldMultiplier", module.getModifiedItemAttr("miningAmountBonus"))

View File

@@ -5,4 +5,4 @@
# Charges named like: Mining Crystal (32 of 32)
type = "passive"
def handler(fit, module, context):
module.multiplyItemAttr("miningAmount", module.getModifiedChargeAttr("specialisationAsteroidYieldMultiplier"))
module.multiplyItemAttr("specialtyMiningAmount", module.getModifiedChargeAttr("specialisationAsteroidYieldMultiplier"))

View File

@@ -1,7 +1,7 @@
# missileSkillRapidLauncherRoF
#
# Used by:
# Implants named like: Cerebral Accelerator (3 of 5)
# Implants named like: Cerebral Accelerator (5 of 5)
# Implants named like: Zainou 'Deadeye' Rapid Launch RL (6 of 6)
# Implant: Whelan Machorin's Ballistic Smartlink
# Skill: Missile Launcher Operation

View File

@@ -1,7 +1,7 @@
# surgicalStrikeDamageMultiplierBonusPostPercentDamageMultiplierLocationShipModulesRequiringGunnery
#
# Used by:
# Implants named like: Cerebral Accelerator (3 of 5)
# Implants named like: Cerebral Accelerator (5 of 5)
# Implants named like: Eifyr and Co. 'Gunslinger' Surgical Strike SS (6 of 6)
type = "passive"
def handler(fit, implant, context):

View File

@@ -316,7 +316,7 @@ class Module(HandledItem, HandledCharge, ItemAttrShortcut, ChargeAttrShortcut):
self.__miningyield = 0
else:
if self.state >= State.ACTIVE:
volley = sum(map(lambda attr: self.getModifiedItemAttr(attr) or 0, self.MINING_ATTRIBUTES))
volley = self.getModifiedItemAttr("specialtyMiningAmount") or self.getModifiedItemAttr("miningAmount") or 0
if volley:
cycleTime = self.cycleTime
self.__miningyield = volley / (cycleTime / 1000.0)