Bilibin Cave Ice
The Bilibin Cave Entrance and Bilibin Cave are two areas between Bilibin and Imil that share this overlay.
The Bilibin Cave Entrance is SceneIdBilibinCaveEntrance. Bilibin Cave is
SceneIdBilibinCaveRapier and, beyond it, SceneIdBilibinCaveIce, whose far end
opens onto the World Map farther north.
No one speaks here. Each scene is a run of Psynergy puzzles. The getters pick
its tables by MainRoutineStateWork.next, and scInit restores what the party
has already solved in the scene being entered.
The Bilibin Cave Entrance is a clearing below a cliff, entered from the World
Map, with a waterfall to the west. The cave has two mouths in the cliff: a
low one at ground level (metatile (21, 14)) and a high one on a ledge to the
north-east (metatile (27, 7)). A sprout grows at the foot of the cliff
(ACTOR_SPROUT, metatile (8, 13)); Growth turns it into a vine Isaac can climb
to the ledge, and in by the high mouth (scBilibinCaveGrowPlant).
FLAG_BILIBIN_CAVE_ENTRANCE_SPROUT_GROWN keeps it grown until the party leaves
the Bilibin Cave Entrance, into the cave or out to the World Map, since both
are other areas.
The cliff-top path passes just above the low mouth, and its metatiles there
switch the mouth's way in off and on again (scBilibinCaveCloseLowerCaveMouth,
scBilibinCaveOpenLowerCaveMouth).
Inside, in SceneIdBilibinCaveRapier, the high mouth leads to the chest of the
Elven Rapier. Coming back later with Reveal, the party finds a way through
the wall beside that chest (scBilibinCaveRevealHiddenPath), and
scBilibinCaveHideRevealedPath closes it again when Reveal wears off. Beyond
is a small room of two torches, the west one cold and the east one lit, with
a little fire burning in the doorway between them (ACTOR_RAPIER_ROOM_FIRE).
Douse puts it out for good (FLAG_BILIBIN_CAVE_SECOND_FIRE_DOUSED), and the
doorway leads to the cave's two last chests, a Psy Crystal and Water of Life.
SceneIdBilibinCaveIce is the cold part of the cave on the way to Imil, full
of ice pillars, with puddles, a fire and burning torches. Frost freezes a
puddle into an ice pillar, but next to a fire or a torch the ice melts
straight back (scBilibinCaveMeltFrostBack).
The first puddle lies beside a little fire (metatile (17, 14)). Douse on the
fire puts it out (FLAG_BILIBIN_CAVE_FIRST_FIRE_DOUSED), and the puddle
freezes by itself into a pillar, whose top the party hops across.
The second puddle lies beside a lit torch near the Vial's chest, which cannot be moved, and Frost on it always melts back.
The third puddle starts as an ice pillar (metatile (36, 23)), east of a pair
of torches that can be pushed or moved with Move (ACTOR_THIRD_TORCH and
ACTOR_FOURTH_TORCH). Set beside it, on metatile (35, 23), either torch melts
it into a puddle, and the metatiles north and south of it become hop squares,
so the party can jump over the puddle and go on. Take the torch away and it
freezes again (scBilibinCaveUpdateThirdPuddleFromTorches).
FLAG_BILIBIN_CAVE_THIRD_TORCH_BY_PILLAR and
FLAG_BILIBIN_CAVE_FOURTH_TORCH_BY_PILLAR remember which torch stands there,
and FLAG_BILIBIN_CAVE_THIRD_PUDDLE_MELTED that the pillar has melted. So
coming back from SceneIdBilibinCaveRapier puts the torches and the pillar
back. Leaving Bilibin Cave resets them.
Nine more pieces of ice only stand there: five pillars from
ACTOR_FIRST_ICE_PILLAR and four lower pieces from ACTOR_FIRST_LOW_ICE.
Snow has blown in at the cave's mouth to the World Map, the way out to Imil,
around BILIBIN_CAVE_ICE_WORLD_MAP. Walking onto it Isaac starts leaving
footprints (scBilibinCaveStartFootprints), and walking off it stops them
(scBilibinCaveStopFootprints).
Its chests hold a Vial, a Psy Crystal and Water of Life.






Events
scBilibinCaveDouseIceRoomFire
Douse on the little fire in the cold part of Bilibin Cave (metatile) puts it out, and the puddle beside it freezes by itself into a tall ice pillar, whose top the party hops across.

Douse on the little fire in the cold part of Bilibin Cave (metatile (17, 14)) puts it out, and the puddle beside it freezes by itself into a tall ice pillar, whose top the party hops across.
scBilibinCaveFreezeFirstPuddle
Frost on the puddle beside the little fire in the cold part of Bilibin Cave (metatile), while the fire burns, makes ice that melts straight back.

Frost on the puddle beside the little fire in the cold part of Bilibin Cave (metatile (18, 14)), while the fire burns, makes ice that melts straight back. Douse on the fire is what freezes it.
scBilibinCaveFreezeSecondPuddle
Frost on the puddle beside the lit torch near the Vial's chest in the cold part of Bilibin Cave makes ice that melts straight back.

The torch cannot be moved, so this puddle never freezes.
scBilibinCaveFreezeThirdPuddle
Frost on the puddle a pushed torch has melted, at metatile in the cold part of Bilibin Cave, makes ice that melts straight back while the torch stands beside it.

Frost on the puddle a pushed torch has melted, at metatile (36, 23) in the
cold part of Bilibin Cave, makes ice that melts straight back while the torch
stands beside it (FLAG_BILIBIN_CAVE_THIRD_PUDDLE_MELTED).
scBilibinCavePushTorch
Walking into one of the pair of torches west of the ice pillar in the cold part of Bilibin Cave pushes it a metatile along the dotted track, if nothing stands in the metatile beyond and the ground there lets it go.

Then, as after Move, it may melt or refreeze the pillar.
scBilibinCaveUpdateThirdPuddleFromTorches
Move on either of the pair of torches west of the ice pillar in the cold part of Bilibin Cave slides it a metatile.

Set beside the pillar, on metatile (35, 23), a torch melts the pillar into a puddle, and the metatiles north and south of it, (36, 22) and (36, 24), become hop squares to jump it by. Taken away again, the puddle freezes back into a pillar, and the hop squares are plain ground once more. The same work follows every push.
scBilibinCaveStartFootprints
Walking onto the snow blown in at the cave mouth toward Imil, in the cold part of Bilibin Cave (metatiles), Isaac starts leaving footprints.
Walking onto the snow blown in at the cave mouth toward Imil, in the cold part of Bilibin Cave (metatiles (32..34, 32..35)), Isaac starts leaving footprints.
scBilibinCaveStopFootprints
Walking off the snow at the cave mouth toward Imil, onto the metatiles round its edge, Isaac stops leaving footprints.
Its code is in bilibin_cave.c.