MCPcopy Create free account
hub / github.com/NetHack/NetHack / melt_ice_away

Function melt_ice_away

src/zap.c:5118–5132  ·  view source on GitHub ↗

* Called when ice has melted completely away. */

Source from the content-addressed store, hash-verified

5116 * Called when ice has melted completely away.
5117 */
5118void
5119melt_ice_away(anything *arg, long timeout UNUSED)
5120{
5121 coordxy x, y;
5122 long where = arg->a_long;
5123 boolean save_mon_moving = svc.context.mon_moving; /* will be False */
5124
5125 /* melt_ice -> minliquid -> mondead|xkilled shouldn't credit/blame hero */
5126 svc.context.mon_moving = TRUE; /* hero isn't causing this ice to melt */
5127 y = (coordxy) (where & 0xFFFF);
5128 x = (coordxy) ((where >> 16) & 0xFFFF);
5129 /* melt_ice does newsym when appropriate */
5130 melt_ice(x, y, "Some ice melts away.");
5131 svc.context.mon_moving = save_mon_moving;
5132}
5133
5134/* Burn floor scrolls, evaporate pools, etc... in a single square.
5135 * Used both for normal bolts of fire, cold, etc... and for fireballs.

Callers

nothing calls this directly

Calls 1

melt_iceFunction · 0.85

Tested by

no test coverage detected