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>
Queen/Fader-tier Skeletons were supposed to raise a tamed ally from every
kill, but nothing ever spawned. Several independent bugs stacked up:
- Kill attribution failed whenever the death blow was a poison DOT tick
(SE_Poison builds its own attacker-less HitData every second, and
Character.ApplyDamage overwrites m_lastHit on every one of those ticks).
Since PoisonAttacks bakes bonus poison onto every Skeleton hit from
Bonemass on, this was the common case, not an edge case. Character_Damage_Patch
now tracks recent player hits per ZDOID as a fallback (RecentSkeletonHits),
the same pattern Aswid's own life-drain-kill check already uses.
- SummonPrefabName pointed at "Skeleton_friendly", which isn't a real
prefab (confirmed against the live ZNetScene registry). Reuses the
Bound Bone Pile's own SkeletonThrall_Melee instead - tamed, loot-stripped,
forced-melee, and already proven to work.
- The rise VFX names ("vfx_skeleton_spawn", "vfx_bloodmagic_aoe") were
guesses that never existed either; fx_summon_skeleton_spawn is the real
one. Same fix applied to the pre-existing Auto-Resurrect effect, which
had the identical wrong names.
- The actual "climbing out of the ground" motion is a separate Animator
bool ("wakeup") set via ZSyncAnimation - the exact call vanilla's own
CreatureSpawner makes. Without it the model was simply active from
frame one, VFX playing around a skeleton that was already standing.
- Vanilla skeletons carry no Tameable component, which spammed "is tamed
but missing tameable or monster AI script!" every time a raised one
landed a hit. Same fix Fenrir already uses for the Ulv and Fenring:
copy one in from the vanilla Wolf, done once at prefab registration so
it also quietly fixes the Bound Bone Pile's own thralls.
- Added RaisedThrall.SetExpiry(), a station-independent hard lifespan -
these skeletons are never bound to a pile, so the existing anchor/wither
pair had nothing to key off. Summoned skeletons now wither 2 minutes
after being raised.
Also adds a permanent `listprefabs <substring>` debug console command -
queries the live ZNetScene registry directly, which is how the wrong
prefab/VFX names above were actually confirmed rather than guessed.
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>