From c882351886352cefbdc9382b5ddd22b05aa992e1 Mon Sep 17 00:00:00 2001 From: DarkPhoenix Date: Fri, 21 Aug 2020 00:15:32 +0300 Subject: [PATCH] Make propmod speed bonuses penalizable as postMul chain, fixes black hole + propmod speeds --- eos/effects.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/eos/effects.py b/eos/effects.py index a61026a0a..31b6e4304 100644 --- a/eos/effects.py +++ b/eos/effects.py @@ -31536,7 +31536,9 @@ class Effect6730(BaseEffect): speedBoost = module.getModifiedItemAttr('speedFactor') mass = fit.ship.getModifiedItemAttr('mass') thrust = module.getModifiedItemAttr('speedBoostFactor') - fit.ship.boostItemAttr('maxVelocity', speedBoost * thrust / mass, **kwargs) + # It is actually a postMul, see black hole speed interactions + fit.ship.boostItemAttr('maxVelocity', speedBoost * thrust / mass, + stackingPenalties=True, penaltyGroup='postMul', **kwargs) fit.ship.boostItemAttr('signatureRadius', module.getModifiedItemAttr('signatureRadiusBonus'), stackingPenalties=True, **kwargs) @@ -31558,7 +31560,9 @@ class Effect6731(BaseEffect): speedBoost = module.getModifiedItemAttr('speedFactor') mass = fit.ship.getModifiedItemAttr('mass') thrust = module.getModifiedItemAttr('speedBoostFactor') - fit.ship.boostItemAttr('maxVelocity', speedBoost * thrust / mass, **kwargs) + # It is actually a postMul, see black hole speed interactions + fit.ship.boostItemAttr('maxVelocity', speedBoost * thrust / mass, + stackingPenalties=True, penaltyGroup='postMul', **kwargs) class Effect6732(BaseEffect):