Saving grace

Once per game, if receiving a killing blow from above 90% HP,
allow the hero to survive with 1 HP.
This commit is contained in:
Pasi Kallinen
2023-03-03 17:37:02 +02:00
parent 2c092bb641
commit 08a2a2a1a4
6 changed files with 19 additions and 2 deletions

View File

@@ -419,7 +419,7 @@ struct you {
Bitfield(uinvulnerable, 1); /* you're invulnerable (praying) */
Bitfield(uburied, 1); /* you're buried */
Bitfield(uedibility, 1); /* blessed food detect; sense unsafe food */
/* 1 free bit! */
Bitfield(usaving_grace, 1); /* prevents death once */
unsigned udg_cnt; /* how long you have been demigod */
struct u_event uevent; /* certain events have happened */