Hero remembers trapped boxes
After finding a trap on a chest or a large box, remember it as trapped: "You see here a trapped large box." Randomly generated chests and boxes can be obviously trapped. Allow defining obviously trapped containers via lua. Invalidates saves and bones.
This commit is contained in:
@@ -295,6 +295,7 @@ l_obj_to_table(lua_State *L)
|
||||
nhl_add_table_entry_int(L, "dknown", obj->dknown);
|
||||
nhl_add_table_entry_int(L, "bknown", obj->bknown);
|
||||
nhl_add_table_entry_int(L, "rknown", obj->rknown);
|
||||
nhl_add_table_entry_int(L, "tknown", obj->tknown);
|
||||
if (obj->oclass == POTION_CLASS)
|
||||
nhl_add_table_entry_int(L, "odiluted", obj->odiluted);
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user