refactor config handling

This commit is contained in:
2025-07-14 08:11:10 +02:00
parent d53d71c6d9
commit ccaf44d50b
6 changed files with 56 additions and 88 deletions
+3 -3
View File
@@ -151,11 +151,11 @@ public class SerpentsHandManager
// ReSharper disable once IteratorNeverReturns
}
public void SpawnSerpentWave()
public static void SpawnSerpentWave()
{
var state = (SerpentsHandState)CustomClasses.Instance.ClassManager.GetSpawnState(typeof(SerpentsHandConfig));
var serpentsHandConfig = _customClasses.SerpentsHandConfig;
var serpentsHandConfig = CustomClasses.Instance.ClassManager.GetConfig<SerpentsHandConfig>();
state.SetSpawned();
state.SetWillSpawn();
@@ -322,7 +322,7 @@ public class SpawnSerpentsCommand : ICommand
return false;
}
CustomClasses.Instance.SerpentsHandManager.SpawnSerpentWave();
SerpentsHandManager.SpawnSerpentWave();
response = "success";
return true;