Commit graph

285 commits

Author SHA1 Message Date
b4b6fe3758 fix(fenrir): hidden human no longer attacks or blocks under a form
The attack block patched Character.StartAttack, which Humanoid overrides
without calling the base, so it never ran; and it covered the Fenring only.
Every form swing also fired the hidden human's attack: stamina spent,
regen held at zero while it played, and forward_speed dropped to 0. Patch
Humanoid.StartAttack for all four forms, and clear m_blocking after
SetControls so the pad's heavy attack stops raising the guard.

Forms treat the player as airborne only after 0.25 s off the ground, so
bumps no longer flicker run to idle. Melee reach ignores the target's own
colliders and accepts a clear line from the eyes or the attack point, with
an opt-in hit log. Sunrise names the key that still works by day.
2026-09-28 22:19:37 +02:00
19d331789a Merge branch 'fix-allied-raids' 2026-09-28 21:44:16 +02:00
df9c768f92 feat(factions): no raids made only of allies, and allies spare the whole base
A raid whose every spawn is at peace with the player's race is struck from
the list the client sends as possibleEvents, and from the server's valid
event points when raids are world-based.

The structure veto covered only 20 m from the creature, but
FindClosestStaticPriorityTarget searches the whole view range. It now holds
while any allied player is within 100 m, and reads the per-race lists too.
2026-09-28 21:41:29 +02:00
5807e562ad docs(readme): lead with the v1.5.0 localisation, and trim the changelog
The opening section now introduces the localisation and the release's most
visible fixes instead of the Sverm, whose own section further down is
unchanged. The changelog keeps v1.5.0 back to v1.4.20; older versions are
on the wiki's release notes, which the closing line points to.
2026-09-28 20:22:06 +02:00
a8d7c95e2b chore(release): v1.5.0
Version bumped in manifest.json, the packaging manifest and PluginVersion.
The changelog covers the localisation work, the Valheim 1.0 build menu
fix and the fixes since 1.4.24, and corrects the 1.4.24 note that claimed
Fenrir sounds had been writing into the world save. A Translations section
explains how to add a language, and the install step now names the folder.
2026-09-28 19:50:33 +02:00
27079af19f Merge branch 'feat/translations-merchants' 2026-09-28 19:39:17 +02:00
29bd557eb9 feat(text): Italian merchant jokes, from the adaptations Nando wrote
The 90 closing jokes in Italian, taken from Factions_Battute_Mercanti.txt,
where each pun was adapted rather than translated wherever the English
wordplay had no Italian equivalent. The file wrote accents as trailing
apostrophes; they are proper accented letters here.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-28 19:35:11 +02:00
6ec8fe327d feat(text): Italian compendium, and quotes and song titles kept in the original
The compendium's 204 texts in Italian. Ability names that are quotes or
song titles stay as written in every language, by the author's call:
Purple Rain, Weight of Shadows, Like a Bat out of Hell, Swarm of Terror,
Steal Their Breath and the like, including the Italian status effects and
messages that had been translated before.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-28 19:09:14 +02:00
5910c4f746 feat(text): the race compendium comes from translation files
Every paragraph of the compendium pages now reads from compendium.json.
Values computed from the config become $1, $2; the Sverm fire clause, which
had two wordings folded into one sentence, is two sentences. The pages'
titles are tokens that the game's Texts dialog localizes, and since those
titles are also the pages' keys in the saved m_knownTexts, the refresh
clears the old English keys too. Boss names use the game's tokens.

Song titles and quotes stay in the original, in every language.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-28 19:03:59 +02:00
1bd09ed31d feat(text): merchants, troops and the hive's shelf come from translation files
The faction merchants' 90 jokes, their generic lines and their names now
read from merchants.json. Merchant names use the game's own creature
tokens where one matches, so they arrive translated in every language
Valheim ships; the Dverg keeps a key of its own, since vanilla's token
reads "Dvergr Rogue".

The Dvergar and Trol troop names and terms, and the Sverm hive's goods,
refusals, stage names and brood kinds, follow. Their panels fill TMP texts
themselves, so they localize the names where they draw them.

