From 418339d000955abc7315d123f5000b1e3c47bab4 Mon Sep 17 00:00:00 2001 From: DarkPhoenix Date: Wed, 24 Nov 2021 01:33:20 +0300 Subject: [PATCH] Add new prospect effects --- eos/effects.py | 71 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 71 insertions(+) diff --git a/eos/effects.py b/eos/effects.py index 13f03aa86..87b6af22b 100644 --- a/eos/effects.py +++ b/eos/effects.py @@ -37188,3 +37188,74 @@ class Effect8158(BaseEffect): fit.modules.filteredItemBoost( lambda mod: mod.item.requiresSkill('Cloaking'), 'stabilizeCloakDuration', booster.getModifiedItemAttr('stabilizeCloakDurationBonus'), **kwargs) + + +class Effect8208(BaseEffect): + """ + shipRoleBonusScanProbeStrength + + Used by: + Ships from group: Expedition Frigate (2 of 2) + """ + + type = 'passive' + + @staticmethod + def handler(fit, ship, context, projectionRange, **kwargs): + fit.modules.filteredChargeBoost( + lambda mod: mod.charge.requiresSkill('Astrometrics'), 'baseSensorStrength', + ship.getModifiedItemAttr('shipRoleBonusScanProbeBonus'), **kwargs) + + +class Effect8209(BaseEffect): + """ + expeditionFrigateBonusMiningLaserDuration + + Used by: + Ship: Prospect + """ + + type = 'passive' + + @staticmethod + def handler(fit, ship, context, projectionRange, **kwargs): + fit.modules.filteredItemBoost( + lambda mod: mod.item.requiresSkill('Mining'), 'duration', + ship.getModifiedItemAttr('expeditionFrigateBonusMiningLaserDuration'), + skill='Expedition Frigates', **kwargs) + + +class Effect8210(BaseEffect): + """ + expeditionFrigateBonusIceHarvestingDuration + + Used by: + Ship: Prospect + """ + + type = 'passive' + + @staticmethod + def handler(fit, ship, context, projectionRange, **kwargs): + fit.modules.filteredItemBoost( + lambda mod: mod.item.requiresSkill('Ice Harvesting'), 'duration', + ship.getModifiedItemAttr('expeditionFrigateBonusIceHarvestingDuration'), + skill='Expedition Frigates', **kwargs) + + +class Effect8211(BaseEffect): + """ + expeditionFrigateBonusGasHarvestingDuration + + Used by: + Ship: Prospect + """ + + type = 'passive' + + @staticmethod + def handler(fit, ship, context, projectionRange, **kwargs): + fit.modules.filteredItemBoost( + lambda mod: mod.item.requiresSkill('Gas Cloud Harvesting'), 'duration', + ship.getModifiedItemAttr('expeditionFrigateBonusGasHarvestingDuration'), + skill='Expedition Frigates', **kwargs)