mirror of
https://github.com/All-Of-Us-Mods/MiraAPI.git
synced 2026-10-22 07:35:55 +00:00
Updates to Modifiers
This commit is contained in:
1 parent
26284852c9
commit
9b173a4298
20 files changed
+189
-243
No files matched your search
@@ -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();
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user