refactor: Update test object modifications to use immutable patterns and extend command context with map, unitSet, and cities.
This commit is contained in:
@@ -200,6 +200,9 @@ export class TestGameRunner {
|
||||
year: this.currentDate.getFullYear(),
|
||||
month: this.currentDate.getMonth() + 1,
|
||||
season: Math.floor(this.currentDate.getMonth() / 3),
|
||||
map: this.world.snapshot.map,
|
||||
unitSet: this.world.snapshot.unitSet,
|
||||
cities: this.world.snapshot.cities,
|
||||
...cmd.context
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user