Skip to content

Commit

Permalink
got too silly
Browse files Browse the repository at this point in the history
  • Loading branch information
Govorunb committed Jun 2, 2024
1 parent fade2c4 commit c549b98
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion SCHIZO/Events/ErmfishDefenseForce/ErmfishDefenseForce.cs
Original file line number Diff line number Diff line change
Expand Up @@ -161,14 +161,14 @@ private IEnumerator SpawnDefenderGroup(Defender defender)
{
if (defender is null)
yield break;
SpawnQueued = true;
if (defender.maxGroupSize == 0)
{
ErrorMessage.AddMessage($"delopver forgor to set group size on {defender.ClassId} everybody point and laugh");
yield break;
}
int willSpawn = Random.RandomRangeInt(1, defender.maxGroupSize);
if (debugSpawns) LOGGER.LogDebug($"(EDF) spawning {willSpawn} {defender.ClassId}");
SpawnQueued = true;
TaskResult<GameObject> prefabTask = new();
yield return defender.GetPrefab(prefabTask);
GameObject prefab = prefabTask.Get();
Expand Down

0 comments on commit c549b98

Please sign in to comment.