Урна-логист: фильтр по 22 группам предметов в «Содержимом» (вместо образца); дух засыпает, когда игрок дальше 40 м

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
AlexCube
2026-10-16 20:40:04 +03:00
co-authored by Claude Opus 5.5
parent d8e7c8c66a
commit 0290a73477
11 changed files with 435 additions and 23 deletions
+12
View File
@@ -329,8 +329,20 @@ namespace NecromancerTome
}
}
float _nextSleepCheck;
bool _asleep;
void Update()
{
if (Time.time >= _nextSleepCheck)
{
_nextSleepCheck = Time.time + 0.5f;
_asleep = CinerariumGenie.PlayerFar(transform.position); // засыпание (16.10): огоньки стоят
}
if (_asleep)
{
return;
}
foreach (Thread th in _threads)
{
float len = Mathf.Max(0.5f, Vector3.Distance(th.A, th.B));