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:
@@ -141,9 +141,9 @@ struct obj {
|
||||
* they have no locks */
|
||||
Bitfield(pickup_prev, 1); /* was picked up previously */
|
||||
Bitfield(ghostly, 1); /* it just got placed into a bones file */
|
||||
Bitfield(tknown, 1); /* trap status known for chests */
|
||||
#if 0
|
||||
/* not implemented */
|
||||
Bitfield(tknown, 1); /* trap status known for chests */
|
||||
Bitfield(eknown, 1); /* effect known for wands zapped or rings worn when
|
||||
* not seen yet after being picked up while blind
|
||||
* [maybe for remaining stack of used potion too] */
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
* Incrementing EDITLEVEL can be used to force invalidation of old bones
|
||||
* and save files.
|
||||
*/
|
||||
#define EDITLEVEL 112
|
||||
#define EDITLEVEL 113
|
||||
|
||||
/*
|
||||
* Development status possibilities.
|
||||
|
||||
@@ -156,7 +156,7 @@ typedef struct {
|
||||
int quan;
|
||||
short buried;
|
||||
short lit;
|
||||
short eroded, locked, trapped, recharged, invis, greased, broken,
|
||||
short eroded, locked, trapped, tknown, recharged, invis, greased, broken,
|
||||
achievement;
|
||||
} object;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user