various fixes + new custom class shadowmancer

This commit is contained in:
2025-07-12 20:18:02 +02:00
parent 0615f8aeea
commit 78fa56dce9
10 changed files with 356 additions and 10 deletions
+10 -2
View File
@@ -47,6 +47,12 @@ public class SerpentsHandManager
}
}
if (Warhead.IsDetonationInProgress || Warhead.IsDetonated)
{
hadItem = true;
state.Points += 1;
}
if (!hadItem) return;
ev.Player.SendBroadcast("You brought back the SCP items...", 5);
@@ -107,6 +113,8 @@ public class SerpentsHandManager
while (true)
{
yield return Timing.WaitForSeconds(1);
RoundSummary.singleton.ExtraTargets = Player.ReadyList.Count(IsSerpentsHand);
if (_customClasses.ClassManager.GetSpawnState(typeof(SerpentsHandConfig)) is not SerpentsHandState state) continue;
@@ -134,10 +142,10 @@ public class SerpentsHandManager
public sealed record SerpentsHandState: SpawnState
{
public bool HasSpawned => _hasSpawned || PanicDisable;
public bool HasSpawned => _hasSpawned || PanicDisable || Warhead.IsDetonated;
public float ExtraChance;
public int Points;
public bool WillSpawn => _willSpawn && !PanicDisable;
public bool WillSpawn => _willSpawn && !PanicDisable && !Warhead.IsDetonated;
private bool _hasSpawned;
private bool _willSpawn;