Сумка зомби: выброшенное из окна падает у зомби, а не у тела; кнопки переноса в рюкзак заблокированы, как у волка

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
AlexCube
2026-10-13 18:19:49 +03:00
co-authored by Claude Opus 5.5
parent 761d514849
commit 83c6be241d
+3 -2
View File
@@ -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;
}