Arithmetic

Shell variables hold text. To do arithmetic, you have to ask for it:

export MANA=10
let MANA=MANA+5
echo $MANA

Inside let, names are read as numbers, so no $ is needed. Bash also has $(( MANA + 5 )), which you'll meet in real scripts.

This game uses the same trick: your health lives in $HP, and let HP=HP-5 is how a monster hurts you.