feat(aswid): devour feeds less health and some stamina

Devoured creatures feed 10% less health, and a share of it becomes
stamina: 60% for Meadows and Black Forest prey, 10% past them. Foods made
by the half-health formula are capped per biome, so a Troll no longer
feeds 150. The foods are rebuilt from their base values whenever a
setting changes or the server's values arrive.
This commit is contained in:
kanym 2026-10-26 13:57:41 +01:00
commit 83cd49c753
6 changed files with 132 additions and 8 deletions

View file

@ -471,6 +471,10 @@ namespace RacesOfValheim
Mathf.RoundToInt(AswidRace.GetStaminaBonus(state)),
Mathf.RoundToInt(AswidConfig.StaminaBonusPerState.Value),
Mathf.RoundToInt(AswidConfig.StaminaCostMultiplier.Value * 100f)));
sb.AppendLine(ModText.Get("rov_compendium_aswid_devour_diet",
Mathf.RoundToInt(AswidConfig.DevourHealthMultiplier.Value * 100f),
Mathf.RoundToInt(AswidConfig.EarlyStaminaShare.Value * 100f),
Mathf.RoundToInt(AswidConfig.DevourStaminaShare.Value * 100f)));
sb.AppendLine(ModText.Get("rov_compendium_aswid_vampiric_aura_passive_toggle"));
sb.AppendLine(ModText.Get("rov_compendium_aswid_always_active_every_form_with", auraRadiusDay, auraRadiusNight, auraExecute));