lava_effects() bit
lava_effects() item destrunction had the logic for handling Book of the Dead wrong. (However, that didn't matter since the obj_resists() check earlier would prevent it from being burned up. Fix it anyway.)
This commit is contained in:
@@ -236,9 +236,9 @@ remove_worn_item(
|
||||
/*
|
||||
* Losing worn gear might drop hero into water or lava or onto a
|
||||
* location-changing trap or take away the ability to breathe in water.
|
||||
* Marking it 'in_use' prevents emergency_disrobe() from dropping it.
|
||||
* in_lava() appears to be ok; other cases impacting object location
|
||||
* (or destruction) might still have issues.
|
||||
* Marking it 'in_use' prevents emergency_disrobe() from dropping it
|
||||
* and lava_effects() from destroying it; other cases impacting object
|
||||
* location (or destruction) might still have issues.
|
||||
*
|
||||
* Note: if a hangup save occurs when 'in_use' is set, the item will
|
||||
* be destroyed via useup() during restore. Maybe remove_worn_item()
|
||||
|
||||
Reference in New Issue
Block a user