Make trap return values more consistent

Instead of returning monster's mtrapped-state, return specific
trap return values.
Add one extra trap return value, for when a monster was
moved by the trap.
This commit is contained in:
Pasi Kallinen
2022-02-24 16:23:56 +02:00
parent 547f6e9244
commit 9716f22851
6 changed files with 49 additions and 38 deletions

View File

@@ -86,7 +86,8 @@ enum trap_types {
enum { Trap_Effect_Finished = 0,
Trap_Is_Gone = 0,
Trap_Caught_Mon = 1,
Trap_Killed_Mon = 2
Trap_Killed_Mon = 2,
Trap_Moved_Mon = 3, /* new location, or new level */
};
#define is_pit(ttyp) ((ttyp) == PIT || (ttyp) == SPIKED_PIT)