Files
Bubberstation/code/game/objects/items/weapons/melee
oranges 0844b8efed Improves stunbaton code to prevent runtimes and a miscount in charge
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
2016-11-07 23:55:19 +00:00
..