File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -3358,4 +3358,6 @@ The following changes to date are:
3358
3358
destoryed or fell off when polymorphing
3359
3359
- Fix: incorrect feedback when attempting to steal from a monster and
3360
3360
the objects being stolen have the oilskin object property
3361
+ - Fix: if the player blows up their bag of holding, make known the bag,
3362
+ and the object placed inside of it that made the bag blow up
3361
3363
Original file line number Diff line number Diff line change @@ -2404,6 +2404,7 @@ boolean on_floor;
2404
2404
VIS_EFFECTS | MAY_HIT | MAY_DESTROY | MAY_FRACTURE , otmp );
2405
2405
}
2406
2406
}
2407
+ makeknown (BAG_OF_HOLDING ); /* bag just blew up? must be a bag of holding */
2407
2408
}
2408
2409
2409
2410
STATIC_OVL long
@@ -2542,7 +2543,8 @@ register struct obj *obj;
2542
2543
/* did not actually insert obj yet */
2543
2544
if (was_unpaid )
2544
2545
addtobill (obj , FALSE, FALSE, TRUE);
2545
- if (obj -> otyp == WAN_CANCELLATION )
2546
+ if (obj -> otyp == WAN_CANCELLATION
2547
+ || obj -> otyp == BAG_OF_TRICKS )
2546
2548
makeknown (obj -> otyp );
2547
2549
if (obj -> otyp == BAG_OF_HOLDING ) /* one bag of holding into another */
2548
2550
do_boh_explosion (obj , (obj -> where == OBJ_FLOOR ));
@@ -3716,6 +3718,9 @@ struct obj *box; /* or bag */
3716
3718
pline (
3717
3719
"As %s %s inside, you are blasted by a magical explosion!" ,
3718
3720
ansimpleoname (otmp ), otense (otmp , "tumble" ));
3721
+ if (otmp -> otyp == WAN_CANCELLATION
3722
+ || otmp -> otyp == BAG_OF_TRICKS )
3723
+ makeknown (otmp -> otyp );
3719
3724
do_boh_explosion (targetbox , held );
3720
3725
nobj = 0 ; /* stop tipping; want loop to exit 'normally' */
3721
3726
You can’t perform that action at this time.
0 commit comments