roippi
Developer
Starting with 4 actual currentSpleenUse, and manually setting currentSpleenUse to 0 (i.e. simulating using a spleen item outside of mafia):
Likewise if my actual currentSpleenUse is 8, if I set currentSpleenUse to 0 and try to use 2 items it will fail and set my spleen to 8. You can imagine other undesirable combinations; erroneously attempting to use 20 wads on an empty unsteeled spleen will set it to full.
Perhaps if a multi-use fails, UseItemRequest could attempt to single-use?
Code:
> ash available_amount($item["Agua de Vida"])
Returned: 26
> set currentSpleenUse=0
currentSpleenUse => 0
> use 3 agua de vida
Using 3 agua de vida...
Your spleen might go kablooie.
> ash available_amount($item["Agua de Vida"])
Returned: 26
> get currentSpleenUse
12
Likewise if my actual currentSpleenUse is 8, if I set currentSpleenUse to 0 and try to use 2 items it will fail and set my spleen to 8. You can imagine other undesirable combinations; erroneously attempting to use 20 wads on an empty unsteeled spleen will set it to full.
Perhaps if a multi-use fails, UseItemRequest could attempt to single-use?