Lua: Allow setting debug_flags

This commit is contained in:
Pasi Kallinen
2021-07-29 07:36:08 +03:00
parent bb23c4f557
commit 7bfbe0fba9
4 changed files with 24 additions and 13 deletions

View File

@@ -2842,7 +2842,7 @@ gethungry(void)
{
int accessorytime;
if (u.uinvulnerable)
if (u.uinvulnerable || iflags.debug_hunger)
return; /* you don't feel hungrier */
/* being polymorphed into a creature which doesn't eat prevents