Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/Goban/OGSConnectivity.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1698,7 +1698,9 @@ export abstract class OGSConnectivity extends GobanInteractive {
}
clock.pause_state = AdHocPauseControl2JGOFPauseState(this.pause_control);
if (clock.pause_state.stone_removal) {
clock.stone_removal_time_left = original_clock.expiration - current_server_time;
clock.stone_removal_time_left =
(original_clock.stone_removal_expiration ?? original_clock.expiration) -
current_server_time;
}
}

Expand Down
7 changes: 7 additions & 0 deletions src/engine/formats/AdHocFormat.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,13 @@ export interface AdHocClock {
* `expiration` (in ms) */
start_mode?: boolean;

/** If true, the game is in stone removal phase */
stone_removal_mode?: boolean;

/** Time the stone removal phase will end if no action is taken,
* in milliseconds since 1970. Only set when stone_removal_mode is true. */
stone_removal_expiration?: number;

/** If set, this AdHocClock is updating the pause state */
pause?: {
paused: boolean;
Expand Down
Loading