Skip to content

Commit 141a3ba

Browse files
fix(time): Use proper resource name in checklist
1 parent 944bbf7 commit 141a3ba

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

packages/kitten-scientists/source/TimeControlManager.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,11 @@ export class TimeControlManager {
269269
for (const [name, entry] of objectEntries(this.settings.reset.resources.resources)) {
270270
if (entry.enabled) {
271271
const res = mustExist(this._host.gamePage.resPool.get(name));
272-
checkedList.push({ name: res.title, trigger: entry.stock, val: res.value });
272+
checkedList.push({
273+
name: this._host.engine.i18n(`$resources.${entry.resource}.title`),
274+
trigger: entry.stock,
275+
val: res.value,
276+
});
273277
if (res.value < entry.stock) {
274278
return;
275279
}

0 commit comments

Comments
 (0)