The winning line always wears the eye
One instant-replay eye per turn keeps the chronicle uncluttered — but the turn that WINS the game is the turn people want to relive, and if its wizard did something notable earlier, the eye had already been spent by the time the crown line printed. The game-winning line now carries its own eye regardless, fireworks and all. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Fable 5
parent
252d10711d
commit
88994f18a2
@@ -442,7 +442,11 @@ class Net {
|
|||||||
if (TURN_BOUNDARY.has(e.type)) this.turnCounter++;
|
if (TURN_BOUNDARY.has(e.type)) this.turnCounter++;
|
||||||
const line = humanize(e);
|
const line = humanize(e);
|
||||||
if (line) {
|
if (line) {
|
||||||
const notable = this.turnCounter >= 0 && this.turnCounter !== this.eyeTurn && isNotableEvent(e);
|
// One eye per turn — except the crown: the game-winning
|
||||||
|
// line always carries its own, whatever came before it.
|
||||||
|
const notable = this.turnCounter >= 0 &&
|
||||||
|
(e.type === "gameWon" ||
|
||||||
|
(this.turnCounter !== this.eyeTurn && isNotableEvent(e)));
|
||||||
if (notable) this.eyeTurn = this.turnCounter;
|
if (notable) this.eyeTurn = this.turnCounter;
|
||||||
this.log = [...this.log, { text: line, turn: this.turnCounter >= 0 ? this.turnCounter : null, notable }];
|
this.log = [...this.log, { text: line, turn: this.turnCounter >= 0 ? this.turnCounter : null, notable }];
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user