Skip to content

Commit 5c6c34d

Browse files
feat(time): Reduce cancellation options
The other options could lead to very confusing states when a reset is actually cancelled.
1 parent 2854cfe commit 5c6c34d

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

packages/kitten-scientists/source/TimeControlManager.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -296,11 +296,7 @@ export class TimeControlManager {
296296

297297
const sleep = async (time = 1500) => {
298298
return new Promise((resolve, reject) => {
299-
if (
300-
!this._host.engine.settings.enabled ||
301-
!this.settings.enabled ||
302-
!this.settings.reset.enabled
303-
) {
299+
if (!this._host.engine.settings.enabled) {
304300
return reject(new Error("canceled by player"));
305301
}
306302
setTimeout(resolve, time);

packages/kitten-scientists/source/i18n/en.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@
9494
"reset.countdown.8": " 8 - Releasing lizards",
9595
"reset.countdown.9": " 9 - Sacrificing Unicorns",
9696
"reset.last.message": "See you next poincaré recurrence",
97-
"reset.tip": "You can cancel this reset by disabling \"Kitten Scientists\" or \"Time Control\" or \"Reset Timeline\"",
97+
"reset.tip": "You can cancel this reset by disabling \"Enable Scientists\" at the top of the settings.",
9898
"resources.consume.set": "Consume rate for {0}",
9999
"resources.consume": "Consume: {0}",
100100
"resources.stock.set": "Stock for {0}",

0 commit comments

Comments
 (0)