nhmall
9b4a8dfb05
mon interaction with terrain was postponed
...
Fix #576
Reported initially by @copperwater for polymorphed monsters:
"observe how the [polymorphed-monster] hovers placidly above the water for
several turns like Wile E. Coyote before it gets a move, realizes it's
above water, and drowns. Ditto for lava."
A comment in the GitHub issue thread by @Tomsod pointed out that a
revived corpse could do the same.
This should set things up for other terrain fallout if discovered or
implemented in the future.
- consume an additional bit in enum mon_terrain_effects (hack.h)
- include the additional bit in TERRAIN_FALLOUT_MASK (monst.h)
- add detection to maybe_set_terrain_effects (mon.c)
- add action to terrain_effects (mon.c)
Implemented by stealing some upper unused mstate bits to avoid
invalidating existing save and bones.
2026-08-23 18:51:13 -04:00
..
2022-02-04 11:01:20 -05:00
2025-05-25 20:38:17 -04:00
2026-06-20 18:26:43 -04:00
2026-07-23 09:01:57 -04:00
2026-06-20 18:26:43 -04:00
2026-06-20 18:26:43 -04:00
2026-06-20 18:26:43 -04:00
2026-08-14 11:08:26 +03:00
2026-06-20 18:26:43 -04:00
2026-06-20 18:26:43 -04:00
2026-06-05 16:30:09 +02:00
2026-06-20 18:26:43 -04:00
2026-06-20 18:26:43 -04:00
2026-06-20 18:26:43 -04:00
2026-08-23 18:51:13 -04:00
2026-06-20 18:26:43 -04:00
2026-06-20 18:26:43 -04:00
2026-06-20 18:26:43 -04:00
2026-06-20 18:26:43 -04:00
2026-06-20 18:26:43 -04:00
2026-06-20 18:26:43 -04:00
2026-08-23 18:51:13 -04:00
2026-06-20 18:26:43 -04:00
2026-06-20 18:26:43 -04:00
2026-06-20 18:26:43 -04:00
2026-06-05 16:30:09 +02:00
2026-08-23 18:51:13 -04:00
2026-06-20 18:26:43 -04:00
2026-06-20 18:26:43 -04:00
2024-09-06 13:08:07 -07:00
2026-06-20 18:26:43 -04:00
2026-06-20 18:26:43 -04:00
2026-04-01 10:59:22 -04:00
2026-06-20 18:26:43 -04:00
2026-06-20 18:26:43 -04:00
2026-06-20 18:26:43 -04:00
2026-06-20 18:26:43 -04:00
2026-06-20 18:26:43 -04:00
2026-06-20 18:26:43 -04:00
2026-06-20 18:26:43 -04:00
2026-08-23 18:51:13 -04:00
2026-06-20 18:26:43 -04:00
2026-06-20 18:26:43 -04:00
2026-06-20 18:26:43 -04:00
2026-06-20 18:26:43 -04:00
2026-06-20 18:26:43 -04:00
2026-06-20 18:26:43 -04:00
2026-08-19 07:16:57 -04:00
2026-06-20 18:26:43 -04:00
2026-08-16 07:09:22 -04:00
2026-06-20 18:26:43 -04:00
2026-06-20 18:26:43 -04:00
2026-06-20 18:26:43 -04:00
2026-06-20 18:26:43 -04:00
2026-06-20 18:26:43 -04:00
2026-06-10 15:52:13 -04:00
2026-06-20 18:26:43 -04:00
2026-06-20 18:26:43 -04:00
2026-06-20 18:26:43 -04:00
2026-04-26 09:25:42 -04:00
2026-05-27 16:14:20 -04:00
2026-05-27 16:14:20 -04:00
2026-06-20 18:26:43 -04:00
2026-06-20 18:26:43 -04:00
2026-06-20 18:26:43 -04:00
2026-06-20 18:26:43 -04:00
2026-06-20 18:26:43 -04:00
2026-04-26 13:21:18 -04:00
2026-05-22 06:02:00 +01:00
2026-06-20 18:26:43 -04:00
2026-06-20 18:26:43 -04:00
2026-06-20 18:26:43 -04:00
2026-06-20 18:26:43 -04:00
2026-06-20 18:26:43 -04:00
2026-06-20 18:26:43 -04:00
2026-06-10 15:52:13 -04:00
2026-06-20 18:26:43 -04:00
2026-06-20 18:26:43 -04:00
2026-06-20 18:26:43 -04:00
2026-06-20 18:26:43 -04:00
2026-06-20 18:26:43 -04:00
2026-06-19 16:36:27 +02:00
2026-08-19 08:00:15 -04:00
2026-06-20 18:26:43 -04:00
2026-06-20 18:26:43 -04:00
2026-06-20 18:26:43 -04:00
2026-08-22 10:57:24 +03:00
2026-06-20 18:26:43 -04:00
2026-06-20 18:26:43 -04:00
2026-06-20 18:26:43 -04:00
2026-06-20 18:26:43 -04:00