Commit graph

438 commits

Author SHA1 Message Date
a085570ad9 Merge branch 'fix-eye-frame-bindpose' into main 2026-08-12 17:33:54 +02:00
22d547d7f6 Merge branch 'fix-fenrir-claws' into main 2026-08-12 17:33:54 +02:00
3f09c7cf3f fix(visuals): measure the skull's facing from the bind pose, for all three clawed races
The eye frame was read from the head bone's pose ON THE FRAME THE EYES
WERE BUILT, snapped to the nearest axis, then cached for the life of the
eyes. Catch the head a few degrees into a turn and the snap picks the
neighbouring axis, and the pair stays wrong until something rebuilds it.

Each race met this separately and each added the same guard - do not
build while attached, mid-attack or asleep - which caught the loud cases
and left the quiet one: a race change rebuilds while the rig is still
settling, which is none of those three. That is why resetting into a
race could break the placement while logging out and back in silently
fixed it. The logout was never a fix, only a rebuild at a calmer moment,
and no fourth guard condition would have closed it - the read itself had
to stop depending on when it happens.

sharedMesh.bindposes[headBone] is the rig as authored: no animation in
it, no timing, the same answer on frame one and frame ten thousand. A
rebuild is now deterministic and a bad moment cannot exist. Falls back to
the live read, warning once, on a rig that carries no bind pose.

Lives in one shared RigBindPose rather than in three copies. The three
eye implementations are separate files by design - they differ in what
they hang and how it is coloured - but this is the one piece of maths
where a divergence would be a bug in whichever copy got fixed second,
and it had already been fixed twice. The three now-dead private
SnapToAxis copies go with it.

Also updates the Aswid eye defaults to the values dialled in on screen:
forward 0.013, height 0.004, yaw 22.068.
2026-08-12 17:33:46 +02:00
6db21b9d96 fix(fenrir): register the claw set from a live object, not a half-built singleton
The Cursed Claws were never issued because FenrirClaws was never in the
roster. RaceClawSet's static constructor registers the two singletons by
reading AswidClaws.Instance and FenrirClaws.Instance - but constructing
a derived type runs the base type's static constructor first, so the
race that triggers it is still mid-construction when its own Instance is
read, and reads null. Register(null) returns silently and that race is
left out for the rest of the session: For() never matches it, Maintain
never runs, no claws, no claw damage.

It was the Fenrir and not the Aswid only because FenrirRace runs first in
CreateAllModAssets - whichever race gets there first is the one that is
half-built.

EnsureRegistered now calls Register(this) before anything else. `this` is
a live object by definition, so there is nothing left to be null, and
every race puts itself in the roster at startup. The static constructor
stays as a harmless backstop with the trap written down next to it.

Damage scaling checked while here and needs no change: all three races
run the same SvermClaws.GetReferenceDamage/GetDamagePercent pair over the
one shared per-state table, so the same tier is worth the same damage.
2026-08-12 17:05:58 +02:00
7668a0a996 Merge branch 'fix-eye-position-glitch' into main 2026-08-12 16:29:01 +02:00
ae31ce0a8d Merge branch 'fix-stuck-race-claws' into main 2026-08-12 16:28:54 +02:00
cb69d3af3e fix(aswid): land the borrowed eye sockets on the face, and make the sliders able to say so
Scale is inherited, so source.localScale could not come across either:
it is authored under a parent that puts the object at 0.02 lossy scale,
and re-parenting it under a head bone at ~95 drew the mesh some 4750x
too big - an eye the size of the character, centred near the face,
therefore mostly inside the skull with the corners reading as flat
rectangles. "Wrong place" and "blocky" were one scale error seen from
two angles. Carries lossyScale (the size the game actually draws it at
on a real skeleton) over the new parent's scale instead.

The remaining offset would not compute cleanly from either rig, so it
was dialled in on screen and written down as the new defaults rather
than guessed at again - size 1.1, forward 0.01, separation 0.007, yaw
24.664, roll -180 (the socket arrives upside down on a player's head
bone; that is the half turn that rights it).

The sliders that found those numbers could not have: they were bound at
+/-0.1 m and 0.1-5x, nowhere near far enough to pull the pair out of the
skull, so they read as doing nothing at all. Widened to +/-0.5 m and
0.01-50x.

Eye Rotation Y is now mirrored - the left eye takes the negative - so
the pair toes in or out together instead of both turning off the same
shoulder. X and Z stay shared on purpose: both eyes pitching up is a
face looking up, where mirroring pitch or roll would cross them.

