]> granicus.if.org Git - nethack/commit
Unify monster-consumes-object
authorPasi Kallinen <paxed@alt.org>
Sat, 21 Jan 2023 08:05:44 +0000 (10:05 +0200)
committerPasi Kallinen <paxed@alt.org>
Sat, 21 Jan 2023 08:13:26 +0000 (10:13 +0200)
commitb859288f5ce70e71497d06a0f19537aa05e5e866
treeb93d76d7579297c58e96098a993e3e7a1d5df9e1
parentf607a775a80dbee64f666a14fdafbf148f4303b8
Unify monster-consumes-object

This code was in three different places; pet eating,
monster eating metal, and monster eating other objects.

Other than very minor changes (eg. rustproofing completely
protects pets from bad effects, rustproof items are no longer
giving apport, and monsters eating corpses are healed), it
should behave the same as before... But I haven't exhaustively
gone through every iteration.
include/extern.h
src/dogmove.c
src/mon.c