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:
@@ -930,6 +930,8 @@ detect_obj_traps(
|
||||
continue;
|
||||
}
|
||||
if (Is_box(otmp) && otmp->otrapped) {
|
||||
otmp->tknown = 1;
|
||||
otmp->dknown = 1;
|
||||
result |= u_at(x, y) ? OTRAP_HERE : OTRAP_THERE;
|
||||
if (ft) {
|
||||
flash_glyph_at(x, y, trapglyph, FOUND_FLASH_COUNT);
|
||||
|
||||
Reference in New Issue
Block a user