Confirmed correct in game.
2026-08-12 16:25:51 +02:00
982e88fa57 fix(aswid): stop borrowing the Skeleton's eye position, only its mesh
player.transform (previous commit) fixed the frame used for the
shift/rotation config offsets, but that code path is inert at every
offset's default of 0 - so it never touched the actual bug. The real
placement came from source.localPosition, copied straight off the
Skeleton creature's eye_l/eye_r and reinterpreted under the player's
own head bone. That only works if the two rigs agree on scale, and
they do not: the Skeleton's rig measured 0.02 lossy scale at the eye
bone against this player rig's ~95-100, with nothing tying one
prefab's authored scale to another's. Taken as-is it put the eyes
roughly 0.2 world units off the head bone - visibly floating above
the face, on every single build, matching the "never fixes, not even
after logout" report exactly.

Eyes are now placed from the player's own measured frame and three
fixed constants (BaseEyeForward/Height/Separation) - the pre-rewrite
sphere code's own numbers, already tuned and playtested on this exact
rig. Still borrows eye_l/eye_r for their mesh and material (the actual
point of the rewrite - real lit sockets instead of painted spheres),
just not their transform.

Confirmed against real numbers from in-game diagnostic logging rather
than guessed a third time; that logging has been removed.
2026-08-12 15:35:14 +02:00
028c34be3c fix(visuals): stop Aswid and Sverm eyes measuring their facing off the wrong transform
Both files built their eye holder's forward/up axes from headBone.root
- the top of whatever hierarchy the head bone (from
VisEquipment.m_bodyModel's own bone array) happens to sit in. That
does not reliably resolve back to the player, so the measurement came
out wrong on every single build rather than on an occasional
bad-timing one - which is why resetting the race or logging out never
fixed it for Aswid, only starting a fresh build at the same wrong
reference every time.

DvergarVisuals.BuildEyes already reads player.transform directly and
does not have this problem - its own eye glitches are the ordinary
bad-pose-timing kind the attach/attack/sleep guard mostly covers,
which is why relogging (a fresh, differently-timed build) usually
fixes it. AswidVisuals and SvermVisuals now do the same.

Also gives SvermVisuals.ApplyEyes the same attach/attack/sleep guard
Aswid and Dvergar already had before building fresh, which it was
missing entirely.
2026-08-12 13:44:59 +02:00
f51afd3a80 fix(claws): stop permanent claws from getting stuck in inventory after a race switch
Aswid's Claws of the Beast, Fenrir's Cursed Claws and Sverm's Vilebone
Maulclaws are all m_questItem so the game refuses to drop, trade or
tombstone them - the mod's way of saying "these are part of your
body". But none of the code enforcing that ever checked whether the
player was STILL that race, and nothing removed the item when they
switched away, so a player who was ever Fenrir or Sverm and then
became anything else was left holding claws with no way to shed them:
not by dying, not by breaking them, not by relogging.

- RaceClaws.cs / SvermClawSlot.cs: the SetupDragItem prefixes that
  block moving/dropping the claws now also check that the item still
  belongs to the player's CURRENT race, so an already-mismatched pair
  becomes draggable again immediately.
- RaceItemCleanup.cs (new): central purge that unequips and removes
  any claws (plus the disabled Aswid spectral claw) that don't match
  the player's current race.
- Wired into ResetRace() - the Race Menu Ward's actual reset path -
  so a reset now clears every race-specific status effect (several
  cooldown SEs were missing entirely: Dvergar's Runic Ping/Overcharge,
  Trenta's Purple Rain/Portal, all of Sverm's) as well as the items.
- Also wired into PlayerSpawnPatch so an ALREADY-stuck save heals
  itself on next login, without the player needing to find the Ward.
2026-08-12 13:04:40 +02:00
a772164668 chore(release): v1.4.2 - Sverm, War Vulture, Crystal Golem, Contract Bank & Rune Barrel, Pack Trough
Replaces the README (the war-vulture branch's own README edits were
incomplete/inaccurate) and bumps the version number across both
manifests and the plugin.
2026-08-11 20:50:37 +02:00
58f70f1a4c Merge branch 'war-vulture' into main
Brings in the Sverm race, the War Vulture flying mount, and Skadi's
Crystal Golem (replacing the Hidden Hollow). Resolved conflicts:
AswidVisuals.cs took war-vulture's skeleton-eye-light rewrite with
main's attach/attack/sleep timing guard re-applied on top, and
RaceCompendium.cs kept main's rewritten race entries while folding in
war-vulture's Sverm/War Vulture pages and the new Claws paragraphs for
Aswid and Fenrir.
2026-08-11 20:35:48 +02:00
Ferdinando
1c4b20bb06 warvulture 2026-08-11 19:29:58 +02:00
Ferdinando
1d66b00374 warvulture 2026-08-11 16:30:20 +02:00
Ferdinando
3095198539 docs(readme): add the Sverm, the War Vulture and the v1.5.0 changelog
The Sverm goes in as the tenth race, with its own progression block and a
description of the colony. The War Vulture gets a section of its own,
including the fact that it has no recipe yet and is console-spawned while
the flight is being proven - documenting it as craftable would have been
false.

The v1.5.0 changelog covers everything landed since v1.4.0: the race, the
mount, and the per-race station chains for all nine other races, plus the
merchant catalogue entries that gate them, the piece spacing rules and the
ObjectDB duplicate-item crash fix.

Skadis Nokkel is not mentioned anywhere: it never shipped, so its removal
is not a changelog entry.

The version is deliberately NOT bumped - manifest.json and PluginVersion
still read 1.4.0. More bugfixes are due before the release.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-08-11 07:55:33 +02:00
Ferdinando
0294d6a71b feat(skadi): remove Skadis Nokkel and the hidden hollow
The staff opened a pair of client-side portals into a claimed troll cave,
and that whole mechanism broke in multiplayer. The two Harmony patches it
needed were the sharpest edge: SkadiNokkelCastPatch prefixed
Attack.OnAttackTrigger and SkadiNokkelFreeCastPatch postfixed the three
cost getters, so every attack by every character in the game went through
mod code before being filtered.

Nothing is put in its place, on purpose. The Crystal Golem is the Skadi's
station now and the balance was already settled around it, and the part of
the hollow that was actually worth having - Skadi and Trol building inside
any troll cave - lives in RaceCaveBuilding and is untouched.

Removed: SkadiNokkel.cs, SkadiHollow.cs, SkadiHollowPortal.cs, the
"Skadi - Hidden Hollow" config section, the HOLLOW_COOLDOWN_SE status
effect, the F8 dump, and the "Nothing takes root here" rule in
PieceDensityLimit, which existed only for the hollow.

Kept: SkadiIce, which the staff's file happened to host but the Frost
Heart and the golem both use - moved to its own file. Greater Frost Heart
stays on sale from the Fenring_Cultist at 1500 as it was.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-08-11 07:55:23 +02:00
Ferdinando
e9f41a86e3 warvulture 2026-08-09 21:54:56 +02:00
66cea69d33 fix(compendium): rewrite every race entry against live game code
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.
2026-08-09 18:31:53 +02:00
10e55aff3e fix(fenrir): source the taunt howl from the real creature's alert bark
sfx_wolf_howl/sfx_wolf_alert/sfx_fenring_idle never resolved to anything
playable - wolves carry no standalone howl prefab. Reads
BaseAI.m_alertedEffects off the live Fenring/Fenring_Cultist prefabs
instead, the same effect the creature itself plays going on alert.

Still reported silent in testing; leaving it in as a step in the right
direction rather than reverting.
2026-08-09 18:31:33 +02:00
f22accfb7c Merge branch 'feat-aswid-aura-toggle' into main
I now toggles the Vampiric Aura on/off. Devour's own toggle moves off
I, stays on by default, and its keybind is left unbound rather than
removed.
2026-08-09 17:13:06 +02:00
1b2555c5ee Merge branch 'fix-aswid-dvergar-eye-placement' into main
Defers the one-time head-orientation measurement for Aswid/Dvergar
glow eyes while the player is attached, attached to a ship, mid-attack
or asleep, so a bad snapshot no longer leaves the eyes stuck behind
the skull. Also shrinks the Aswid's eyes by 10%.
2026-08-09 17:12:59 +02:00
4610c30279 Merge branch 'fix-trol-cave-workbench-destruction' into main
Same-faction mobs no longer smash player pieces - the truce previously
only covered combat hostility, not a mob's separate m_attackPlayerObjects
targeting.
2026-08-09 17:12:52 +02:00
9e4778def7 feat(aswid): let players toggle the Vampiric Aura, move Devour off I
The Vampiric Aura had no on/off switch - it always drains/executes
nearby targets in every form. I now toggles it (AswidRace.AuraEnabled,
on by default), matching the existing toggle pattern already used for
Devour.

Devour's own toggle moves off I to make room and stays on by default;
its keybind is unbound (KeyCode.None) rather than removed outright, so
it remains a real Configuration Manager entry for anyone who wants to
bind their own key to it.
2026-08-09 17:11:25 +02:00
26bfd339e8 fix(visuals): stop the glow eyes from occasionally landing behind the skull
AswidVisuals/DvergarVisuals measure which way the head bone faces
exactly once, the first time BuildEyes runs for a given character, by
reading the bone's live pose at that instant and snapping it to the
nearest axis - then cache the result for as long as the eyes exist.
Taken while sitting, attached, mid-attack or asleep, the head can be
turned away from the body's own forward, and the snap picks whichever
axis is closest to that pose - landing the eyes behind the skull
instead of on the face, and staying wrong for the rest of the session.

ApplyEyes now defers the first build while the player is attached,
attached to a ship, mid-attack or asleep, since it runs again on every
subsequent UpdateColors anyway. Reduces the obvious bad-timing cases;
does not by itself rule out a mistimed read during ordinary idle
animation, which would need the measurement moved to the model's bind
pose (animation-independent) to close out completely.

Also shrinks the Aswid's eyes by 10% (EyeSize 0.062 -> 0.0558), per
request.

Confirmed improved by playtest.
2026-08-09 16:48:35 +02:00
fac6e3986c fix(factions): stop same-faction mobs from smashing player structures
The truce only ever patched BaseAI.IsEnemy, but MonsterAI.UpdateTarget
picks a structure to attack (m_targetStatic) through a completely
separate gate - m_attackPlayerObjects, a flag baked into the prefab
(true for Troll among others) - and never calls IsEnemy at all. A Trol
player, exempt from a cave's resident Troll in combat, could still
watch it flatten a workbench built moments earlier in its own cave.

FactionStaticTargetPatch postfixes UpdateTarget and vetoes the pick if
a same-faction player is within 20 m (matching FindRandomStaticTarget's
own 10 m search radius with room to spare), rather than trying to
intercept the two private target-selection methods themselves.

Confirmed fixed by build+playtest.
2026-08-09 16:46:23 +02:00
4c3da61c3c Merge branch 'fix-skadi-fader-moder-attack-overlap' into main
Two fixes:
- abilities no longer stop responding while a movement key is held
  (BepInEx KeyboardShortcut.IsDown blocks on any other held key);
  affects every race, not just Skadi.
- the dragon breath and the model's own breath VFX now travel the same
  way instead of drifting apart.
2026-08-09 12:36:41 +02:00
3067d6f6e2 Merge branch 'fix-trol-log-weapon-inventory-crash' into main
Stops the Trol log weapon's out-of-bounds inventory slot from crashing
InventoryGrid every frame (console spam, frame stall, corrupted icons),
and adds a safety net for saves that already carry the bad item.
2026-08-09 12:36:32 +02:00
5532842ebc fix(skadi): keep the dragon breath and its VFX pointing the same way
The ice breath and the model's own breath VFX could end up aimed in
completely different directions, most visibly on Fader where the VFX
is green poison and the divergence is obvious.

Two causes, both fixed here:

- Every one of the 60 projectiles re-read GetLookDir() inside the
  spawn loop, so over the ~3 s a breath lasts the ice tracked the
  crosshair live while the VFX - baked into the animation, always
  leaving the muzzle - stayed with the body.

- Character.UpdateRotation only steers the body by m_lookYaw when
  AlwaysRotateCamera() is true or the player is standing still;
  otherwise it faces m_moveDir. Running or strafing mid-breath turned
  the model towards the run while the projectiles kept going where the
  player aimed.

The breath now holds the body on the aim for its duration (a deadline
rather than a flag, so an interrupted coroutine cannot leave the body
pinned) and the projectiles come out along the body's forward, so the
two cannot separate: the mouse steers the head and the whole breath
follows it. Applied to Moder's ground breath as well, which had the
same shape.

Also replaces anim.SetTrigger with SetAttackTrigger, which warns when
a trigger name is not on the animator - Unity ignores those silently,
so a wrong name was indistinguishable from an animation not playing.
2026-08-09 12:33:54 +02:00
25795a05e9 fix(input): abilities no longer die while a movement key is held
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.
2026-08-09 12:33:41 +02:00
524b11e084 fix(trol): stop the log weapon's hidden slot from crashing InventoryGrid
TrolLogWeapon.GrabLog gave the picked-up log an out-of-bounds grid
position ((99, 99)) to keep it off the visible inventory grid.
InventoryGrid.UpdateGui maps every item to a cell with y * width + x
and no bounds check, so that position threw ArgumentOutOfRangeException
every frame the inventory screen was open - for the player holding it,
or anyone else who ever had it in their own pack or a chest. Visible
as endless console spam, a frame stall/freeze, and corrupted icons on
every other slot for the rest of that update.

Now uses Inventory.FindEmptySlot like every other picked-up item, so
it renders in a real slot with the normal equipped indicator.

Also adds InventoryGridSafetyPatch as a general safety net: any item
already sitting at an invalid grid position (existing saves from
before this fix, or one handed off through a chest) gets moved to a
real slot - or dropped if there's no room - instead of crashing the
grid the next time it renders.
2026-08-09 10:48:47 +02:00
a38d1ec4b7 Merge pull request 'feat(races): Skadi hollow chain, plus the pending Dvergar and Fenrir ones' (#18) from war-vulture into main
Reviewed-on: #18
2026-08-08 16:46:27 +02:00
Ferdinando
5c5b8c34d2 feat(races): Skadi hollow chain, plus the pending Dvergar and Fenrir ones
Three per-race item chains had accumulated uncommitted. They land
together because FactionMerchantCatalog.cs carries hunks from all
three and cannot be split without interactive staging.

Skadi (new this session):
- SkadiNokkel - "Skadis Nokkel", a StaffSkeleton clone recoloured to
  ice, stripped of its eitr and health costs and of the skeleton
  summon, opening an ice-blue portal to a troll cave the player
  claims as their own. Crafted at the forge after Moder from a
  1500-coin Greater Frost Heart, a DragonTear and a TrophySkeleton.
- SkadiFrostHeart - the bought leg of that recipe, sold by the
  Cultist bench.
- SkadiHollow / SkadiHollowPortal - claims one existing TrollCave02
  in the Black Forest, half a world radius out and south of the
  equator, and opens a linked local portal pair to it.
- RaceCaveBuilding - Skadi and Trol may build inside any troll cave.

Two facts worth keeping, both paid for the hard way:
- a troll cave counts as a DUNGEON, so the flag that refuses a piece
  there is the per-piece Piece.m_allowedInDungeons, not the
  per-location Location.m_noBuild. Player.m_placementStatus names the
  exact refusal reason and is now logged.
- Object.DestroyImmediate is forbidden inside an animation event
  callback, and a staff cast runs in one - it fails silently there.

Also carried in, from earlier sessions and unverified in game:
- Dvergar contract bank and barrel (DvergarBanco*, DvergarBotte*)
- Fenrir Ulvsblod trough (FenrirMangiatoia*)
- the Wolf -> Ulv merchant bench move, so tameable wolves stop
  answering the E key with a shop window

Status: compiles clean with no new warnings. The Skadi chain has NOT
been confirmed working in game - the most recent fix to the troll
cave detection is still untested.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-08-08 14:58:43 +02:00
4976ef66aa Aggiorna README.md 2026-08-07 19:44:46 +02:00
58ede47580 Aggiorna README.md 2026-08-07 19:43:42 +02:00
f8270bb3d2 Merge branch 'fix-objectdb-duplicate-item-crash' into main
Fixes the "already been added" ObjectDB crash on server join,
confirmed working.
2026-08-07 18:26:26 +02:00
570552c7d5 fix(objectdb): dedupe m_items by name hash before UpdateRegisters
Joining a server after v1.4.0 threw "An item with the same key has
already been added" in ObjectDB.UpdateRegisters and bounced the
player back to the start menu. Rather than guess the exact colliding
prefab offline, this strips any duplicate-hash entries from m_items
right before the vanilla rebuild runs and logs their names, so the
join no longer crashes and the log now names the actual offender.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-08-07 18:26:00 +02:00
4d3d790e2e Merge pull request 'race-chains-and-stations' (#17) from race-chains-and-stations into main
Reviewed-on: #17
2026-08-07 17:16:09 +02:00
f60b8d8f7d Merge branch 'main' into race-chains-and-stations
# Conflicts:
#	JotunnModStub/Aswid/AswidRace.cs
#	JotunnModStub/Factions/FactionHostilityPatch.cs
#	JotunnModStub/Factions/FactionMerchantCatalog.cs
#	JotunnModStub/Furling/FurlingPatches.cs
2026-08-07 17:15:10 +02:00
Ferdinando
91eb5ca8e5 feat(factions): merchant catalog entries and hostility rules
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-08-07 17:02:48 +02:00
Ferdinando
e8a0bff0a6 feat(furling): the five crops
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-08-07 17:02:48 +02:00
Ferdinando
df7ce7c893 feat(trol): war totem and its mercenary store
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-08-07 17:02:48 +02:00
Ferdinando
1a741978bf feat(trenta): composter and heartwood grove
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-08-07 17:02:47 +02:00
Ferdinando
b67a324cb8 feat(skeleton): bound bone pile and bound sentry
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-08-07 17:02:35 +02:00
Ferdinando
96bc7796f9 feat(draugh): body pile spawner
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-08-07 17:02:34 +02:00
Ferdinando
fae82162be feat(aswid): blood refinery and blood potions
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-08-07 17:02:34 +02:00
Ferdinando
b1f5da2249 feat: shared foundations for stations and servants
RaisedThrall is the common servant base (leash, wither timer,
follow command, anchor), used by Draugh, Skeleton and Trol.
ModelBorrow lends a vanilla prefab's look without its behaviour.
PieceDensityLimit caps how many of a piece fit in an area.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-08-07 17:02:34 +02:00
f4eaf9e53c fix(aswid): use the real Goblin prefab ids for Fuling-family food nutrition
Same root cause as the Factions fix (9287bd0): mobToTrophyMap keyed the
Goblin family by "Fuling"/"FulingShaman"/"FulingBerserker" - none of which
are real prefab ids - instead of "Goblin"/"GoblinShaman"/"GoblinBrute".

The trophy icon lookup was unaffected (it already used the correct
TrophyGoblin/TrophyGoblinShaman/TrophyGoblinBrute ids on the dictionary's
value side), but the food-tuning block gated on
PrefabManager.Cache.GetPrefab<GameObject>(mobName) succeeding silently
never ran for any of the three - so their food fell back to generic
CookedMeat nutrition instead of a Goblin-scaled amount, and never got the
20-minute humanoid-prey burn time the "StartsWith Fuling" check was meant
to grant them. Renamed the check to "StartsWith Goblin" to match.

Verified in-game.
2026-08-07 11:48:31 +02:00
9287bd060d fix(factions): use the real 'Goblin' prefab id, not the display name 'Fuling'
FactionHostilityPatch's NeraForestaMobs set and FactionMerchantCatalog's
Shops dictionary both keyed the base Goblin by its in-game display name,
"Fuling", instead of its actual prefab id. Confirmed against the game's own
asset paths (Assets/Characters/Goblin/, TrophyGoblin.prefab) rather than
assumption - "Fuling" appears nowhere as a real prefab, only as flavor text
(kept as-is on the shop's own DisplayName, which is just UI label text).

Neither peace nor merchant status ever actually applied to a plain Goblin
for any Black Forest race (Trenta, Trol, Furling) as a result - only the
GoblinBrute/GoblinShaman entries, which already used their real ids, worked.

Confirmed a related but separate bug while investigating, left alone per
request: AswidRace.cs's mobToTrophyMap also keys off "Fuling" and feeds it
into a live prefab lookup for food nutrition tuning - same wrong-id pattern,
milder failure mode (falls back to generic values rather than breaking
anything). Not fixed here.
2026-08-07 11:32:13 +02:00
78010c8fb0 docs: add Skeleton head-flame fix to the v1.4.0 changelog 2026-08-07 10:21:31 +02:00
fc6cd4f4d4 fix(skeleton): stop the burning skull's torch clone falling off
The head-flame VFX clones only the source torch's ParticleSystem subtree,
then stripped components with a blocklist (every MonoBehaviour, every
Collider) to leave a bare flame. The blocklist missed Rigidbody - not a
MonoBehaviour in Unity - so a torch whose fire-particle node carried one kept
being acted on by physics independently of the parent GameObject that tracks
the head each frame, and visibly fell away from the skull.

Switched to an allowlist: keep only Transform/ParticleSystem/
ParticleSystemRenderer/Light, destroy everything else on the clone. Can't
miss a component type this way, whatever it turns out to be next.
2026-08-07 10:13:00 +02:00