We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7d8d6f2 commit 6a848dfCopy full SHA for 6a848df
2 files changed
Classes/Events/EventDatabase.cs
@@ -6,6 +6,8 @@
6
/// </summary>
7
public class EventDatabase
8
{
9
+ public const int EventDatabaseSize = 3;
10
+
11
public static readonly EventTemplate[] EventDictionary = new[]
12
13
new EventTemplate(
Scenes/EventScene/EventScene.cs
@@ -46,7 +46,7 @@ public override void _Ready()
46
RandomNumberGenerator stageRng = new RandomNumberGenerator();
47
stageRng.SetSeed(StageProducer.GlobalRng.Seed + (ulong)StageProducer.Config.BattleRoom.Idx);
48
int eventIndex = stageRng.RandiRange(0, EventPool.Count - 1);
49
- _eventReference = EventDatabase.EventDictionary[EventPool[eventIndex]];
+ _eventReference = EventDatabase.EventDictionary[eventIndex];
50
51
EventPool.RemoveAt(eventIndex);
52
DisplayEvent();
0 commit comments