Expose trap once-field to lua

This commit is contained in:
Pasi Kallinen
2025-04-13 17:32:14 +03:00
parent eeb96c4151
commit a185c270bb
2 changed files with 2 additions and 0 deletions

View File

@@ -432,6 +432,7 @@ nhl_gettrap(lua_State *L)
get_trapname_bytype(ttmp->ttyp));
nhl_add_table_entry_bool(L, "tseen", ttmp->tseen);
nhl_add_table_entry_bool(L, "madeby_u", ttmp->madeby_u);
nhl_add_table_entry_bool(L, "once", ttmp->once);
switch (ttmp->ttyp) {
case SQKY_BOARD:
nhl_add_table_entry_int(L, "tnote", ttmp->tnote);