add hud string method and code docs for modifiers

This commit is contained in:
XtraCube committed 2024-08-31 16:25:50 -04:00
1 parent 264defe8bf
commit 1f357b5e08
6 files changed
+129 -18

No files matched your search

+2 -1
View File
@@ -7,6 +7,7 @@ namespace MiraAPI.Example.Modifiers;
public class CaptainModifier : GameModifier
{
public override string ModifierName => "Captain";
public override int GetAmountPerGame()
{
return 1;
@@ -16,4 +17,4 @@ public class CaptainModifier : GameModifier
{
return 100;
}
}
}
@@ -14,7 +14,7 @@ public class FreezeModifier : TimedModifier
public override void OnActivate()
{
if (Player.AmOwner)
if (Player?.AmOwner == true)
{
Player.moveable = false;
}
@@ -22,7 +22,7 @@ public class FreezeModifier : TimedModifier
public override void OnTimerComplete()
{
if (Player.AmOwner)
if (Player?.AmOwner == true)
{
Player.moveable = true;
}