Skip to content

Cleanup name override implementation#115

Merged
NicEastvillage merged 3 commits into
masterfrom
clean_overrides
Jun 5, 2026
Merged

Cleanup name override implementation#115
NicEastvillage merged 3 commits into
masterfrom
clean_overrides

Conversation

@NicEastvillage
Copy link
Copy Markdown
Contributor

Now use null to indicate that the name is not overridden.

This removes a quirk revealed in #112. If a bot had had its name changed in the toml, then after the reload, the old name would be considered an override.

@NicEastvillage NicEastvillage added the bug Something isn't working label Jun 5, 2026
Comment thread frontend/src/index.ts Outdated
const player = PsyonixBotInfo.createFrom(structuredClone(d.info));
// Apply overrides
player.name = d.overrides.name;
player.name = d.overrides.name ?? ""; // Emptry string means random name for Psyonix bots
Copy link
Copy Markdown
Contributor

@VirxEC VirxEC Jun 5, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor typo, "Emptry"

Copy link
Copy Markdown
Contributor

@VirxEC VirxEC left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@NicEastvillage NicEastvillage merged commit f94865e into master Jun 5, 2026
@NicEastvillage NicEastvillage deleted the clean_overrides branch June 5, 2026 16:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants