You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Rates for natural influence change
* Minor civ wariness, proximity calculation
* CS can declare permanent war
* CS can in fact not declare permanent war
* adjustments, template.properties
* neater code
* fix failing test? .
* move proximity code, for reals fix failing check
* now?
* revisions
* BFS only once, better check for water map
* assign continents on pre-made maps as well
* now works on all pre-made maps
tileMap.gameInfo = gameInfo // need to set this transient before placing units in the map
52
-
addCivilizations(gameSetupInfo.gameParameters, gameInfo, ruleset) // this is before gameInfo.setTransients, so gameInfo doesn't yet have the gameBasics
52
+
tileMap.gameInfo =
53
+
gameInfo // need to set this transient before placing units in the map
54
+
addCivilizations(
55
+
gameSetupInfo.gameParameters,
56
+
gameInfo,
57
+
ruleset
58
+
) // this is before gameInfo.setTransients, so gameInfo doesn't yet have the gameBasics
53
59
}
54
60
55
61
runAndMeasure("Remove units") {
@@ -78,6 +84,11 @@ object GameStarter {
78
84
addCivStats(gameInfo)
79
85
}
80
86
87
+
runAndMeasure("assignContinents?") {
88
+
if (tileMap.continentSizes.isEmpty()) // Probably saved map without continent data
89
+
mapGen.assignContinents(tileMap)
90
+
}
91
+
81
92
runAndMeasure("addCivStartingUnits") {
82
93
// and only now do we add units for everyone, because otherwise both the gameInfo.setTransients() and the placeUnit will both add the unit to the civ's unit list!
0 commit comments