feat(aswid): bat flies on the Skadi's directed flight

The bat flew on vanilla's debug-fly flag: 50 m/s, free, blind to carry
weight, and invisible to monsters until six patches lied about the flag.
It now flies on m_flying with the drake's controls, moved out of
SkadiPatches into a shared DirectedFlight core that both forms feed
their own numbers into. Powered flight and the sprint cost stamina; out
of stamina the bat glides. Encumbered flight costs 15% more, or is
blocked with 'While Encumbered'. Optional duration and cooldown, off by
default. The aggro/damage patches, the debug-fly speed patch and their
three settings are removed; the drake's behaviour is unchanged.
This commit is contained in:
kanym 2026-10-26 14:26:42 +01:00
commit 77cdc67e97
19 changed files with 534 additions and 516 deletions

View file

@ -491,7 +491,12 @@ namespace RacesOfValheim
sb.AppendLine(ModText.Get("rov_compendium_aswid_claws_beast_s_grows_blackened", (RaceClawsConfig.DurationSeconds.Value).ToString("0"), (SvermClaws.GetDamagePercent(state) * 100f).ToString("0")));
if (state >= 2)
{
sb.AppendLine(ModText.Get("rov_compendium_aswid_bat_form_g_key_night"));
sb.AppendLine(ModText.Get("rov_compendium_aswid_bat_flight",
AswidConfig.BatPoweredStaminaPerSecond.Value.ToString("0.#"),
AswidConfig.BatSprintStaminaPerSecond.Value.ToString("0.#")));
}
if (state >= 2)
sb.AppendLine(ModText.Get("rov_compendium_aswid_tame_u_key_tame_boar"));