Yield not triggering in certain conditions
I have the following code inside an upgrade:
if (Energy >= 100) $nrg = 0
yield $nrg Energyticker
if ($nrg >= 1)
yield 1 Energyticker
toast still no yield
the Energyticker resource does not increment at all - by rights it should be increasing by 2 because of the two different lines here.
The toast line triggers so that means the yields should trigger too - there is no reason why it shouldn't yield if the toast works, so this has to be a bug.
I have tried changing values, names, and variables to no effect. I have confirmed that Energyticker yields in a more basic setting but the moment I have it conditional on the $nrg value, it refuses to increase.