Updates to Modifiers

This commit is contained in:
ang-xd committed 2024-08-23 20:30:34 -04:00
1 parent 26284852c9
commit 9b173a4298
20 files changed
+189 -243

No files matched your search

+6 -2
View File
@@ -6,10 +6,14 @@ namespace MiraAPI.Example;
public class ModifierExample : TimedModifier
{
public override string ModifierName => "Timed modifier example";
public override float Duration => 10;
public override float Duration => 1.5f;
public override bool AutoStart => true;
private System.Random _rand = new();
public override void OnTimerComplete()
{
Player.SetColor((byte)_rand.Next(0, 18));
StartTimer();
}
}