feat(trenta): grow a crown of branches, and fix(draugh): let everyone see the rot

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.
This commit is contained in:
kanym 2026-08-05 13:40:09 +02:00
commit 67e445014f
7 changed files with 345 additions and 70 deletions

View file

@ -53,7 +53,7 @@ This mod currently introduces 8 custom races:
- **Runes**: In the late game, spend eitr to read the stone around you or to load a single devastating blow.
### 9. Trenta
- **Tree-Born**: Kin to root and leaf. Your skin is green, you eat what grows, and every meal lasts twice as long.
- **Tree-Born**: Kin to root and leaf. Your skin is green, a crown of branches grows from your head, you eat what grows, and every meal lasts twice as long.
- **Photosynthesis**: Stand still in daylight, out from under a roof, and you put down roots - healing steadily and standing up Rested.
- **Awakened Seeds**: Once Eikthyr falls, every seed, cone and acorn wakes up. Eat one where you stand and it becomes the best dish its biome has to offer.
- **The Forest Does Not See You**: Greylings, greydwarves, fulings, trolls, leeches and deathsquitos never treat you as an enemy.
@ -143,7 +143,7 @@ seconds, and their cooldown, as a Moder trophy icon beside the minimap.
- **Fader**: 35% Lifesteal, Max 5 Summons, +275 Max Health.
### Trenta Progression
- **Base (No Bosses)**: Tree-Born. Green skin, a diet of what grows, and every food lasts twice as long. Photosynthesis - stand motionless in daylight and out from under a roof for 10 seconds to put down roots, healing 10% of max health a second for 8 seconds and standing up Rested for 5 minutes (+1 minute per boss already defeated). Greylings, greydwarves, fulings, trolls, leeches and deathsquitos never treat you as an enemy.
- **Base (No Bosses)**: Tree-Born. Green skin, a crown of branches on your head, a diet of what grows, and every food lasts twice as long. Photosynthesis - stand motionless in daylight and out from under a roof for 10 seconds to put down roots, healing 10% of max health a second for 8 seconds and standing up Rested for 5 minutes (+1 minute per boss already defeated). Greylings, greydwarves, fulings, trolls, leeches and deathsquitos never treat you as an enemy.
- **Eikthyr**: Awakened Seeds - every seed, cone, acorn and self-seeding mushroom wakes up. Eating one on the spot consumes it and grants the strongest health or eitr dish of the biome it comes from.
- **The Elder**: Purple Rain ('G' Key) - a spray of toxic pollen over 8m that heals everything that does not fight you for 40 and poisons everything that does for 40. 20 second cooldown.
- **Bonemass**: Swimming costs no stamina, and neither Poison nor Wet can touch you any more.