more weight tweaks

Update some potential weight issues.  Eggs won't hatch when in
containers so they weren't affected but add some bulletproofing.
Corpse revival from inside containers was already ok too, so
effectively there's no change except for making container_weight() be
global instead of local to mkobj.c.
This commit is contained in:
PatR
2024-01-25 23:09:12 -08:00
parent ec4691a859
commit 9cd1a571ae
4 changed files with 20 additions and 16 deletions

View File

@@ -1639,6 +1639,7 @@ extern int add_to_minv(struct monst *, struct obj *) NONNULLARG12;
extern struct obj *add_to_container(struct obj *, struct obj *) NONNULLARG12;
extern void add_to_migration(struct obj *) NONNULLARG1;
extern void add_to_buried(struct obj *) NONNULLARG1;
extern void container_weight(struct obj *) NONNULLARG1;
extern void dealloc_obj(struct obj *) NONNULLARG1;
extern void obj_ice_effects(coordxy, coordxy, boolean);
extern long peek_at_iced_corpse_age(struct obj *) NONNULLARG1;