- fixed use of Powerup.Strength in PowerInvisibility.

An integer division made the feature useless.
This commit is contained in:
Christoph Oelckers 2020-05-25 16:43:01 +02:00
parent c9b37f8320
commit 6444a7535c

View file

@ -569,7 +569,7 @@ class PowerInvisibility : Powerup
Super.DoEffect();
// Due to potential interference with other PowerInvisibility items
// the effect has to be refreshed each tic.
double ts = (Strength / 100) * (special1 + 1);
double ts = (Strength / 100.) * (special1 + 1);
if (ts > 1.) ts = 1.;
let newAlpha = clamp((1. - ts), 0., 1.);