Fix obvious typos (#2585)

## Summary
- fix obvious spelling typos flagged by codespell across docs, tests,
comments
- no functional changes

## Testing
- pre-commit hooks (eslint/prettier) ran during commit
This commit is contained in:
Ahmet Dedeler
2025-12-10 03:12:00 +03:00
committed by GitHub
parent 18efa4cd73
commit 327d425fd5
13 changed files with 20 additions and 20 deletions
+1 -1
View File
@@ -129,7 +129,7 @@ export class FxLayer implements Layer {
if (gold > 0) {
const shortened = renderNumber(gold, 0);
this.addTextFx(`+ ${shortened}`, x, y);
y += 10; // increase y so the next popup starts bellow
y += 10; // increase y so the next popup starts below
}
if (troops > 0) {
+1 -1
View File
@@ -376,7 +376,7 @@ export class UnitLayer implements Layer {
);
}
// interception missle from SAM
// interception missile from SAM
private handleMissileEvent(unit: UnitView) {
this.drawSprite(unit);
}
+1 -1
View File
@@ -82,7 +82,7 @@ export class NukeExecution implements Execution {
this.nuke.type() !== UnitType.MIRVWarhead
) {
// Resolves exploit of alliance breaking in which a pending alliance request
// was accepeted in the middle of an missle attack.
// was accepted in the middle of a missile attack.
const allianceRequest = attackedPlayer
.incomingAllianceRequests()
.find((ar) => ar.requestor() === this.player);
+1 -1
View File
@@ -274,7 +274,7 @@ export const COMMUNITY_FULL_ELF_NAMES = [
"Lumiin the YT Elf",
"youngfentanyl OFM Elf",
"Remorse the Wiki Elf",
"Lonely Millenial Twitch Elf",
"Lonely Millennial Twitch Elf",
"Kaizeron OFM Elf",
"Zilka OFM Elf",
"JIZK Caster Elf",
+1 -1
View File
@@ -398,7 +398,7 @@ export class PlayerImpl implements Player {
if (this.isDisconnected() || other.isDisconnected()) {
// Disconnected players are marked as not-friendly even if they are allies,
// so we need to return early if either player is disconnected.
// Otherise we could end up sending an alliance request to someone
// Otherwise we could end up sending an alliance request to someone
// we are already allied with.
return false;
}
+1 -1
View File
@@ -75,7 +75,7 @@ export class UserSettings {
focusLocked() {
return false;
// TODO: renable when performance issues are fixed.
// TODO: re-enable when performance issues are fixed.
this.get("settings.focusLocked", true);
}
+2 -2
View File
@@ -104,7 +104,7 @@ function fixExtremes(upscaled: Cell[], cellDst: Cell, cellSrc?: Cell): Cell[] {
if (cellSrc !== undefined) {
const srcIndex = findCell(upscaled, cellSrc);
if (srcIndex === -1) {
// didnt find the start tile in the path
// didn't find the start tile in the path
upscaled.unshift(cellSrc);
} else if (srcIndex !== 0) {
// found start tile but not at the start
@@ -115,7 +115,7 @@ function fixExtremes(upscaled: Cell[], cellDst: Cell, cellSrc?: Cell): Cell[] {
const dstIndex = findCell(upscaled, cellDst);
if (dstIndex === -1) {
// didnt find the dst tile in the path
// didn't find the dst tile in the path
upscaled.push(cellDst);
} else if (dstIndex !== upscaled.length - 1) {
// found dst tile but not at the end
+1 -1
View File
@@ -54,7 +54,7 @@ export function isProfaneUsername(username: string): boolean {
*
* Removing bad clan tags won't hurt existing clans nor cause desyncs:
* - full name including clan tag was overwritten in the past, if any part of name was bad
* - only each seperate local player name with a profane clan tag will remain, no clan team assignment
* - only each separate local player name with a profane clan tag will remain, no clan team assignment
*
* Examples:
* - "GoodName" -> "GoodName"