jotunn 2.30 compatibility + minor bugs

This commit is contained in:
Ferdinando 2026-09-10 19:14:05 +02:00
commit ce671e7124
14 changed files with 107 additions and 49 deletions

View file

@ -340,7 +340,8 @@ namespace RacesOfValheim
if (isTransformed) return; // Do not cast human spell while in dragon form
// Middle Mouse Button to cast, by default - rebindable via SkadiConfig.ColdSpellKey.
if (SkadiConfig.ColdSpellKey.Value.IsDownIgnoringHeldKeys())
// On a gamepad, the secondary attack button (the pad's own middle-mouse equivalent).
if (SkadiConfig.ColdSpellKey.Value.IsDownIgnoringHeldKeys() || RaceInput.PadAttackDown(2))
{
// The improved cast is a burst rather than a rapid-fire, so it waits longer.
float cooldown = rules.ImprovedColdSpell ? IMPROVED_SPELL_COOLDOWN : SPELL_COOLDOWN;