fix: Resolve duplicate constant declaration and add missing citizen constants

This commit is contained in:
Kacper Kostka (aider) 2025-04-02 11:49:15 +02:00
parent 472a210cd7
commit be20e824f3

16
ai.js
View File

@ -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
**********************************************************************/