From 90baffe2679b85141df427b9d60acbdb9ac64ed4 Mon Sep 17 00:00:00 2001 From: DarkPhoenix Date: Wed, 24 Nov 2021 02:53:31 +0300 Subject: [PATCH] Add new porpoise effects --- eos/effects.py | 87 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 87 insertions(+) diff --git a/eos/effects.py b/eos/effects.py index 89809c195..f0018e190 100644 --- a/eos/effects.py +++ b/eos/effects.py @@ -37314,6 +37314,93 @@ class Effect8222(BaseEffect): ship.getModifiedItemAttr('shipRoleBonusIceMiningDroneCycleTime'), **kwargs) +class Effect8261(BaseEffect): + """ + industrialCommandBonusDroneDamage + + Used by: + Ships from group: Industrial Command Ship (2 of 2) + Ship: Rorqual + """ + + type = 'passive' + + @staticmethod + def handler(fit, ship, context, projectionRange, **kwargs): + fit.drones.filteredItemBoost( + lambda drone: drone.item.requiresSkill('Drones'), 'damageMultiplier', + ship.getModifiedItemAttr('industrialCommandBonusDroneDamage'), + skill='Industrial Command Ships', **kwargs) + + +class Effect8271(BaseEffect): + """ + industrialCommandBonusGasHoldCapacity + + Used by: + Ship: Porpoise + """ + + type = 'passive' + + @staticmethod + def handler(fit, ship, context, projectionRange, **kwargs): + fit.ship.boostItemAttr( + 'specialGasHoldCapacity', ship.getModifiedItemAttr('industrialCommandBonusGasHoldCapacity'), + skill='Industrial Command Ships', **kwargs) + + +class Effect8272(BaseEffect): + """ + industrialCommandBonusIceHoldCapacity + + Used by: + Ship: Porpoise + """ + + type = 'passive' + + @staticmethod + def handler(fit, ship, context, projectionRange, **kwargs): + fit.ship.boostItemAttr( + 'specialIceHoldCapacity', ship.getModifiedItemAttr('industrialCommandBonusIceHoldCapacity'), + skill='Industrial Command Ships', **kwargs) + + +class Effect8278(BaseEffect): + """ + industrialCommandBonusOreHoldCapacity + + Used by: + Ships from group: Industrial Command Ship (2 of 2) + """ + + type = 'passive' + + @staticmethod + def handler(fit, ship, context, projectionRange, **kwargs): + fit.ship.boostItemAttr( + 'specialOreHoldCapacity', ship.getModifiedItemAttr('industrialCommandBonusOreHoldCapacity'), + skill='Industrial Command Ships', **kwargs) + + +class Effect8279(BaseEffect): + """ + industrialCommandBonusShipHoldCapacity + + Used by: + Ships from group: Industrial Command Ship (2 of 2) + """ + + type = 'passive' + + @staticmethod + def handler(fit, ship, context, projectionRange, **kwargs): + fit.ship.boostItemAttr( + 'capacity', ship.getModifiedItemAttr('industrialCommandBonusShipCargoCapacity'), + skill='Industrial Command Ships', **kwargs) + + class Effect8283(BaseEffect): """ expeditionFrigateBonusLightDronesDamage