Hmm... That's a little confusing. So that was just some temporary fix, or what? Should I remove it?
No it wasn't a temporary fix.
It was a
specific fix designed for the releasebod routine. It is not valid in the releasenrg routine as, despite the similarities, they do slightly different things with slightly different parameters.
Num's suggestion would work however. Set a ceiling of 32000 and a floor of 0 for power. It certainly won't hurt and may even help.
Then again the real issue could be somewhere else completely and may not even be in this module. All we know is that poison is getting too big. We don't know why yet so applying a fix is somewhat premature.