Fix some mining effects
This commit is contained in:
7
eos/effects/crystalminingamountinfo2.py
Normal file
7
eos/effects/crystalminingamountinfo2.py
Normal 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"))
|
||||
@@ -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"))
|
||||
|
||||
@@ -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"))
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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):
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user