The jokes have English text only for now.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-28 18:50:54 +02:00
594b333f68 Merge branch 'feat/translations-hover' 2026-09-28 15:13:59 +02:00
2c5079bf8c fix(build): the mod's stations appear under Crafting in Valheim 1.0's build menu
Valheim 1.0 lists pieces by Piece.m_usage tags. Jotunn sets only the old
category, so a cloned piece kept its source's tags: the Crystal Golem and
the Bound Sentry, cloned from guard_stone, landed under Decorations. A
postfix on PieceManager.AddPiece now sets the tag from the category for
every Hammer piece of this mod.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-28 15:06:22 +02:00
83bade65cb fix(trol): True Form no longer switches itself off as it comes on
The plugin adds TrolRace itself, but Instance did not know that and built
a second copy on first read, so two Updates read every key. Past Fader the
True Form key is a toggle: one copy put the form on, the other saw it on
in the same frame and took it off. The Trol grew and shrank back with no
status. Awake now registers the plugin's copy and removes any other.
FurlingRace had the same pattern, harmless there, and gets the same fix.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-28 15:06:21 +02:00
b555da99f2 feat(text): the Tame and Grab Log hover prompts come from translation files
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-28 13:55:45 +02:00
99a1817eb0 feat(text): hover texts come from translation files
What the stations, thralls, the ward and the hive show under the
crosshair now reads its text through ModText.Get, and hover.json holds
50 texts in English and Italian.

The Aswid thralls and the Race Menu Ward wrote the use key as a literal
E; they now use $KEY_Use, which shows the key the player actually bound.
For that to work, ModText.Get runs a second localization pass when a $
is left in the result: Valheim resolves tokens once and never looks
inside what it inserted, and hover texts go to the HUD without another
pass.

The Sverm hive stage names stay English for now: the compendium and the
hive's goods show them too, and those come with the merchants step.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-28 13:55:14 +02:00
19d7cbacbd Merge branch 'feat/translations-messages' 2026-09-28 13:50:08 +02:00
0a0d9410e7 fix(skadi): Middle Mouse in Drake form no longer spends the attack cooldown on nothing
PerformAttackCoroutine starts the cooldown and shows its icon before it
looks at the form, and the Drake has no Middle Mouse attack, so the press
cost a cooldown and fired nothing. HasAttackForButton now answers for the
Drake too and guards all three buttons, as it already did Left Mouse.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-27 00:52:01 +02:00
b0d18b0654 feat(text): on-screen messages come from translation files
Every message the mod puts in the middle or corner of the screen now reads
its text through ModText.Get, and messages.json holds 191 texts in English
and Italian. Values computed in code become $1, $2 in the text, so a
translator can put them wherever the sentence needs them. Branching
messages get one key per branch.

A few messages travel through a field before they are shown: thralls'
refusals and the building limits now hold a token or key there. Boss and
form names inside messages use tokens too, the bosses the game's own, so
"The Elder" arrives translated.

ModText.Get now localizes each argument before inserting it. A token
argument left for a later pass ran into the text after it: "$1's power"
became the unknown token "enemy_eikthyr's".

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-26 20:30:03 +02:00
b3641e5bf4 Merge branch 'feat/translations-status-items' 2026-09-26 20:24:28 +02:00
b177c89c71 feat(text): item, piece and creature names come from translation files
The mod's own items, build pieces and summoned creatures now carry
$rov_item_, $rov_piece_ and $rov_creature_ tokens for their names and
descriptions, and items.json holds the texts in English and Italian.
Valheim localizes these fields wherever it shows them: tooltips, hover
texts, messages, the build menu.

Where a name doubles as an identifier, both sides use the same constant,
so the comparisons still hold. The Aswid foods keep their prefix as a
constant for the refinery's check and now name the creature with its
vanilla token, so "Boar" translates too. The Furling crops get one whole
description per crop instead of an English sentence with the metal dropped
in. The Race Menu Ward's panel title is a mod UI Text, so it reads the
translation directly.

