various fixes + new custom class shadowmancer
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user