From d81534d7922c7104ab018e7c7da193dabcb5205d Mon Sep 17 00:00:00 2001 From: Freagarach Date: Fri, 10 Jun 2022 04:53:25 +0000 Subject: [PATCH] Count rice as veggie. Reported by @Gurken Khan at the forums: https://wildfiregames.com/forum/topic/82754-alpha-26-pre-releaserelease-candidate-build-testing/?do=findComment&comment=502523. This was SVN commit r26931. --- .../data/mods/public/simulation/components/StatisticsTracker.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/binaries/data/mods/public/simulation/components/StatisticsTracker.js b/binaries/data/mods/public/simulation/components/StatisticsTracker.js index dd7d2df5d8..5de4b62c7d 100644 --- a/binaries/data/mods/public/simulation/components/StatisticsTracker.js +++ b/binaries/data/mods/public/simulation/components/StatisticsTracker.js @@ -367,7 +367,7 @@ StatisticsTracker.prototype.IncreaseResourceGatheredCounter = function(type, amo { this.resourcesGathered[type] += amount; - if (type == "food" && (specificType == "fruit" || specificType == "grain")) + if (type == "food" && (specificType == "fruit" || specificType == "grain" || specificType == "rice")) this.resourcesGathered.vegetarianFood += amount; };