fix(skeleton): rise on resurrect, truce for bound troops, pile and sentry on floors
The Yagluth auto-resurrect now plays the crypt rise. The player rig has no rise state, so the body is hidden and the skeleton model is worn for the length of the clip with "wakeup" set; the start time goes on the ZDO so other clients play it too. The player takes no damage and does not move until it is out. Wild faction mobs left the player alone but attacked the player's thralls, which are tamed and so in the Players faction. IsEnemy now gives a thrall the same truce through its m_commandingRace, broken by a grudge against any player. Covers every race with thralls. The Bound Bone Pile and the Bound Sentry seed drop m_groundPiece and m_groundOnly, so both can be built on floors and foundations.
This commit is contained in:
parent
02c640e1d9
commit
1848725f2a
6 changed files with 324 additions and 4 deletions
|
|
@ -613,6 +613,9 @@ namespace RacesOfValheim
|
|||
int state = BossProgressionManager.GetCurrentProgressionState();
|
||||
var rules = SkeletonProgression.GetRules(state);
|
||||
|
||||
// Half in the ground: nothing lands on a Skeleton while it climbs back out.
|
||||
if (__instance == Player.m_localPlayer && SkeletonRise.IsRising(Player.m_localPlayer)) return false;
|
||||
|
||||
// Auto-Resurrect check
|
||||
if (__instance == Player.m_localPlayer && SkeletonRace.IsSkeleton() && rules.AutoResurrect)
|
||||
{
|
||||
|
|
@ -633,6 +636,9 @@ namespace RacesOfValheim
|
|||
UnityEngine.Object.Instantiate(vfx, Player.m_localPlayer.transform.position, Quaternion.identity);
|
||||
}
|
||||
|
||||
// The body climbs out of the ground the way a crypt skeleton does.
|
||||
SkeletonRise.Begin(Player.m_localPlayer);
|
||||
|
||||
Player.m_localPlayer.Message(MessageHud.MessageType.Center, ModText.Get("rov_msg_skeleton_have_been_resurrected_by_dark"));
|
||||
return false; // Skip applying this lethal damage
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue