mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-01-29 02:21:44 +00:00
Previously if the final stun from a stunbaton used all the power in the cell (putting it below hitcost) it would not properly return the actual value of the cell.use call, so you would use the energy but not properly get the stun The logic of the deductcharge proc has been refactor to avoid this by explicitly returning the value of cell.use call no matter if the stun baton is switched off or not The code was also cleaned slightly to improve readability