Commit graph

380 commits

Author SHA1 Message Date
8906abfd79 Merge pull request 'balancing-skadi-progression' (#3) from balancing-skadi-progression into main
Reviewed-on: #3
2026-08-01 18:10:58 +02:00
5d5a6eab42 Fill in the Skadi compendium entry
It was a placeholder reading "The secrets of winter will be revealed
soon...". It now unfolds tier by tier like the Aswid and Furling ones,
covering the passives, the form keybinds, the flight controls and which
attacks are free. The frost bonus and spell damage figures are computed
from the same formulas the code uses, so the text cannot drift when
those constants are tuned.
2026-08-01 18:02:24 +02:00
fc7fd54404 Rework Skadi combat costs, fix dead melee, add cooldown icons
Dragon melee never dealt damage at all: the damage block sat behind
!isMelee, so bite, claw and spin played an animation, charged eitr and
did nothing. Melee now sweeps for targets the way Fenrir's claws do, and
costs nothing - it is the baseline attack that has to work at every tier.

Everything Skadi casts now runs on stamina rather than eitr. Eitr food
only exists from the Mistlands on, while the Cold Spell unlocks at
Eikthyr and the drake at the Elder, so the old costs were either
unpayable or, in the drake's case, silently ignored because UseEitr
never checked affordability. Ranged volleys are charged per projectile
so the sixty shard breath no longer costs the same as a three shard
spit, capped so the widest one stays castable.

The Cold Spell also stopped borrowing the Staff of Frost's damage, which
handed out Mistlands numbers from Eikthyr and multiplied them by every
shard. It now scales with progression, and the improved cast spreads one
budget across its shards: wider, not stronger.

The kick that played over every cast was Valheim's own SecondaryAttack,
bound to the same Middle Mouse button - suppressed for a Skadi holding
the spell. Moder now keeps its ranged attack on Middle Mouse in the air
as on the ground, with no left hand attack aloft, and Fader's airborne
branch is gone since its form cannot fly.

Ability cooldowns finally show on the HUD, each with its own icon and a
live countdown.
2026-08-01 18:02:24 +02:00
a8a14f0416 Move Freezing-to-Cold to Bonemass and eitr regen to Yagluth
Eikthyr was carrying three unlocks while later tiers carried little, so
the two passives move up: the Freezing-to-Cold conversion now lands with
Bonemass alongside the drake's attack, and eitr regeneration first
appears at Yagluth with the improved Cold Spell.

The +20% at Eikthyr is dropped rather than relocated, since Yagluth
already granted an undocumented +50% - now written down in the README.
2026-08-01 18:02:24 +02:00
Ferdinando
272adddd75 small fix to aswin aura 2026-08-01 17:49:12 +02:00
17fdeba320 List Trol in the mod description and sync the packaging manifest
Both manifests still described five races; Trol has been playable since
1.3.1. Draugh is deliberately left out until it ships. The packaging
manifest was also stuck at 1.3.3.1, two releases behind the root one
the build actually publishes.
2026-08-01 13:59:05 +02:00
51a23202ff Merge branch 'fix-skadi-race' 2026-08-01 13:50:25 +02:00
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
16275d6abc Stop remote clients spawning a dragon model every frame
The multiplayer visual sync named each spawned model "<form>_multiplayer"
but searched for an existing one called "SkadiBody_Form", a name nothing
is ever assigned. The lookup therefore missed every time, and since
VisEquipment.UpdateVisuals runs each frame off CustomUpdate, observers
instantiated a fresh dragon roughly sixty times a second for as long as
the Skadi player stayed transformed.

The transformed player saw nothing wrong, because owners return early,
and the pile only got cleaned up in the reverted-to-human branch, so the
lag never let up on its own.

Look the model up by the name actually assigned. The scan also destroys
any surplus "_multiplayer" children it walks past, so clients that have
already accumulated a pile clear it on the first frame after updating
instead of needing to rejoin.
2026-08-01 13:24:44 +02:00
Ferdinando
d387131086 start draugh race 2026-08-01 13:17:13 +02:00
cccabe16ef Rework Skadi dragon flight, enforce form duration, surface timers in HUD
Flight ran on the debug-fly noclip, so it ignored aim entirely and needed
Space/Ctrl for height. It now uses Character's native flying-creature
movement with the camera's full look direction fed in each frame:

- Aim steers, including climb and dive; W powers forward, releasing it
  holds level briefly and then settles into a glide instead of coasting
  along the aim vector (which let you climb forever without input).
- The body actually turns now. m_flyTurnSpeed sat at Character's 12 deg/s
  default because the Player prefab was never set up to fly, so a quarter
  turn took over seven seconds and read as no rotation at all.
- Touching down no longer slides you forward forever. Zeroing the fly
  speeds stops the character without fighting the AddForce UpdateFlying
  queues, which had caused frame-to-frame jitter and TAA ghosting.

DurationMinutes was never wired to anything, so timed forms never expired
and their cooldown, which only starts on reversion, was unreachable in
practice. Timed forms now drop on their own, and both the remaining time
and the cooldown show up beside the minimap as a Moder trophy icon.

Attack capability was snapshotted when the form was entered, so reaching
the Bonemass tier while already transformed left the drake unarmed until
the player reverted and transformed again; it is re-read live now.
2026-07-31 16:25:06 +02:00
00b1b4e9ed Fix Skadi resetrace, cold spell VFX, and Freezing-to-Cold conversion
- resetrace never cleaned up SE_SkadiStats/SE_SkadiCooldown, so
  Skadi's Aura and its frost buffs stuck around after switching race.
- Cold Spell projectile spawned near the feet (0.4m) and used the
  unarmed kick animation; now spawns at chest height and uses the
  galdr_cast (raised-arms) trigger instead.
- Freezing-to-Cold silently did nothing from tier 1 onward: Skadi's
  passive Frost damage resistance made Valheim's own environmental
  check skip Cold/Freezing entirely before our conversion patch ever
  ran. Added a scoped patch that neutralizes just that environmental
  check for the local Skadi player, plus a guard against Valheim's
  own Cold-removal call flickering the converted status off every
  other frame, plus an explicit cleanup of any real Freezing left
  over from before the conversion kicked in.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-07-31 13:04:30 +02:00
95dcf3c1e6 Fix build portability: add BepInEx NuGet feed and de-hardcode package paths
BepInEx.Core isn't on nuget.org (only on nuget.bepinex.dev), so restore
failed on machines without it configured globally. PackageThunderstore
also pointed at a contributor's personal desktop path; it now outputs
to a repo-local dist/ folder and uses the checked-in Package/icon.png.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-07-31 11:24:30 +02:00
Ferdinando
ff9fc4db2d Bind Taming ability to K key instead of E 2026-07-31 09:42:07 +02:00
Ferdinando
225b7115bc Allow Aswid stomach to refresh blinking duplicate foods when slots are fully occupied 2026-07-31 09:35:15 +02:00
Ferdinando
ad74ca3219 Revert force-feed logic to respect Aswid stomach limitations 2026-07-31 09:31:43 +02:00
Ferdinando
6170c060ac Add force-feed fallback to TryConsumeMob to bypass stomach limits on execute 2026-07-31 09:27:07 +02:00
Ferdinando
152a2f21ad Add extra debug logs for Aura execute and consume 2026-07-31 09:24:07 +02:00
Ferdinando
e31ed458bd Update execute logic to also automatically devour 2026-07-31 08:56:59 +02:00
Ferdinando
c580871a2d Add execute mechanic to Vampiric Aura and bump version to 1.3.5 2026-07-31 08:49:55 +02:00
Ferdinando
9c5f17b066 Bump version to 1.3.3.1 2026-07-30 23:22:11 +02:00
Ferdinando
784c913e3f Bump version to 1.3.3 and update changelog 2026-07-30 23:11:16 +02:00
Ferdinando
87b6b11afe Update README.md changelog to v1.3.2 2026-07-30 23:08:46 +02:00
Ferdinando
55d2cc97bb Add Aswid passive lifesteal scaling with progression state 2026-07-30 22:34:26 +02:00
Ferdinando
9c64ed0072 Fix Aswid devour failing during attack animation 2026-07-30 22:31:43 +02:00
Ferdinando
3104e5fabf Remove Charred and Morgen from Aswid diet again 2026-07-30 22:29:08 +02:00
Ferdinando
31beda5eea Restore Ashlands enemies (Charred/Morgen) to Aswid diet 2026-07-30 22:25:43 +02:00
Ferdinando
68dd2329dd Remove undead and inorganic enemies from Aswid diet 2026-07-30 22:22:24 +02:00
Ferdinando
7f7b92a191 Update Aswid devour toggle, player scaling fix, and README encoding 2026-07-30 19:32:17 +02:00
Ferdinando
c4a24c9fdf Initial commit 2026-07-30 19:00:13 +02:00