Commit graph

455 commits

Author SHA1 Message Date
62ebc13116 Merge branch 'feat-form-attack-stamina': Form attacks cost stamina 2026-10-29 13:22:45 +01:00
162f71c39d Merge branch 'fix-cultist-attacks': Cultist claws on the hit events, flames from the jaw 2026-10-29 13:22:45 +01:00
788e226372 Merge branch 'fix-purple-rain-caster': Purple Rain heals the caster 2026-10-29 13:22:45 +01:00
84aba227eb Merge branch 'fix-trenta-swim-regen': Bonemass Trenta regains stamina while swimming 2026-10-29 13:22:45 +01:00
ed7483568c Merge branch 'fix-form-headlamp': Lights follow the form's head 2026-10-29 13:22:45 +01:00
3b194eaec9 Merge branch 'fix-trol-log-grab-gamepad': Trol Grab Log on the Use key 2026-10-29 13:22:44 +01:00
4cb9b7788d Merge branch 'fix-form-adrenaline': Form hits build adrenaline 2026-10-29 13:22:44 +01:00
3dae107b85 fix(fenrir): the Cultist's flames leave its mouth
The breath effect was placed 1.5 m above the player's feet and 1 m
ahead, chest height on a Cultist and the same whatever the form's size.

It now sits on the form's Jaw bone (fenring_cultist rig: Neck/Head/Jaw,
read from the game files), 0.3 m ahead, Head as the second choice and
the old fixed point if neither exists. A small follower places it every
LateUpdate, facing where the player faces, on the owner's copy and on
every onlooker's. The burn area is unchanged.
2026-10-29 02:30:05 +01:00
ac4ce4c636 feat(forms): Trol True Form and Fenrir form attacks cost stamina
Every form swing was free. FormMelee.TrySpendStamina charges a form
attack the way Attack.GetAttackStamina charges a weapon: equipment
modifier, status effects, up to a third off with the skill. Short of
stamina, the attack does not start and the bar flashes.

Trol True Form (Clubs skill), priced by the troll's damage, the slam
dearer for hitting all around: punch 10, side log swing 10, overhead
log 12, ground slam 18.

Fenrir forms (Unarmed), cheaper than weapons: Fenring 6/10/16, Wolf
4/6/10, Ulv 5/8/14, Cultist claw 6 and double claw 12. In exchange each
form hit gives 1.5x adrenaline (Fenrir - Form Buffs / Form Adrenaline
Multiplier), in Fenrir forms only.

Every cost is its own config entry beside the attack's damage.
2026-10-29 02:28:23 +01:00
ffb45d1c1c fix(fenrir): Cultist claws land on the clip's own hits
The single claw dealt its damage at a fixed 0.4 s, before the swing in
ClawAttackCultist (Hit event at 0.64 s of 1.33 s), and released the lock
at 0.5 s, so clicking again started a new claw mid-swing. The double
claw dealt one hit at 0.6 s although DoubleClawAttackCultist swipes
twice (Hit events at 0.64 s and 1.21 s).

BlockPlayerAttackTriggerPatch now counts the form's Hit events
(FenrirForms.AttackEvents) instead of only swallowing them. Both claws
wait for their events, with a timeout, and hold the lock until the clip
ends. Each double-claw swipe deals 60% of Double Claw Damage, 120% in
all for a slower swing that can be cut short.
2026-10-29 02:23:27 +01:00
87db3e03a6 fix(trenta): Purple Rain heals the Trenta who casts it
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.
2026-10-29 02:21:49 +01:00
fdc0fdcedc fix(trenta): stamina trickles back while a Bonemass Trenta swims
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.
2026-10-29 02:21:24 +01:00
3c81b8f130 fix: Alfar drones and Sverm workers work instead of wandering
HandsToVanilla gave the tick to MonsterAI whenever BaseAI.FindClosestEnemy returned someone. Vanilla takes its first match at any distance and only checks maxDistance after that, so any wild creature in the loaded zones counted. The tamed MonsterAI then idled around and the work loop never ran. Check the distance ourselves.
2026-10-29 01:55:48 +01:00
504e6e83ed fix(forms): a worn headlamp follows the form's head
A form hides the human body and leaves it where it stood, and a Light is
not a renderer, so the Dvergr circlet's lamp (or a torch in hand) kept
shining from the hidden human's head: at a person's height inside the
troll, from the Muspell's feet.

While the body is hidden, every Light under it is put just ahead of the
form's head bone. A form without a bone called head gets the top front
of its own model, and with no form model at all the light sits
centre-forward at head height. The lights go back once the body shows.
Runs for every player, so onlookers see the lamp in the right place too.
2026-10-29 01:54:50 +01:00
4862f47e73 fix(trol): Grab Log works on the game's Use button, gamepad included
A log carries only vanilla's HoverText, which is not an Interactable, so
the game's Use on a log did nothing. Grab Log was read off the keyboard
alone (and the radial menu), and a gamepad had no button for it.

