feat: add berries seed item, berry bush config, thirst runtime constants

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
root
2026-03-10 20:28:01 +00:00
parent 5da03ebb69
commit 72746710cb
3 changed files with 15 additions and 2 deletions

View File

@@ -18,6 +18,12 @@ export const industryConfig = {
stoneClusterCount: { min: 3, max: 5 },
stoneClusterSize: { min: 2, max: 4 },
// Berry bush generation
berryBushClusters: { min: 3, max: 5 },
berryBushClusterSize: { min: 2, max: 4 },
berryBushMaxCount: 5,
berryRegrowthTicks: 200,
// Invention
inventionCheckInterval: 100, // ticks between eureka checks
inventionBaseChance: 0.005, // 0.5% base per check

View File

@@ -1,7 +1,7 @@
import type { TunableConstants, TunableKey } from '@dflike/shared';
import {
TICK_RATE, BROADCAST_EVERY_N_TICKS,
HUNGER_DECAY_PER_TICK, ENERGY_DECAY_PER_TICK, HUNGER_THRESHOLD, ENERGY_THRESHOLD, NEED_RECOVERY_RATE,
HUNGER_DECAY_PER_TICK, ENERGY_DECAY_PER_TICK, HUNGER_THRESHOLD, ENERGY_THRESHOLD, NEED_RECOVERY_RATE, THIRST_DECAY_PER_TICK, THIRST_THRESHOLD,
SLEEP_ENERGY_RECOVERY_PER_TICK, SLEEP_HUNGER_DECAY_MULTIPLIER, SLEEP_WAKE_THRESHOLD, SLEEP_VOLUNTARY_ENERGY_THRESHOLD,
PRODUCTIVITY_DECAY_PER_TICK, PRODUCTIVITY_THRESHOLD, PRODUCTIVITY_RECOVERY_RATE,
DAY_NIGHT_RATIO, DAY_HOURS, SUNSET_DURATION_HOURS, SUNRISE_DURATION_HOURS, NIGHT_DARKNESS,
@@ -12,7 +12,7 @@ import {
const DEFAULTS: TunableConstants = {
TICK_RATE, BROADCAST_EVERY_N_TICKS,
HUNGER_DECAY_PER_TICK, ENERGY_DECAY_PER_TICK, HUNGER_THRESHOLD, ENERGY_THRESHOLD, NEED_RECOVERY_RATE,
HUNGER_DECAY_PER_TICK, ENERGY_DECAY_PER_TICK, HUNGER_THRESHOLD, ENERGY_THRESHOLD, NEED_RECOVERY_RATE, THIRST_DECAY_PER_TICK, THIRST_THRESHOLD,
SLEEP_ENERGY_RECOVERY_PER_TICK, SLEEP_HUNGER_DECAY_MULTIPLIER, SLEEP_WAKE_THRESHOLD, SLEEP_VOLUNTARY_ENERGY_THRESHOLD,
PRODUCTIVITY_DECAY_PER_TICK, PRODUCTIVITY_THRESHOLD, PRODUCTIVITY_RECOVERY_RATE,
DAY_NIGHT_RATIO, DAY_HOURS, SUNSET_DURATION_HOURS, SUNRISE_DURATION_HOURS, NIGHT_DARKNESS,

View File

@@ -55,6 +55,13 @@ export class ItemRegistry {
category: 'resource',
source: 'seed',
});
registry.register({
id: 'berries',
name: 'Berries',
description: 'Wild berries foraged from bushes',
category: 'resource',
source: 'seed',
});
registry.register({
id: 'wooden_axe',
name: 'Wooden Axe',