Saves are unaffected: items and eaten foods are stored by prefab name.
The Sverm hive's goods stay for the merchant step.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-26 19:58:53 +02:00
9bf144aedc feat(text): status effect names and tooltips come from translation files
Every status effect the mod registers now carries a $rov_se_ token instead
of English, and status_effects.json holds the texts in English and Italian.
Valheim localizes both fields itself when it shows them. The blood
potion's tooltip has numbers in it, so SE_BloodPotion fills its $1 and $2
in GetTooltipString, at display time.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-26 19:51:10 +02:00
c055455027 Merge branch 'feat/translations-races' 2026-09-26 19:48:29 +02:00
73b67cd6ce feat(text): the race menu reads its texts from translation files
First step of moving every piece of text out of the code so modders can
translate the mod. The texts live in Translations/<Language>/*.json, one
file per kind of text, which Jotunn finds on its own and falls back to
English for. ModText reads them; values take Valheim's $1, $2 placeholders.

This step covers the race selection menu: title, buttons, every race's
name and description, in English and Italian. The race ID and the name on
screen are now separate strings. The ID is what the save and the ZDO hold,
so it must never be translated.

The files are deployed to plugins\RacesOfValheim\Translations and packed
into both release zips.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-26 19:43:48 +02:00
a835a58003 Merge branch 'fix/cold-spell-tier-text' 2026-09-26 19:30:57 +02:00
19c9347772 fix(skadi): the Cold Spell key's description says tier 2+, where it unlocks
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-26 19:30:56 +02:00
731125901e Merge branch 'feat/eclipse-dusk' 2026-09-26 19:27:22 +02:00
52c26d9b52 feat(aswid): the Eclipse's dusk spends its time on the sunset
An even sweep from the afternoon to midnight looked still for three
seconds and then fell dark in half of one, because the sky hardly changes
between 0.25 and 0.75 and does its darkening around sunset. The dusk now
walks keyframes: half a second to late afternoon, three through the
sunset band, half a second to midnight.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-26 19:24:23 +02:00
055635d1b4 feat(aswid): Eclipse runs the sky through dusk instead of cutting to night
While EnvMan's debug time is on it copies the value straight onto the sky,
so setting midnight in one go made night fall in a single frame. The clock
now eases forward from the current hour to midnight over 3.5 seconds. The
dawn already eased back on its own, because EnvMan smooths towards the real
time once the switch is off.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-26 19:16:08 +02:00
0403b6a9df Merge branch 'fix/aswid-eclipse' 2026-09-26 19:14:14 +02:00
2d718a09ec Merge branch 'main' into fix/aswid-eclipse 2026-09-26 19:04:09 +02:00
bb6af1c877 Merge branch 'fix/fenrir-sounds-spawn-like-vanilla' 2026-09-26 19:04:07 +02:00
0674329592 fix(fenrir): spawn sounds the way vanilla spawns effects, without ghost init
Ghost init was meant to keep a sound's ZNetView from writing a ZDO. It
does not: ZNetView.Awake still creates the ZDO and only skips registering
the instance, so ZNetScene sees an unbuilt ZDO and builds a second copy.
Vanilla's EffectList.Create uses a plain Instantiate, and TimedDestruction
deletes the ZDO through ZNetScene.Destroy when the sound ends. The spawn
now does the same.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-26 18:50:51 +02:00
8f477dd3be fix(aswid): Eclipse brings the night instead of dying on its first line
The coroutine set EnvMan's two debug-time fields the wrong way round and
asked for 0.5, which is noon. Handing a bool to the float field threw, so
the cast stopped right after the announcement and IsEclipseActive stayed
true, and every later press returned without a word. The fields are now
set directly, to midnight, and a finally frees the ability if anything in
there throws again.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-26 18:29:34 +02:00
e4694f6cd9 Merge branch 'fix/ulv-footsteps' 2026-09-26 18:23:46 +02:00
5bdd7200a5 fix(fenrir): the Ulv no longer asks the player for feet called LeftHand
The form's CharacterAnimEvent finds its FootStep on the nearest Character
up the hierarchy, which for a form parented under the player is the player.
The Ulv's Run clip names its front paws LeftHand and RightHand, a human rig
has neither, and vanilla logged "FAiled to find foot" twice per stride.

The form's receivers are now cut from the player's FootStep, on the local
form and on the copy other players see. The footsteps stay: the hidden
human animator keeps running and FootStep steps off its curve.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-26 18:17:37 +02:00
58874457e0 Merge branch 'fix/radial-swallows-attack-input' 2026-09-26 18:12:36 +02:00
97d02855e5 feat(skadi): say why a Cold Spell press did not cast, and log each step of the cast
Every gate on the spell was silent, so "it does nothing" looked the same as
"it was never pressed". Each refusal now logs its reason once per session,
and the cast logs each step before taking it, because the crash it chases
kills the process without a stack trace. The prefab descriptions run after
the Instantiate, so reading them can't be what makes the spawn safe.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-26 18:12:34 +02:00
e973e21003 chore(input): quieten the radial proof to one line per state
The transition log did its job - it showed Hud.InRadial() reporting False at
spawn with no wheel on screen, which is what the gate depends on and what the
method's name alone could not promise. Left in, because that proof is worth
one line in every player's log, but said once per state instead of twice per
use of the wheel.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-26 17:30:35 +02:00
2b900d91e7 fix(input): the radial menu no longer swings the form it is opening a menu on
Clicking an entry in the race wheel also fired the transformed form's attack.
The click picks the entry AND is read here as a raw mouse button, because the
forms read the device directly rather than going through Humanoid.StartAttack.
Vanilla attacks never had this: they go through ZInput, which the radial
already blocks, so only input read straight off the device got through - which
is all of ours.

Hud.InRadial() answers it, the same shape of call as the
Hud.IsPieceSelectionVisible() already here for the hammer's build panel. That
is now the second GUI Player.TakeInput knows nothing about.

CHECKED IN AttackDown AND NOT IN Allowed, deliberately. The radial fires an
ability by queueing its keybind through Press(), and the ability's own reader
picks that up inside an Allowed gate - so blocking Allowed while the wheel is
open would risk the wheel swallowing the abilities it exists to trigger.

The second half is the same bug one layer down: an ability bound to a mouse
BUTTON does not go through AttackDown at all. Skadi's cold spell sits on middle
mouse, so middle-clicking an entry in the wheel cast it. IsDownIgnoringHeldKeys
now takes the queued press first and without any gate - that one is the radial
itself - and ignores a raw mouse button while the wheel is up. Keys at the
keyboard are untouched: nothing about an open wheel makes pressing K ambiguous.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-26 17:15:21 +02:00
7ad1d6920e fix(fenrir): the Ulv was mouthing a silent howl
The howl code took a playing animation as proof the sound was coming, because
the wolf's does bring it: 'C_Hawl' fires an Effect event at 0.39s holding
sfx_wolf_haul. The Ulv is the same family on the same rig and its 'Idle Howl'
carries no event at all - events=0, read straight off dumpanim - so pressing
the key as an Ulv played the animation and nothing else. The muzzle went up in
silence.

Which creatures bring their own sound is now written down rather than assumed,
and it is only the wolf. FenrirCreatureSound.Howl does the whole thing -
animation, trigger published for the other clients, and a sound unless the
animation is already carrying one - so the four forms call one line and the
distinction lives in one place.

The Ulv's hold also went from 3.3s to 3.8s: it was the wolf's clip length,
copied, and 'Idle Howl' runs 3.67s.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-26 16:55:19 +02:00
cd10722594 docs: say that the Cultist's fire breath runs on eitr
The feature list said "Transform into a Cultist to use fire abilities" and
never mentioned a cost. The flames take 12.5 eitr per second, and eitr comes
from the Mistlands while the form unlocks at Yagluth - so the form can be had
with its signature attack still out of reach. Both the feature bullet and the
changelog say so now.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-26 16:27:42 +02:00
6b43d3544e feat(fenrir): say why the fire breath did not come, and log a Draugh's parry
Holding right mouse as a Cultist with no eitr did nothing whatsoever - no
flames, no sound, no reason given. The form arrives at Yagluth and eitr is a
Mistlands thing, so a Cultist meets that silence before it ever meets the
fire. It now says "Only breath comes out. The fire wants eitr." on a
three-second timer, since the button is read every frame and the message would
otherwise be a wall.

The parry that fires the Draugh's poison splash is logged, with the block
timer against the window and whether the splash effect resolved. A parry has
to land inside a quarter-second window while blocking, so "nothing looks
different after tier 3" is as likely to mean the window was missed as it is to
mean the splash did not draw, and there was no way to tell those apart.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-26 14:00:21 +02:00
1c8fa7357f chore(release): sync the packaging manifest to 1.4.24
JotunnModStub/Package/manifest.json is a second copy of the root manifest,
kept by hand and differing from it only in the version - a third place for the
version to drift, on top of the two MAINTAINING.md already warns about. It was
still on 1.4.23.

Synced rather than fixed: the packaging step should copy the root manifest
instead of there being two, which is a change to make when the artifacts are
built rather than in a version bump.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-26 01:50:21 +02:00
421bc72eb7 chore(release): v1.4.24
Version bumped in both places that carry it - manifest.json is what
Thunderstore ships, PluginVersion is what the game logs - since those two have
drifted apart before.

The Nexus description is generated now rather than rewritten by hand. It had
fallen thirteen versions behind the README, which is how a hand-maintained
copy of a 72KB document goes. scripts/nexus-readme.py converts README.md to
the BBCode the page wants, following what the 1.4.11 page did by hand so the
two are comparable, and writes dist/NEXUS_README_<version>.bbcode.txt.

The wiki link was on the Nexus page and had never been in the README, so every
other channel shipped without it. It is in the README now, which means it
reaches Nexus, Thunderstore and the repository from one place.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-26 01:45:08 +02:00
148ca5b39e Merge branch 'fix/skeleton-fire-aura-prefab-hijack'
Six commits: the Skeleton fire aura no longer borrows another mod's VFX by
name, every prefab lookup name in the mod now exists in vanilla, the Draugh's
Human Meat is a real item, the Fenrir forms have their own voices and howl on
demand, and dumpanim reads an animator instead of guessing at it.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-26 01:42:04 +02:00
da896179fd feat(fenrir): howl on demand, in every form
The howl key was only ever read by the two Fenring forms. As a wolf or an Ulv
it did nothing at all - not a misconfiguration, the classes simply never
looked at it. All four forms read it now.

The wolf and the Ulv perform the creature's own howl animation and NO SOUND
IS SPAWNED, because their clip already carries one: 'C_Hawl' fires an
animation event at 0.39s holding sfx_wolf_haul, and the game's own
AnimationEffect plays it. The audio comes out of the animation, at the
instant the animation means it to, which no prefab fired on a keypress can
match. Spawning one as well would be a second howl over the first.

A trigger is looked for before a state, and that is about multiplayer rather
than tidiness: FenrirAttackSync replicates trigger names, so a howl fired
through a trigger is one the other clients see and hear, while Animator.Play
is local and nobody else knows. Which route was taken is logged once per
creature, and if neither exists the log prints the animator's whole parameter
list rather than leaving another keypress that quietly does nothing.

The Fenring and the Cultist have no howl clip in vanilla - 19 and 18 clips,
none of them a howl, and their taunt fires no sound event - so they keep the
Taunt animation and take the wolf's howl as their voice.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-26 01:41:00 +02:00
22170087ae feat(debug): dumpanim, for reading an animator instead of guessing at it
Guessing at animation has cost this mod real time: a howl looked for under
three wrong names, a taunt animation nobody knew played, and a sound prefab
that kills the process when spawned on its own.

dumpanim <prefab> lists a creature's parameters, layers, every clip in its
controller with name and length, and every AnimationEvent on every clip - the
instant, the method called, and the asset an event hands over. That last
column is where a sound wired into an animation lives, and it is what finally
found the wolf's howl.

It also prints the components beside the Animator, because an animation event
is delivered to those and nowhere else. On a prefab with no animator at all
it falls back to dumping the hierarchy, the components and the audio setup,
which is how a sound prefab gets looked at without being spawned - and some
of them must not be spawned.

dumpanim live watches every animator under the player and reports each clip
change as it happens. Standing still in wolf form and reading the log is what
showed 'C_Hawl' coming round in the idle rotation on its own.

What Unity will not give up, and it is worth knowing before starting: the
state machine. States and transitions are editor-only and
GetCurrentAnimatorStateInfo returns hashes with no names, so a state can only
be guessed and then confirmed.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-26 00:20:42 +02:00
9907cae292 fix(fenrir): give the forms a voice, and stop the sounds writing to the save
Every sound the Fenrir forms played was looked up by a name, and most of
those names are not prefabs in this game. The chains hid it: PlaySFX walks
its arguments and stops at the first that resolves, so a claw that asked for
"sfx_fenring_attack", "sfx_fenring_attack_claw", "sfx_wolf_attack" had a
Fenring swinging with a wolf's voice through a fallback nobody noticed. The
cultist's double claw asked for three dead names in a row and was silent from
the day it was written.

The creatures do have their own sounds. The forms now use them:
sfx_fenring_claw_start for the swing, sfx_fenring_claw_hit for the landing,
sfx_fenring_fireclaw to open the fire breath. The Ulv keeps the wolf's, since
vanilla ships it nothing but sfx_ulv_death.

THE HOWL WAS NEVER A PREFAB TO LOOK UP. It is an AnimationEvent inside the
wolf's 'C_Hawl' clip, firing at 0.39s with the sound handed over as an object
reference - and a player in wolf form idles through that clip and howls out
loud already, with the game's own AnimationEffect doing the work. Three
spellings of one word are why this took so long to find: the clip is
'C_Hawl', the sound is 'sfx_wolf_haul', and the mod was looking for
'sfx_wolf_howl', the only correct spelling of the three and the only one that
does not exist. The Fenring has no howl of its own at all, so it borrows the
wolf's over its Taunt.

The jump attack's impact moved to where the jump lands, next to the damage,
instead of firing before the dash while the form is still standing.

FenrirCreatureSound.Spawn is the other half. Some vanilla sound prefabs carry
a ZNetView - sfx_fenring_alerted does - and one that wakes with no init ZDO
writes a persistent record into the world, once per swing. Spawning now runs
inside ZNetView.StartGhostInit, the game's own answer, so no ZDO is made. All
nine sound spawns in these forms go through it.

sfx_fenring_howl resolves to an ordinary sound prefab and hard-exits the
process when spawned on its own. It is named in a Suspect set, described in
the log and never instantiated, because a name nobody records is a name
somebody adds back.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-26 00:20:31 +02:00
276ff93834 feat(draugh): add the Human Meat item the Bonemass perk has always promised
Two places in the mod used an item called "HumanMeat" and nothing registered
it: the drop in Draugh_DeathAura_Patch and the "fatal to the living" block in
DraughFoodPatches. Both check for null, so the perk has been a no-op since
it was written - a README line with no item behind it. The two consumers are
unchanged; what was missing was the producer.

Built from two vanilla items, one for the look and one for the numbers.
RawMeat gives the model and icon, because that is what a piece of somebody
looks like and because raw flesh is the Draugh's whole food identity.
BloodPudding gives the nourishment, copied field by field at start-up rather
than written down here, so the item stays balanced against the game's own
progression and follows any change made to it.

Blood Pudding's stamina goes onto health and stamina is left at zero. A
Draugh does not use stamina, so nourishment spent there is thrown away: the
food slot would read full while giving the race half of what it cost.

RawMeat is a Material in vanilla - raw meat is not edible - so m_itemType is
forced to Consumable. That is the one assumption worth knowing about, and
the registration logs what it produced so a silent failure cannot hide. The
meat is tinted on copies of the materials, never the shared ones, or every
piece of raw meat in the world would darken with it.

The README said humanoids drop it. The patch is on Player.OnDeath and always
was, so the line now says what the code does: a player who dies inside the
death aura, the Draugh included.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-26 00:20:16 +02:00
e75c7072c4 fix(prefabs): replace every lookup name that does not exist in vanilla
An audit of all 59 prefab names the mod resolves, against the game's own
asset manifests, found nine that are not in Valheim at all. A name vanilla
does not use has no vanilla candidate to beat in Jotunn's name cache, so it
is a free slot for whoever ships one - which is how another mod's weapon
trail became the Skeleton's fire aura in 00d4fd6.

Eight of the nine failed in silence, which is why none of them was ever
reported:

  vfx_corpse_destruction  ->  _medium, _large for the Muspell. The puff that
      covers a transformation. Fenrir and Skadi at least had their sparks;
      the Muspell swapped bodies in plain view with nothing at all.
  vfx_surtling_death      ->  vfx_wraith_death for the Aswid's Mist Form,
      which reads as mist by construction and is the same creature the form
      already borrows its Visual from; vfx_corpse_destruction_medium for the
      thrall, where nothing is misty. Vanilla has no surtling death effect
      under any spelling.
  TrophyTroll             ->  TrophyForestTroll.
  TrophyBat               ->  TrophyDeathsquito. Vanilla ships no bat trophy,
      so the Aswid's two status effects and its radial entry had no icon.
  vfx_smoke               ->  gone. It was the Trenta's fallback for Purple
      Rain's particle material behind Greydwarf_Shaman, and the day the
      Shaman failed to resolve it would have worn whatever a mod supplies.
      Purple Rain is purple by design, so nobody would ever have reported it.

The ninth did not fail in silence. vfx_OozeHit was passed to Instantiate
unguarded, so every successful Draugh parry threw ArgumentException and took
the North Wind nova below it down as well. It is vfx_blob_hit.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-26 00:20:02 +02:00