Сумка зомби: выброшенное из окна падает у зомби, а не у тела; кнопки переноса в рюкзак заблокированы, как у волка
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
761d514849
commit
83c6be241d
@@ -677,7 +677,7 @@ namespace NecromancerTome
|
||||
|
||||
public static bool Blocked(XUiController _c)
|
||||
{
|
||||
return WolfBag.WindowOpen && Possession.Active && _c?.GetParentByType<XUiC_BagContainer>() != null;
|
||||
return (WolfBag.WindowOpen || ZombieBag.WindowOpen) && Possession.Active && _c?.GetParentByType<XUiC_BagContainer>() != null;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -721,7 +721,8 @@ namespace NecromancerTome
|
||||
public static void Postfix(EntityPlayerLocal __instance, ref Vector3 __result)
|
||||
{
|
||||
EntityAlive wolf = Possession.Zombie;
|
||||
if (WolfBag.WindowOpen && Possession.Active && __instance == Possession.Player && wolf != null)
|
||||
// И из сумки одержимого зомби (тест 13.10: «выкидываю камень - на землю не падает» - падал у тела).
|
||||
if ((WolfBag.WindowOpen || ZombieBag.WindowOpen) && Possession.Active && __instance == Possession.Player && wolf != null)
|
||||
{
|
||||
__result = wolf.position + wolf.GetForwardVector() * 0.8f + Vector3.up * 0.5f;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user