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