A prefix on Player.Interact grabs the log for a True Form Trol at tier
7+, the way the Aswid's Dominate rides the same button. The Grab Log key
still works on top of it, with a short debounce so the two readers of an
E press grab once. The hover prompt now shows the Use key, which resolves
to the pad's own button.
2026-10-29 01:53:32 +01:00
b7b9cbcbd5 fix(forms): Trol, Skadi, Sverm and Muspell form hits build adrenaline
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.
2026-10-29 01:52:10 +01:00
99ec4134be fix(trenta): the Muspell no longer swings the weapon in hand
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.
2026-10-29 01:50:33 +01:00
bba81cbbf0 fix: Grafvaettir drones mine copper, scrap and tin
The default Mining Targets list named MineRock_Copper, but Black Forest copper is rock4_copper, so drones thrown at copper found no target and hovered where they spawned. Add rock4_copper and mudpile, and move configs still on the old default.

Drones now measure and aim at the nearest live hit area instead of the deposit root, which sits inside big rocks. Hits carry the drone as attacker: vanilla MineRock reads the attacker's ZDOID without a null check and threw on every tin hit.
2026-10-29 01:26:46 +01:00
e972ca5ea4 feat: Skeletons can show their helmet
New "Show Helmet" option under Skeleton - Visuals, off by default. The owner's
choice is written to the ZDO, so other players see the helmet the way its owner
picked.

On a skull the helmet moves up and back and grows to fit, since the skull is
bigger than the viking head the helmet hangs for. Hoods and the other skinned
helmets can't be moved by their transform: their Head bone is swapped for a
fitted child bone, so the head part follows the skull and the shoulder parts
stay put. A viking body gets the vanilla placement and bones back.
2026-10-29 01:08:07 +01:00
fcdea70ee1 Merge branch 'localisation' into localisation-turkish 2026-10-28 13:57:24 +01:00
1aa55984d6 chore(release): v1.6.3 - Trol guard and dressed stations
Version 1.6.3 in the manifests and PluginVersion. README: the New in
v1.6.3 block and the changelog, the True Form controls, the Bone Servant
tables' and the Race Menu Ward's new looks, crediting lexsonn and
sistermilker.
2026-10-28 13:55:36 +01:00
38160d1fa1 Merge branch 'kitbash-race-stations': new looks for the Race Menu Ward, Contract Bank and Bone Servant tables 2026-10-28 13:53:45 +01:00
3cc1bee2c0 feat: Trol True Form can block and roll
Right click blocks in True Form with a raised-arms guard, rooted in place.
Block + jump rolls at half distance with the troll's jump animation at
double speed. The slam moves to middle click (secondary attack on a pad).
trolpose is a debug command for trying guard and roll states live.
2026-10-28 13:53:35 +01:00
35476eb8ef feat: chainmail over the map on the Smith's Table
The smith goes back to the cartography table, like the cook. Its map is
painted over with 4-in-1 mail by scripts/paint_smith_mail.py at 512 px:
colour, rusted worn colour, a normal map from the rings' height and a
metallic map so they shine. Both tables now share one Dress/LayCover path.
2026-10-28 13:47:49 +01:00
069e098cf0 feat: red and white tablecloth on the Cook's Table
The cook goes back to the cartography table with its map painted over
offline (scripts/paint_cook_cloth.py from textures pulled by
scripts/extract_carto.py). The three PNGs are embedded in the DLL and
swapped onto copied materials by PieceLook.Retexture. The smith stays on
the black marble table.
2026-10-28 13:38:28 +01:00
b3edb2aed1 feat: marble Bone Servant tables, bigger centred props, fix table hover name
The Smith's and Cook's Tables clone the black marble table: the
cartography table's map is baked into its texture. Anvil or meal and a
skull sit near the centre at the table's measured height. The bank loses
its lantern and its tankard grows. The servant table hover localizes its
title, which showed as a raw token once a servant stood there.
2026-10-28 13:22:56 +01:00
f3d3c0ebb5 feat: new looks for the Race Menu Ward, Contract Bank and Bone Servant tables
Recolour and kitbash from vanilla parts, no new assets. PieceLook copies
materials before tinting so vanilla pieces keep their colours. ModelBorrow
gains activeOnly, which drops hidden snow, fire and broken meshes before
a borrowed piece is measured.
2026-10-28 12:40:33 +01:00
f8e0d13029 Merge branch 'localisation' into localisation-turkish 2026-10-27 19:36:22 +01:00
cb29f54a28 chore(release): v1.6.2 - race eyes and controller fixes
Version 1.6.2 in the manifests and PluginVersion. README: the New in
v1.6.2 block and the changelog, crediting lexsonn's reports; the Aswid
eyes, Alfar levitation and Geisli lines follow the changes.
2026-10-27 19:36:02 +01:00
db9aac2bf6 fix: Draugh Ashlands meats, rebindable flight keys, Geisli on gamepad
Draugh: add AsksvinMeat and BoneMawSerpentMeat to the shared raw-to-cooked
table; the Aswid blood refinery no longer adds them on its own copy.

