Accessibility: showdamage option

Add a new boolean option showdamage, if on, outputs a message
like "[HP -2, 14 left]" - several variants have something similar,
but I chose the message based on how eSpeak said it, while keeping
it short.
This commit is contained in:
Pasi Kallinen
2024-02-24 17:38:46 +02:00
parent 9927e264b5
commit dd37c5326a
8 changed files with 32 additions and 1 deletions
+2
View File
@@ -1810,11 +1810,13 @@ mdamageu(struct monst *mtmp, int n)
disp.botl = TRUE;
if (Upolyd) {
u.mh -= n;
showdamage(n);
if (u.mh < 1)
rehumanize();
} else {
n = saving_grace(n);
u.uhp -= n;
showdamage(n);
if (u.uhp < 1)
done_in_by(mtmp, DIED);
}