Form attacks and powers called Damage directly, and vanilla only raises
a skill inside Attack and Projectile.OnHit, so the skill never moved.
FormMelee.RaiseSkill pays once per swing or tick that hit a creature.
- Fenrir forms' claws and bites: Unarmed; Cultist fire: Elemental Magic
- Skadi drake melee and Trenta stomp: Unarmed
- Aswid aura: Blood Magic, 0.1 per second like the Frost Aura
- Alfar Geisli and Ljosstorm: Elemental Magic; Sameining pulse 0.1/s
- Trenta Purple Rain scales with Blood Magic (two new bonus keys) and
levels it once per cast that reaches someone besides the caster
The heal skipped the caster, so a lone Trenta cast a heal that touched
no one. The caster now gets the same flat heal as its allies; the
compendium line and the config description say so.
Vanilla Player.UpdateStats stops stamina regen while swimming off the
ground, and drowning starts at 0 stamina. The Bonemass unlock only
waived the stroke cost, so a Trenta who went into the water empty never
got a point back and drowned in water it swims for free.
A postfix on UpdateStats adds the regen vanilla held back, with the same
formula, times the new Trenta - Bonemass / Swim Stamina Regen (0.1, slow
on purpose). The compendium line says so in all three languages.
The same bug the Fenrir forms had until d8dcecb. Vanilla grants a hit's
adrenaline inside Attack; these forms skip Attack and call Damage
directly, so only the stagger bonus in Character.Damage ever reached the
player.
FormMelee.GrantAdrenaline now runs after each hit of the True Form
troll's punch and log swings, the drake's maul, the Ravager's swings and
the Muspell's stomp. The troll's ground slam hits through an Aoe, which
never touches Attack either: the slam marks its Aoe, and a postfix on
Aoe.OnHit grants the adrenaline for each creature it lands on.
Projectiles (Throw Rock, the Muspell spike, drake breath) were never
affected: Projectile grants its own adrenaline on a hit.
The Muspell was the one form without the attack blocks every other form
has. Each stomp and spike also started the hidden human's attack, and the
Elder clone's CharacterAnimEvent fired a held bow or crossbow through
OnAttackTrigger, several shots a swing.
StartAttack, PlayerAttackInput and OnAttackTrigger are shut while the
Muspell is up, and the guard is cleared after SetControls, since the
spike sits on Right Mouse, which is also Block.
Trenta seeds, Draugh raw flesh and Aswid meals each go through an
EatFood prefix that, with three slots full and none holding the same
food, answered false. Vanilla would replace the most depleted meal past
half its time. The UseItem callers also never showed why: EatFood says
nothing on a refusal, so the click did nothing at all. That is the
Reddit report of a Trenta who could not eat any seeds.
The prefixes now hand that case to native EatFood, the Aswid's
CanConsumeItem postfix keeps vanilla's answer instead of forcing false,
and the Trenta and Draugh callers ask CanEat(item, true) for vanilla's
own message when a meal is refused.
Eleven pieces set m_groundPiece. Player.UpdatePlacementGhost switches
the ghost off outright and returns whenever the aim is not on a
Heightmap, which vanilla means for hoe and cultivator pieces. Floors,
rocks and a troll cave's mesh floor are not a Heightmap, so players
saw no ghost at all there, and with either flag Valheim never shows
the blue placement marker. Reported for the Trol War Totem.
m_groundPiece is off everywhere now. The stations (War Totem, Cursed
Body Pile, Dvergar Bank, Rune Barrel, Pack Trough, Skadi Golem, Bone
Servants) drop m_groundOnly too and go on floors, foundations and in
caves, like the Bone Pile since 1.5.8. The living pieces (Furling
bushes, Sverm nest and Hive Market, Trenta Elder Root) keep
m_groundOnly: terrain only, and the ghost shows red elsewhere.
ResetRace now undoes each race's form on the spot before it touches
status effects: Aswid bat and mist, Fenrir, Skadi drake, Trol True
Form, Trenta Muspell and Sverm Ravager. Each race gets a
HardResetForReset that stops the form's coroutine, so a transform
caught mid-gesture can't finish after the reset and a revert can't
hand out its cooldown after the sweep.
The hand-written status effect list is gone. The reset now removes
everything the mod registers through Jotunn (ModRegistry), which
covers the True Form and its cooldowns, Bat and Mist Form, the
Skeleton resurrect cooldown and Skadi's ability cooldowns.
It also puts the player and the Visual back to scale 1, clears the
Sverm's static Ravager cooldown and the Trol's wasTrueFormActive flag,
and prints what it removed to the console and the BepInEx log.
The first loop fix never fired. The idle shares a locomotion blend tree
with the Swagger Walk clips, so it is not always the first clip listed:
it is now found by name with most of the weight. And a cross-fade from
a state into itself can be ignored by Unity, so the state is restarted
with Play once it reaches its end.
The Elder's "Unarmed Idle" clip is not a looping clip (loop=False,
1.90s), so after standing up or attacking the form played it once and
froze on the last frame. The state is now cross-faded into itself just
before its end while the form stands idle.
The form hides the player's body by shrinking its Visual to 0.001, and
RaceEyeHeight reads anything that small as hidden and leaves the eye
where it was, at a person's height. The Muspell now measures its head
height when the clone is made and hands RaceEyeHeight that height times
the form's current scale, so the camera follows the grow and shrink.
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>
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>
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>
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>
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>
Race body scale moved the model and not the camera: Character.m_eye hangs
off the unscaled root, so a Trol or a Dvergar changed height for everyone
but themselves. RaceEyeHeight moves the eye by whatever scale the Visual
is wearing, for every player, so aim rays follow too.
Remote copies of a Fenrir form had no one writing to their Animator and
stood in the controller's default state, sliding. RemoteFenrirAnimator
mirrors the four local behaviours off the player's own replicated
animator, the way RemoteSkadiAnimator already did for Skadi.
Player.Food.m_time is time remaining, not time elapsed: the Aswid, Trenta
and Draugh repeat-meal branches all set it to 0 and expired the slot they
meant to renew, and left the nutrition values stale. RaceFoodRefresh does
what vanilla's own branch does, in one place instead of three. The Trenta
prefix now reports __result, or a working refresh would have renewed the
slot without consuming the seed.
Aswid devour was gated by one timestamp shared by every corpse, so a pack
killed at once fed the player once; it is now per corpse, floored at a
second, and a refused meal says $msg_nomore.
MonsterAI.UpdateTarget discards any target IsEnemy refuses, so a truced
mob could not retaliate at all - it stood still or fled. RaceGrudge
records the hit on the AI owner's client and both truce postfixes stand
down for that pair. The Aswid drain and the Skadi frost aura now skip
kin, as the Skeleton's fire aura already did, or an always-on aura would
hold every truce permanently broken.
Faction sets matched exact prefab names with families half-listed:
added Skeleton_NoArcher and Draugr_Ranged to the Swamp, Greyling to the
Black Forest.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Humanoid.UseItem shows the generic $msg_cantuseon whenever the
interactable's UseItem returns false, covering the refusal message the
building had just shown. Same fix as the Trol totem in v1.4.18, applied
to the Servant table, Dvergar barrel and bank, Fenrir trough, Draugr and
Skeleton piles, Blood Refinery, Grove and Composter: an item in hand
always counts as handled. Empty-handed interactions are unchanged.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Sverm Ravager Strain (replacing the Stinger Morph), Trenta Elder Root, the
Trol food and Black Forest truce work, and the faction FindEnemy patch.
Conflicts resolved:
- FactionHostilityPatch.cs: both sides added a class at the same spot and
they cover different holes, so both are kept - FactionStaticTargetPatch
(main, stops same-faction mobs smashing structures) and
FactionHuntPlayerPatch (war-vulture, closes the HuntPlayer fall-through).
- RaceCompendium.cs: both branches independently fixed the same off-by-one
in the Trol's progression gates. Took main's wording, which matches the
code - Axes are in the melee bonus (TrolDamagePatches sends them to
m_slash), the 4th food slot has no gate at all, and Yagluth is +5 not +10
(TrolConfig.YagluthMeleeBonus). Kept war-vulture's two new lines, the
Kindling fire weakness and the Black Forest truce.
- Package/manifest.json: 1.4.8, which is what the root manifest and
PluginVersion already said.
RacesOfValheim.cs referenced SvermConfig.StingerSE/StingerCdSE, which
war-vulture renamed to Ravager. Git merged those lines without a conflict
and the result did not compile; renamed.
Also in this commit:
- Factions on/off switches (FactionsConfig): "Faction truce" and "Faction
merchants", both default on, both read live so they take effect without a
restart. The truce gates its three postfixes; the merchants gate the
Character.Awake setup plus every behavioural patch, so turning them off
drops the prompt and the trade window on mobs already awake.
- SerpentMeat sells for 200 instead of 1 at the Fuling bench, moved to keep
the list's ascending price order (the sell panel renders it as declared).
- DraughFoodPatches mapped "SerpentMeatRaw", which is not a prefab; the
internal id is SerpentMeat, so serpent meat never cooked for a Draugh.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Most GenerateXText methods described mechanics that didn't match what
the code actually does, some invented stats that never existed. Went
race by race and rewrote each one off the real ConfigEntry/Progression
values, verifying tier gates, keybinds and numbers against the actual
patches rather than restating old prose.
- Aswid: rewritten from scratch. Invented Damage/Armor/Jump-per-state
multipliers that don't exist in AswidConfig; Bat Form, Eclipse and
Tame were missing entirely; the Vampiric Aura was described as a
shield-block channel in bat/mist form when it's actually passive and
always-on (toggled with 'I').
- Furling: was a placeholder ("will be revealed soon...") with only
tiers 5-8 written and a mojibake dash in the base passive. Filled in
Master of Shadows (tier 2), The Wickerman (tier 3) and Dance of the
Dead (tier 4), all missing.
- Trenta: had no compendium entry at all - no title, no branch, no
method. Written from scratch off TrentaConfig/TrentaConfigManagement.
Also fixed a real gameplay bug found while cross-checking: Thorns had
no tier gate and was live from tier 1 instead of Moder (tier 5), the
way its own doc comment and config grouping said it should be.
- Skadi/Skeleton: audited line by line, already accurate, untouched.
- Dvergar: one stale line (claimed 33% height reduction; the live
VisualScale is 22%).
- Draugh: substantial rewrite. Removed a "permanent Corpse Run" buff
that doesn't exist anywhere in the codebase, corrected base-tier
Poison (ordinary until Bonemass, not resistant from tier 1), fixed
the Human Meat trigger (any nearby player death, not humanoid
kills), fixed a false "no stamina to spend" claim, and added the
missing skeleton/draugr/ghost/wraith hostility exemption, Frost
immunity and stagger-crit unlocks.
BepInEx's KeyboardShortcut.IsDown() ends in ModifierKeyTest, which
requires that no key outside the shortcut is currently held - it only
exempts the mouse buttons. That is right for a config-menu hotkey and
wrong for a game ability: holding W (or any other movement key) made
every bound ability in the mod stop responding, for every race, mouse
bindings included. Vanilla attacks kept working because they go
through ZInput, which is what made it look like a Skadi/dragon bug.
Adds RaceInput.IsDownIgnoringHeldKeys / IsPressedIgnoringHeldKeys -
main key down plus every modifier held, without the blocking rule -
and switches all 27 call sites across Aswid, Dvergar, Fenrir, Skadi,
Trenta and Trol over to them.
Arrived with the rebindable-keybind work that shipped in 1.4.0.
Adds TrentaConfigManagement.cs rather than reusing the TrentaConfig name,
same reasoning as DvergarConfigManagement: that existing class holds
identity constants that must never change (RaceId, status effect and
prefab names), hand-tuned cosmetic placement numbers (skin colour, crown
position), and design-time tables (HealthBonusByState, the per-biome
AwakenedSeedFoods list) left alone under the same boundary drawn for
every other race's progression table.
Only the genuine ability knobs move: Photosynthesis, Purple Rain, Last
Stand/Thorns, Homecoming Portal, Hornet's Nest, Muspell, and the vegan
food duration bonus each get a Configuration Manager section, plus the
three transform/ability keybinds (Purple Rain, Portal, Muspell).
TrentaConfig's fields for those now forward to TrentaConfigManagement
(same const-to-property trick used for Skadi and Dvergar), so every
existing call site kept working unchanged except the three keybind
consumers in TrentaAbilities, which now read the live configured key.
Fixes a BepInEx startup crash caught while testing: the Hornet's Nest
section name used a straight ASCII apostrophe, which
ConfigDefinition.CheckInvalidConfigChars rejects outright (section/key
names may not contain = \n \t \ " ' [ ]). Switched to the typographic
apostrophe (U+2019), which reads the same and isn't on the forbidden list.
Config sections stay bound alphabetically by race (Aswid, Draugh,
Dvergar, Fenrir, Furling, Skadi, Skeleton, Trenta) in
RacesOfValheim.Awake().
Trenta: a greydwarf shaman trophy is hung on the player head bone and sunk into
the skull until only the horns and branches clear it - the Furling wears a goblin
head the same way, aimed at the opposite result. A trophy is a plain static mesh,
so unlike the Dvergar hood there is no rig to collapse: the player own head does
all the hiding, which makes the three offsets in TrentaConfig the entire look.
They are a first pass and want eyeballing in game.
Draugh: the smoke and the cloud of flies only ever existed on the client of the
player wearing them. DraughRace is a single MonoBehaviour that looks at
Player.m_localPlayer and nothing else, so in multiplayer every other player saw
an ordinary, unrotted Viking. The build moved to DraughVisuals, which takes a
Player, and RacesVisualController now grows the same aura on every remote Draugh
it can see. Nothing is networked and nothing needs to be - each client reads the
race off the ZDO and makes its own particles.
Both hang off VisEquipment.UpdateVisuals or the visual controller, the two hooks
that already run for remote players, so neither had to invent a sync path.
A vegan, tree-born race unlocking new perks per boss defeated: skin/hair
tint, blocked non-vegan food, awakened seed foods after Eikthyr, a mob
hostility list, Photosynthesis, elemental resistances, Purple Rain after
the Elder, swim/poison/wet immunity after Bonemass, Last Stand and Thorns
after Moder, a Homecoming Portal after Yagluth, Hornet's Nest after the
Queen, and Muspell (a half-size Elder transformation with Stomp/Spike
attacks) after Fader.
Also fixes RaceScale never listing Trenta as self-sizing, which let a
shared Player.Update postfix fight Muspell's own scale changes every
frame.