Say who is playing, what you can press, and where you are in the Stage
Mostly presentation, plus one rules fix found on the way.
This commit is contained in:
+6
-4
@@ -59,9 +59,9 @@ export function phaseLabel(phase: string): string {
|
||||
case 'mainline':
|
||||
return 'Mainline';
|
||||
case 'loadUnload':
|
||||
return 'Load / Unload';
|
||||
return 'Cargo';
|
||||
case 'shiftChange':
|
||||
return 'Shift Change';
|
||||
return 'Supervisor Shift';
|
||||
default:
|
||||
return phase;
|
||||
}
|
||||
@@ -74,7 +74,7 @@ export function phaseLabel(phase: string): string {
|
||||
export type Narration = {
|
||||
text: string;
|
||||
/** Colours the line in the viewer. */
|
||||
tone: 'plain' | 'good' | 'bad' | 'clock' | 'quiet';
|
||||
tone: 'plain' | 'good' | 'bad' | 'clock' | 'quiet' | 'phase';
|
||||
/** Board cell to highlight, if the event happened somewhere. */
|
||||
where?: GridCoord;
|
||||
};
|
||||
@@ -104,7 +104,9 @@ export function narrate(e: GameEvent, ctx: NarrateContext = {}): Narration {
|
||||
case 'stageBegan':
|
||||
return { tone: 'clock', text: `── Day ${e.day}, Stage ${e.stage} — ${clockTime(e.stage)} ──` };
|
||||
case 'phaseBegan':
|
||||
return { tone: 'quiet', text: `${phaseLabel(e.phase)}` };
|
||||
// Its own tone, not `quiet`. A phase marker sat in the same grey as the events inside it, so
|
||||
// the log read as one undifferentiated column and you could not see where a phase began.
|
||||
return { tone: 'phase', text: `▸ ${phaseLabel(e.phase)} phase` };
|
||||
case 'actorChanged':
|
||||
return {
|
||||
tone: 'quiet',
|
||||
|
||||
Reference in New Issue
Block a user