From be20e824f3583a51cbfee39ad037a1be385423e8 Mon Sep 17 00:00:00 2001 From: "Kacper Kostka (aider)" Date: Wed, 2 Apr 2025 11:49:15 +0200 Subject: [PATCH] fix: Resolve duplicate constant declaration and add missing citizen constants --- ai.js | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/ai.js b/ai.js index c666e97..af045e2 100644 --- a/ai.js +++ b/ai.js @@ -6,6 +6,22 @@ const RABBIT_HUNGER_INCREMENT = 0.05; const RABBIT_REPRO_CHANCE = 0.005; const RABBIT_REPRO_COOLDOWN = 1000; +// Citizen constants +const HUNGER_INCREMENT = 0.02; +const HUNGER_MAX = 100; +const HUNGER_THRESHOLD = 70; +const ENERGY_DECREMENT_WORK = 0.01; +const ENERGY_INCREMENT_REST = 0.1; +const ENERGY_MAX = 100; +const ENERGY_THRESHOLD = 30; +const HEALTH_MAX = 100; +const HEALTH_THRESHOLD = 50; +const EDUCATION_MAX = 100; +const FRUIT_GATHER_RATE = 2; +const FRUIT_PLANT_COST = 5; +const FRUIT_TREE_START_AMOUNT = 50; +const REWARD_DELIVER_WOOD = 5; + /********************************************************************** * CITIZEN AI **********************************************************************/