Multiple characters allowed. Starting base health lowered. Fylgjr system implemented.

This commit is contained in:
Storm Dragon
2026-01-31 12:56:36 -05:00
parent 6407f39d1a
commit fc4b8d244b
26 changed files with 1248 additions and 106 deletions

View File

@@ -28,6 +28,9 @@ const int BLESSING_TRIGGER_CHANCE = 10;
const int BLESSING_WALK_SPEED = 320;
const int FISH_WEIGHT_MIN = 1;
const int FISH_WEIGHT_MAX = 30;
// Player sex constants
const int SEX_MALE = 0;
const int SEX_FEMALE = 1;
// Weapon damage
const int SPEAR_DAMAGE = 3;
@@ -77,7 +80,7 @@ const int BOAR_CHARGE_SPEED = 500; // ms per tile when charging
const int BOAR_SPAWN_CHANCE_PER_HOUR = 30;
// Barricade configuration
const int BARRICADE_BASE_HEALTH = 100;
const int BARRICADE_BASE_HEALTH = 40;
const int BARRICADE_MAX_HEALTH = 500;
const int BARRICADE_STICK_COST = 3;
const int BARRICADE_STICK_HEALTH = 10;
@@ -247,7 +250,7 @@ const int FALL_DAMAGE_MAX = 4;
// Base Automation
const int RESIDENT_SLING_COOLDOWN = 4000; // 4 seconds between shots
const int RESIDENT_COLLECTION_CHANCE = 10; // 10% chance per basket per hour
const int RESIDENT_FORAGING_CHANCE = 50; // 50% chance per resident per attempt (twice daily)
const int RESIDENT_FORAGING_CHANCE = 50; // 50% chance per resident per attempt (daily)
// Utility functions
int abs(int value) {