Adjusted weather. Hopefully fixed trees for real this time, so far so good.

This commit is contained in:
Storm Dragon
2026-01-20 16:54:03 -05:00
parent 1be438a870
commit 5c25ba9a19
5 changed files with 225 additions and 57 deletions

View File

@@ -129,6 +129,8 @@ const float STREAM_SOUND_VOLUME_STEP = 4.3; // 30 dB over 7 tiles
const float TREE_SOUND_VOLUME_STEP = 4.0; // Similar to snares for good audibility
const int TREE_SOUND_RANGE = 4;
const int TREE_MIN_DISTANCE = 10;
const int TREE_MAX_PER_AREA = 2;
const float RESIDENT_DEFENSE_VOLUME_STEP = 3.0; // Default volume for resident counter-attacks
const float PLAYER_WEAPON_SOUND_VOLUME_STEP = 3.0;
@@ -174,3 +176,29 @@ const int GOOSE_MAX_DIST_FROM_WATER = 4; // How far they can wander from water
const int GOOSE_MAX_COUNT = 3;
const int GOOSE_HOURLY_SPAWN_CHANCE = 35; // Percent chance per hour to spawn a goose
const int GOOSE_SIGHT_RANGE = 0;
// Weather settings
const int WEATHER_FADE_DURATION = 8000; // 8 seconds for smooth audio transitions
const float WEATHER_MIN_VOLUME = -30.0;
const float WEATHER_MAX_VOLUME = 0.0;
const float RAIN_VOLUME_LIGHT = -18.0;
const float RAIN_VOLUME_MODERATE = -10.0;
const float RAIN_VOLUME_HEAVY = -3.0;
const int WIND_GUST_MIN_DELAY = 30000; // Min 30 seconds between gusts
const int WIND_GUST_MAX_DELAY = 60000; // Max 60 seconds between gusts
const int THUNDER_MIN_INTERVAL = 8000; // Min 8 seconds between thunder
const int THUNDER_MAX_INTERVAL = 35000; // Max 35 seconds between thunder
const int THUNDER_MOVEMENT_SPEED = 2000; // ms per tile movement (slow roll across sky)
const float THUNDER_SOUND_VOLUME_STEP = 2.0; // Gentler volume falloff
const int THUNDER_SPAWN_DISTANCE_MIN = 20; // Min distance from player
const int THUNDER_SPAWN_DISTANCE_MAX = 40; // Max distance from player
const int CHANCE_CLEAR_TO_WINDY = 15;
const int CHANCE_CLEAR_TO_RAINY = 6;
const int CHANCE_CLEAR_TO_STORMY = 5;
const int CHANCE_WINDY_STAY = 55;
const int CHANCE_WINDY_TO_CLEAR = 25;
const int CHANCE_WINDY_TO_STORMY = 12;
const int CHANCE_RAINY_STAY = 40;
const int CHANCE_RAINY_TO_STORMY = 35;
const int CHANCE_STORMY_STAY = 40;
const int CHANCE_STORMY_TO_RAINY = 35;