Skip to content

Conversation

@Raugharr
Copy link
Owner

No description provided.

</planet>
<planet>
<name>Victoria</name>
<name>Victoria (Meglan)</name>
Copy link
Collaborator

@sandysimonton sandysimonton Dec 29, 2025

Choose a reason for hiding this comment

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

Nice research-based fix - this was a renamed planet according to Sarna, right?

Copy link
Owner Author

Choose a reason for hiding this comment

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

Sarna calls it Victoria II IIRC, "Victoria (Meglan)" is what megamek/mm-data calls it.

} else {
pFile = new File("./campaign/players/" + name.toLowerCase() + ".dat");
}
File pFile = new File("./campaign/players/" + name.toLowerCase() + ".dat");
Copy link
Collaborator

Choose a reason for hiding this comment

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

Looks like it was technically possible to have two different save files for a single player, now there's only the one... any unintended consequences? I don't think so but just for extra consideration

Copy link
Owner Author

Choose a reason for hiding this comment

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

Should have left a comment explaining this. There shouldn't be any regressions, the only place this method got called was https://github.com/Raugharr/MekWars/pull/128/changes#diff-a021e721cb45661b5d3cd0838cb5bd7f27e987a268bdb6e261eac0916cf3c0fbL1154 that hard coded the parameter to false.

@Override
public String toString()
{
String result = "CON$";
Copy link
Collaborator

Choose a reason for hiding this comment

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

StringBuilder is more performant, but perhaps this is more readable?

Copy link
Collaborator

@sandysimonton sandysimonton left a comment

Choose a reason for hiding this comment

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

Few things for consideration, looks good!

@Raugharr Raugharr merged commit 8f4d299 into main Dec 30, 2025
1 check passed
@Raugharr Raugharr deleted the misc-changes branch January 16, 2026 21:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants