mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-06-21 11:50:42 +00:00
Cleanup: comments in BuildMenu and error messages in worker.worker (#3233)
## Description: PR 1/x in effort to break up PR https://github.com/openfrontio/OpenFrontIO/pull/3220. Please see if these can be merged for v30. - **BuildMenu**: remove one redundant comment about replacing an icon (which has been done long ago already). And fix typo in one other comment. - **Worker.worker**: correct some existing error messages. ## Please complete the following: - [x] I have added screenshots for all UI updates - [x] I process any text displayed to the user through translateText() and I've added it to the en.json file - [x] I have added relevant tests to the test directory - [x] I confirm I have thoroughly tested these changes and take full responsibility for any bugs introduced ## Please put your Discord username so you can be contacted if a bug or regression is found: tryout33
This commit is contained in:
@@ -88,7 +88,6 @@ export const buildTable: BuildItemDisplay[][] = [
|
||||
key: "unit_type.missile_silo",
|
||||
countable: true,
|
||||
},
|
||||
// needs new icon
|
||||
{
|
||||
unitType: UnitType.SAMLauncher,
|
||||
icon: samlauncherIcon,
|
||||
@@ -498,7 +497,7 @@ export class BuildMenu extends LitElement implements Layer {
|
||||
this.requestUpdate();
|
||||
});
|
||||
|
||||
// removed disabled buildings from the buildtable
|
||||
// remove disabled buildings from the buildtable
|
||||
this.filteredBuildTable = this.getBuildableUnits();
|
||||
}
|
||||
|
||||
|
||||
@@ -103,7 +103,7 @@ ctx.addEventListener("message", async (e: MessageEvent<MainThreadMessage>) => {
|
||||
result: actions,
|
||||
} as PlayerActionsResultMessage);
|
||||
} catch (error) {
|
||||
console.error("Failed to check borders:", error);
|
||||
console.error("Failed to get actions:", error);
|
||||
throw error;
|
||||
}
|
||||
break;
|
||||
@@ -120,7 +120,7 @@ ctx.addEventListener("message", async (e: MessageEvent<MainThreadMessage>) => {
|
||||
result: profile,
|
||||
} as PlayerProfileResultMessage);
|
||||
} catch (error) {
|
||||
console.error("Failed to check borders:", error);
|
||||
console.error("Failed to get profile:", error);
|
||||
throw error;
|
||||
}
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user