Skip to content

Cleanup battle location management#1542

Merged
FilmBoy84 merged 1 commit intoOpenApoc:masterfrom
JonnyH:WIP/mission-location-tuple
Jul 11, 2025
Merged

Cleanup battle location management#1542
FilmBoy84 merged 1 commit intoOpenApoc:masterfrom
JonnyH:WIP/mission-location-tuple

Conversation

@JonnyH
Copy link
Collaborator

@JonnyH JonnyH commented Apr 4, 2025

A code cleanup split out of some ongoing re-work of StateRef<> stuff, shouldn't cause any functional changes - Except it'll change the save format slightly breaking saves if you have an ongoing battle

Rather than casting between string IDs and StateRef and StateRef all the time just store the StateRefs directly, as typed objects tend to be less error-prone.

Rather than casting between string IDs and StateRef<Building> and StateRef<Vehicle> all the time just store the StateRefs directly.

NOTE: This will break saves if you have an ongoing battle
@JonnyH JonnyH force-pushed the WIP/mission-location-tuple branch from 035a6a3 to 98597c3 Compare April 4, 2025 03:34
@FilmBoy84
Copy link
Collaborator

Not had any issues with this

  • Start a new game
  • Run first mission
  • Proceed through first day (including UFO incursion, allowing aliens to drop)
  • Run second mission against aliens
  • Raided Osiron

No issues found :)

@FilmBoy84 FilmBoy84 merged commit 220b6c5 into OpenApoc:master Jul 11, 2025
3 checks passed
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.

2 participants