DirectedFlight (drake, bat): read ZInput Forward/Backward/Run instead of
raw W, S and Shift, so keys rebound in the settings work.

Geisli: the pad has no free button in vanilla's Classic layout, so the
beam is held on the pad's secondary attack, bare-handed or in the
Archon form, as Skadi's Cold Spell does. The unarmed kick is swallowed
while it fires. RaceInput.EmptyHanded is shared with Skadi. Compendium
text mentions the pad in English, Italian and Russian.
2026-10-27 19:33:17 +01:00
b9ec452e72 fix: Draugh eats Bjorn and Volture meat, Alfar levitation on gamepad
Draugh: add BjornMeat -> CookedBjornMeat to the raw-to-cooked table and
correct VoltureMeat's cooked name (RoastedVoltureMeat does not exist,
CookedVoltureMeat does), so neither raw meat got an EdibleUncooked_ item.
Names checked against the SoftRef manifests.

Alfar: ZInput "Jump" is the keyboard binding only. Read "JoyJump" and
"JoyCrouch" too, as PlayerController does, for levitation and the
Archon's climb and descent.

Reported by lexsonn.
2026-10-27 19:25:03 +01:00
5b3b2ac88d refactor(eyes): bake the tuned eye corrections in, drop the sliders
The Eyes Position sections were a tuning tool. Their per-body, per-eye values
from playtest now live in RaceEyeTuning as constants, so every player gets
the tuned faces and Configuration Manager loses four sections. The Aswid -
Eyes section stays for now.
2026-10-27 17:46:36 +01:00
f7a4494b39 feat(eyes): male per-eye defaults from playtest
Male Aswid, Alfar and Dvergar eye values dialled in on screen become the
defaults of their Eyes Position sections, so male faces no longer start from
the untuned code placement.
2026-10-27 17:44:49 +01:00
06b7fc165c feat(eyes): Dvergar female right-eye defaults from playtest 2026-10-27 16:17:03 +01:00
a214a604e1 feat(eyes): Aswid and Alfar female per-eye defaults from playtest 2026-10-27 16:16:46 +01:00
132d7e034f feat(eyes): per-eye sliders, Aswid female defaults from playtest
Each Eyes Position section now has a set per body and per eye (the
character's own left and right), because the face is not symmetric enough for
one set to fit both eyes. The Aswid female defaults are the per-eye values
dialled in on screen; Alfar and Dvergar copy their female values to both eyes.
The old shared keys are dropped: they only ever existed in test builds.
2026-10-27 16:03:24 +01:00
ffba40650e fix(aswid): eye position sliders rotate on the face's axes
The Eyes Position rotation was added to the Aswid's own twist, which works on
the head bone's raw axes: bone X points out of the face and bone Z sideways,
so Rotation X rolled the eyes and the mirrored Rotation Z tipped one eye up
and the other down. The slider rotation is now conjugated by the face frame,
so X tips, Y turns toward the temple and Z raises the outer corner on both
eyes alike. The female rotation defaults go back to 0, since the old numbers
meant other axes.
2026-10-27 15:40:52 +01:00
20c12724fd feat(eyes): female eye defaults from playtest
The female slider values dialled in on screen for the Dvergar, Alfar and Aswid
become the defaults of their Eyes Position sections, so a fresh install lands
on the tuned faces. The Sverm keeps zeros: its helmet hides the eyes.
2026-10-27 15:38:52 +01:00
8b2b5180ed feat(eyes): per-race eye position sliders in Configuration Manager
One 'Eyes Position - <race>' section each for the Alfar, Aswid, Dvergar and
Sverm, with a female and a male set: forward, height, separation and size,
plus rotation X/Y/Z for the Alfar and Aswid. All are deltas on the computed
placement (0 and size 1 change nothing), read live, and left local by
ConfigSync because they only change how this client draws faces.
2026-10-27 15:21:19 +01:00
a7e9996441 fix(eyes): lower female eyes further, push Alfar/Dvergar out, enlarge Aswid points
Playtest on female characters: every race's eyes still sat about an eye-height
above the painted ones. Female height shift goes from -6 to -14 mm. Alfar and
Dvergar centres move 4 mm forward out of the face, and the Aswid socket goes
from 0.5 to 0.75 of the borrowed size so it covers the painted eye.
2026-10-27 15:15:10 +01:00
026def2fde fix(eyes): female face placement, smaller Dvergar/Aswid eyes, grey Alfar eyes
The female body maps the painted eyes about 6 mm lower and a quarter closer
together than the male one (read from bodymale/bodyfem and the skin UVs), so
every race's male-tuned eyes sat on the female brow. PlayerFace moves them for
the Dvergar, Aswid, Sverm and Alfar.

Dvergar eyes shrink to an 18 mm radius. The Aswid's borrowed sockets are
halved before the config multiplier and the smoke is off by default.

Alfar eyes become slanted, wrapped black almonds with a wet sheen. They are
placed in fixed head-local units: the live lossyScale under the non-uniform
Alfar body drifted as the head turned, and the 0.5 s cosmetic pass made the
eyes trail the face.
2026-10-27 15:01:44 +01:00
35fbc1ede5 Merge branch 'localisation' into localisation-turkish 2026-10-26 16:09:09 +01:00
a927a6d4b3 chore(release): v1.6.1 - the Aswid rebalance
Version 1.6.1 in the manifests and PluginVersion. README: the New in
v1.6.1 block and the changelog, crediting the Discord reports.
2026-10-26 16:08:55 +01:00
1051324b56 chore: drop the stale README copies in JotunnModStub
The root README is the one players get: package.ps1 and nexus-readme.py
read it. JotunnModStub/README.md and Package/README.md had drifted for
versions, and edits kept landing in them by mistake. Both are gone. The
csproj links the root README, the publish scripts copy it into Package/
at release, and that generated copy is ignored.
2026-10-26 16:04:26 +01:00
c76341af0d feat(aswid): running water covers rivers and lakes; sway on boats
Open water now means any water: swimming in it, or flying over a metre
or more of it, sea, river or lake. Standing on anything solid stays safe,
so docks, bridges and wading do not count. On a boat there is still no
burn or drain, but the camera keeps swaying. 'Ocean Only' restores the
sea-only behaviour, and the settings say Open Water instead of Open Sea.

Also rewrites the README's per-boss Aswid section from the code: it
listed stats, unlocks and an aura that no longer exist.
2026-10-26 15:49:05 +01:00
a00db24ebd fix(aswid): name the food in the full-stomach devour message
$msg_nomore carries a $1 for the food's name, and the devour sent it
bare, so players read "can't eat more $1". Filled in the same way
vanilla's CanEat and the Trol do.
2026-10-26 15:30:01 +01:00
5c41d80cae feat(aswid): running water weakness and a seasick camera
Swimming costs double stamina, scaled on vanilla's own swim charge so
its drowning check does the rest at high settings. Over deep water in
the Ocean, swimming or flying, the Aswid loses health and stamina each
second; a boat protects. A gentle camera roll plays while the sea hurts,
kept local through ConfigSync so a server cannot force it on anyone.
2026-10-26 15:26:25 +01:00
9149d3f0b5 feat(aswid): sunlight, fire and pierce weaknesses
Each has its own switch under 'Aswid - Weaknesses'. Sunlight: by day
under open sky, slower regen and movement and a slow burn that stops at
30% health; roofs, dungeons, Swamp, Mistlands, night and Eclipse shield
you. Fire +25% until Fader, pierce +20%; both applied after resistances
and armor, so meads still help and Mist Form stays pierce-immune.
2026-10-26 15:12:05 +01:00
77cdc67e97 feat(aswid): bat flies on the Skadi's directed flight
The bat flew on vanilla's debug-fly flag: 50 m/s, free, blind to carry
weight, and invisible to monsters until six patches lied about the flag.
It now flies on m_flying with the drake's controls, moved out of
SkadiPatches into a shared DirectedFlight core that both forms feed
their own numbers into. Powered flight and the sprint cost stamina; out
of stamina the bat glides. Encumbered flight costs 15% more, or is
blocked with 'While Encumbered'. Optional duration and cooldown, off by
default. The aggro/damage patches, the debug-fly speed patch and their
three settings are removed; the drake's behaviour is unchanged.
2026-10-26 14:26:42 +01:00
824ddd8956 feat(aswid): Vampiric Aura is off in bat form until The Queen
A bat could glide over enemies that cannot reach it and drain them the
whole way. The aura now stays silent in bat form until the configurable
unlock state (7, The Queen), or always if 'Active In Bat Form' is on.
Also corrects the README's aura and Mist Form lines, which still
described the old block-to-channel aura and a weakness the code lacks.
2026-10-26 14:20:10 +01:00