From ad0846262658fa0fdefdbf8834d4d987ec08a9e5 Mon Sep 17 00:00:00 2001 From: phosit Date: Mon, 13 Jul 2026 20:31:11 +0200 Subject: [PATCH] Remove the first isResourceExhausted This function is overwritten later. This redundancy has been introduced in 4e664dd712c before only the second existed. --- .../mods/public/simulation/ai/petra/basesManager.js | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/binaries/data/mods/public/simulation/ai/petra/basesManager.js b/binaries/data/mods/public/simulation/ai/petra/basesManager.js index 59c5d1362d..51cc63dd09 100644 --- a/binaries/data/mods/public/simulation/ai/petra/basesManager.js +++ b/binaries/data/mods/public/simulation/ai/petra/basesManager.js @@ -481,18 +481,6 @@ BasesManager.prototype.GetTCResGatherer = function(resource) return 0; }; -/** - * flag a resource as exhausted - */ -BasesManager.prototype.isResourceExhausted = function(resource) -{ - const check = "exhausted-" + resource; - if (this.turnCache[check] == undefined) - this.turnCache[check] = this.basesManager.isResourceExhausted(resource); - - return this.turnCache[check]; -}; - /** * returns the number of bases with a cc * ActiveBases includes only those with a built cc