gotnull

Part 5 of 13 in Ghostveil

The fire stops killing

Ghostveil's blue fire used to kill on contact and refuse moves for reasons nobody could see; now it only powers things, and spike floors carry the danger.

The blue fire in Ghostveil runs from a brazier through rune channels, stones and anything else that carries it, and opens doors on the way. Until 9th October 2026 it also killed. Step onto a lit channel and Fantasma flashed white and was put back where she stood.

That part was fair, because a lit channel glows. The trouble was a move that lit the square she was stepping onto. Push a stone so that it carries the fire into the very channel she follows it onto, and the game refused the push. Nothing on screen said why. Here's one in the old Held Open: the last push to the right is refused, with sparks and a white flash, and she's back where she was.

The rule as it stood was one check at the end of every move:

StepResult? _finish(PuzzleState before, Dir d, StepResult? r) {
  if (r == null) return null;
  if (isLive(r.state, r.state.player)) {
    return StepResult(before.copyWith(facing: d), [Zapped(r.state.player)]);
  }

It looks at the state after the move, and only that. Written out, with ss the state before a move, s′s' the state after it, qq the square she ends on, and L(s)L(s) the lit squares in a state:

refused  ⟺  q∈L(s′)\text{refused} \iff q \in L(s')

Most refusals were onto a channel that was already lit. The ones nobody could read were those where q∈L(s′)q \in L(s') but q∉L(s)q \notin L(s): the square was dark until the move itself lit it.

I counted both by walking every position the old rooms could reach and trying every move from each. About one position in five had a move the rule refused, from 13 per cent in Bridge of Stone to 31 per cent in Weight; only Cistern, a water room with no fire in it at all, had none. The ones that lit their own square were rarer: 16 in Held Open, 10 in Bridge of Stone, 3 in Wet Wire, 36 in Cold Fire and 196 in Floodgate. Players met them anyway and took them for a bug.

Bar chart of the share of positions in each old room with a move the old rule refused: Spark 24 per cent, Weight 31, Live Wire 22, Turning Current 15, Held Open 25, Bridge of Stone 13, Cistern 0, Wet Wire 24, Floodgate 18, Cold Fire 16, Undercroft 19

Spikes that show themselves

So the danger moved to something you can see before you step. The fire only powers things now. Its danger lives in spike floors: channels with spikes standing in the groove, which sink while the fire runs through them and stay down while Fantasma, a stone or a crate rests on them.

bool spikesUp(PuzzleState s, Pos p, {bool countPlayer = true}) {
  if (level.at(p) != Terrain.spikes) return false;
  if ((countPlayer && s.player == p) ||
      blockAt(s, p) != null ||
      crateAt(s, p) != null) {
    return false;
  }
  return !powered(s).contains(p);
}

The move check changed with it. A step is refused only when the spikes were standing before the move and are still standing after it, leaving her own weight out:

refused  ⟺  q∈U(s)   and   q∈U(s′)\text{refused} \iff q \in U(s) \;\text{ and }\; q \in U(s')

Here U(s)U(s) is the set of squares whose spikes stand in state ss, and ss, s′s' and qq mean what they did above. The first half is the point: the spikes were up before she moved, so whatever stops her was there to see. A move that brings the fire to the spikes as she steps on lets her through.

Here's Spike Floor, the room that took Live Wire's place. She walks over the lit channel without a scratch, and the spike floors drop once the stone carries the fire to them.

I tried the new rules as a prototype first, on a switch and a save of their own, with every shipped room still solving exactly as before under the old ones. The fire rooms were made again under the new rules, and by the evening they were the game's rules. Live Wire became Spike Floor, and the two water rooms became Slipway and Undertow, where water no longer carries the fire and a stone pushed into a pool slides across. A stone sunk into a pit in a room with fire now becomes rune floor, so the fire lights it like any other channel. Undercroft, the last room, came out of the generator again with a solution of 31 steps.