Themeroom: buried zombies

- add a themeroom with random buried zombifying corpses
- disturbing buried zombies makes them revive much faster
- lua des.object() now returns the object it created
This commit is contained in:
Pasi Kallinen
2023-04-01 14:05:14 +03:00
parent 4542d14d23
commit ba60bfac25
4 changed files with 18 additions and 3 deletions

View File

@@ -1605,7 +1605,7 @@ check_buried_zombies(coordxy x, coordxy y)
&& otmp->oy >= y - 1 && otmp->oy <= y + 1
&& (t = peek_timer(ZOMBIFY_MON, obj_to_any(otmp))) > 0) {
t = stop_timer(ZOMBIFY_MON, obj_to_any(otmp));
(void) start_timer(max(1, t - rn2(10)), TIMER_OBJECT,
(void) start_timer(max(1, (t*2/3)), TIMER_OBJECT,
ZOMBIFY_MON, obj_to_any(otmp));
}
}