jpw1991 / chebs-necromancy

Cheb's Necromancy adds Necromancy to Valheim via craftable wands and structures. Minions will follow you, guard your base, and perform menial tasks.
The Unlicense
10 stars 4 forks source link

phylactery not reliably resurrecting users #243

Closed jpw1991 closed 7 months ago

jpw1991 commented 8 months ago

Description

I've had many reports of players simply dying rather than being resurrected. Usually this has some relationship to how far away from the phylactery the player is.

Hypothesis

The code responsible for resurrection happens on the pylon itself. I think when the player goes too far away from the phylactery, or the phylactery is never awakened because they logged in far away, its code never runs.

Fix

Move the code responsible for resurrection onto the player and the amount of fuel in the phylactery can be stored in their ZDO.

The code is already on the player. But the phylactery's Awake is where they get added to the static list and it may not be there unless the player has already visited their base during that session.