y
This commit is contained in:
parent
61718e2981
commit
f657b6a4a4
94 changed files with 3970 additions and 1241 deletions
11
js/world.js
11
js/world.js
|
|
@ -7,6 +7,7 @@ class World { constructor() {
|
|||
this.viewportH = 720;
|
||||
this.time = 0;
|
||||
this.day = 1;
|
||||
this.elapsedDays = 0;
|
||||
this.paused = false;
|
||||
this.speed = 1;
|
||||
this.tool = "observe";
|
||||
|
|
@ -55,6 +56,7 @@ class World { constructor() {
|
|||
this.spatialFoodScratch = [];
|
||||
this.spatialHazardScratch = [];
|
||||
this.spatialVersion = 0;
|
||||
this.routingObstacleVersion = 0;
|
||||
this.spatialDirty = true;
|
||||
this.terrainDirty = true;
|
||||
this.terrainVersion = 1;
|
||||
|
|
@ -92,6 +94,7 @@ class World { constructor() {
|
|||
this.achievementNaturalSlaveGenerations = [];
|
||||
this.achievementNaturalKingGenerations = [];
|
||||
this.achievementPlayerPlacementCount = 0;
|
||||
this.achievementManualTarinaiAddedCount = 0;
|
||||
this.achievementDirectFeedCount = 0;
|
||||
this.achievementRobotCleanCount = 0;
|
||||
this.achievementEnemyAntKills = 0;
|
||||
|
|
@ -114,6 +117,14 @@ class World { constructor() {
|
|||
this.relationNotices = {};
|
||||
this.resolvedFightIds = {};
|
||||
this.fightPairCooldowns = {};
|
||||
this.deadTarinaiSinceRuntimePrune = 0;
|
||||
this.tarinaiRuntimePrunePending = false;
|
||||
this._deadTarinaiIdsPendingCleanup = new Set();
|
||||
// Hot colony counts are maintained by mutation hooks. Rebuild only after
|
||||
// bulk restore/reset paths that bypass the normal add/remove helpers.
|
||||
this._tarinaiCountCache = { alive: 0, zunchiSlaves: 0, tarinaiKings: 0 };
|
||||
this._tarinaiCountDirty = false;
|
||||
this._colonyStatsDynamicCache = null;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue