Skip to content

Commit 712cfc6

Browse files
committed
Fix Pylon error message. Hopefully fix Logger action highlighting. Make logger highlighting visible to all participants.
1 parent 8b00537 commit 712cfc6

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

locales/en/apgames.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3722,7 +3722,7 @@
37223722
},
37233723
"pylon": {
37243724
"BAD_PASS": "You may not pass if legal moves are available.",
3725-
"BAD_STACK": "You may not stack the pieces from {{from}} on top of {{to}}. The bottom piece of the top stack must be the same size or smaller than the top piece of the bottom stack.",
3725+
"BAD_STACK": "You may not stack the pieces from {{from}} on top of {{to}}. The bottom piece of the top stack must not be larger than the top piece of the bottom stack.",
37263726
"INITIAL_INSTRUCTIONS_place": "Click a piece in your stash to place on the board.",
37273727
"INITIAL_INSTRUCTIONS_stack": "Click a pyramid or stack to move it.",
37283728
"INVALID_SIZE": "The piece you selected is invalid. It must be a 1, 2, or 3.",

src/games/logger.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -365,10 +365,8 @@ export class LoggerGame extends GameBase {
365365

366366
const result = this.validateMove(newmove) as IClickResult;
367367
if (! result.valid) {
368-
this.interimMove = move;
369368
result.move = move;
370369
} else {
371-
this.interimMove = newmove;
372370
result.move = newmove;
373371
}
374372
return result;
@@ -636,6 +634,7 @@ export class LoggerGame extends GameBase {
636634

637635
this.results = [];
638636
this.highlights = [];
637+
this.interimMove = m;
639638
const mode = this.getMode(m);
640639
const [mv, spawn, act] = m.split(/\s*;\s*/);
641640
const currPlayerPc = [...this.board.entries()].find(([,pc]) => pc === `P${this.currplayer}`)!;
@@ -965,7 +964,7 @@ export class LoggerGame extends GameBase {
965964
}
966965
}
967966
// only proactively show placement options for currplayer
968-
else if (perspective !== undefined && perspective === this.currplayer && [...this.board.values()].find(pc => pc === `P${this.currplayer}`) === undefined) {
967+
else if (perspective !== undefined && [...this.board.values()].find(pc => pc === `P${this.currplayer}`) === undefined) {
969968
if (! ("annotations" in rep)) {
970969
rep.annotations = [];
971970
}
@@ -976,7 +975,7 @@ export class LoggerGame extends GameBase {
976975
}
977976
}
978977
// only proactively show movement options for currplayer
979-
else if (perspective !== undefined && perspective === this.currplayer && this.getMode(this.interimMove) === "move") {
978+
else if (perspective !== undefined && this.getMode(this.interimMove) === "move") {
980979
if (! ("annotations" in rep)) {
981980
rep.annotations = [];
982981
}

0 commit comments

Comments
 (0)