]> granicus.if.org Git - nethack/commit
B01006 - containers hitting the floor
authorcohrs <cohrs>
Sat, 29 Mar 2003 03:31:51 +0000 (03:31 +0000)
committercohrs <cohrs>
Sat, 29 Mar 2003 03:31:51 +0000 (03:31 +0000)
commit66ece5d870d94ca9cdfab70613dbc540b200f780
tree791160bf03b9f8bd993d2f800fae25a0db11840c
parentd5f40ec222d5b3eeb7f9d8f2ca8202c66eb127e7
B01006 - containers hitting the floor
<Someone> noted that if you dropped a box while levitating, nothing would
break.  This is true for sacks too, which shouldn't be immune either.
Throwing didn't break contained objects either, not mentioned in his report.

Refactored out the code in kick_object that handled damage for objects
contained in normal containers and added calls in hitfloor and throwit.
kick_object still only calls it for boxes, but other callers will call it
for any object letting it decide if damage is required.  BoH objects aren't
affected, since traditionally the inside of the BoH is "somewhere else".
doc/fixes34.2
include/extern.h
src/dokick.c
src/dothrow.c