RacesOfValheim/JotunnModStub/Trol
kanym bca47beda6 Ignore race ability input while a GUI has focus
UnityEngine.Input reads the device directly, so abilities bound to keys
or mouse buttons kept firing with the map, the inventory, a chest, the
chat or a menu open - clicking an item in a container also swung the
transformed attack.

Route that input through Player.TakeInput, which is what Valheim runs
its own controls through and already reports false for those states
(InventoryGui covers the backpack and chests alike). Aswid's transform
keys were the only place already doing this; the shared helper replaces
that one-off and covers Skadi's cold spell, form keys, flight toggle,
form attacks and flight boost, Fenrir's form keys and the attacks of all
four form behaviors, Trol's rock throw and true form, and Aswid's devour
toggle.

Cultist fire is a held button, so it is gated per read rather than
around the block: opening a GUI mid-stream now falls through to
StopFire() instead of leaving the flames running.
2026-08-01 13:25:02 +02:00
..
TMPDebug.cs Initial commit 2026-07-30 19:00:13 +02:00
TrolClearFoodPatch.cs Initial commit 2026-07-30 19:00:13 +02:00
TrolDamagePatches.cs Initial commit 2026-07-30 19:00:13 +02:00
TrolExtraFoodUI.cs Initial commit 2026-07-30 19:00:13 +02:00
TrolFarmingPatches.cs Initial commit 2026-07-30 19:00:13 +02:00
TrolFoodDebug.cs Initial commit 2026-07-30 19:00:13 +02:00
TrolFoodDebugUI.cs Initial commit 2026-07-30 19:00:13 +02:00
TrolFoodManager.cs Initial commit 2026-07-30 19:00:13 +02:00
TrolFoodPatches.cs Initial commit 2026-07-30 19:00:13 +02:00
TrolLogWeapon.cs Initial commit 2026-07-30 19:00:13 +02:00
TrolPatches.cs Initial commit 2026-07-30 19:00:13 +02:00
TrolRace.cs Ignore race ability input while a GUI has focus 2026-08-01 13:25:02 +02:00
TrolRegenPatches.cs Initial commit 2026-07-30 19:00:13 +02:00
TrolSkillPatches.cs Initial commit 2026-07-30 19:00:13 +02:00
TrolStatusEffects.cs Initial commit 2026-07-30 19:00:13 +02:00