From e25d118287cb2e935ae2fdfd4fbe5d8fdcdc3261 Mon Sep 17 00:00:00 2001 From: Ader Alisma 01 Date: Sat, 11 Oct 2025 12:14:27 -0400 Subject: [PATCH] Start monster core --- Assets/Scripts/LevelConfig/WaveConfig.cs | 2 ++ Assets/Scripts/LevelConfig/WaveObserver.cs | 7 +++++++ 2 files changed, 9 insertions(+) diff --git a/Assets/Scripts/LevelConfig/WaveConfig.cs b/Assets/Scripts/LevelConfig/WaveConfig.cs index 41b9b6a..35ca7fa 100644 --- a/Assets/Scripts/LevelConfig/WaveConfig.cs +++ b/Assets/Scripts/LevelConfig/WaveConfig.cs @@ -5,6 +5,7 @@ public class GroupList { public List groupSpawn; public float triggerTime; + public bool dropsMonsterCore; } [CreateAssetMenu(menuName = "Gather And Defend/Levels/WaveConfig")] public class WaveConfig : ScriptableObject @@ -45,6 +46,7 @@ public class WaveConfig : ScriptableObject } } public float GameDuration { get { return _gameDuration; } } + /** * Returns the updated game interval after adjusting to enemies spawned at the start */ diff --git a/Assets/Scripts/LevelConfig/WaveObserver.cs b/Assets/Scripts/LevelConfig/WaveObserver.cs index 6434f7f..6f73972 100644 --- a/Assets/Scripts/LevelConfig/WaveObserver.cs +++ b/Assets/Scripts/LevelConfig/WaveObserver.cs @@ -13,6 +13,7 @@ public class WaveObserver : Singleton private List _copyConstantSpawn; private List _intervalTiming = new List(); private List> _copyGroupSpawn; //Contains count of enemies per group + private List _monsterCoreGroups; private WaveConfig _levelConfig; private int _spawnerTiming = 0; private int _currentGroupIndex = 0; @@ -51,6 +52,7 @@ public class WaveObserver : Singleton _copyGroupSpawn[index].Add(_levelConfig.NestedGroupSpawn[index].groupSpawn[nestedIndex].Count); } _groupSpawnTimers.Add(_levelConfig.NestedGroupSpawn[index].triggerTime); + _monsterCoreGroups.Add(_levelConfig.NestedGroupSpawn[index].dropsMonsterCore); } // Start game timer, at the end, player wins. @@ -262,4 +264,9 @@ public class WaveObserver : Singleton } } } + + private void ChooseMonsterCore(List currentGroup) + { + // Fetch the group's mosnter core bool attribute + } }