Lua tests: code coverage for applying some items

Add a new debug flag prevent_pline, which prevents all messages
from going out to the UI. This prevents the tests from stopping
for -more-.
Add rudimentary tests for applying whistles, camera, and stethoscope.
This commit is contained in:
Pasi Kallinen
2026-01-27 17:33:05 +02:00
parent e18f4b65a9
commit 060c3de8eb
5 changed files with 54 additions and 0 deletions

View File

@@ -1494,6 +1494,12 @@ nhl_debug_flags(lua_State *L)
iflags.debug_overwrite_stairs = (boolean) val;
}
/* prevent pline going out to the UI */
val = get_table_boolean_opt(L, "prevent_pline", -1);
if (val != -1) {
iflags.debug_prevent_pline = (boolean) val;
}
return 0;
}