mirror of
https://github.com/All-Of-Us-Mods/MiraAPI.git
synced 2026-10-20 01:46:15 +00:00
further modifier improvements (massive changes)
This commit is contained in:
1 parent
4a8fb38380
commit
caa27642db
14 files changed
+276
-139
No files matched your search
@@ -15,6 +15,12 @@ public class TestButton : CustomActionButton
|
||||
|
||||
protected override void OnClick()
|
||||
{
|
||||
if (PlayerControl.LocalPlayer.HasModifier<ModifierParams>())
|
||||
{
|
||||
PlayerControl.LocalPlayer.RpcRemoveModifier<ModifierParams>();
|
||||
return;
|
||||
}
|
||||
|
||||
var randomPlayer = PlayerControl.AllPlayerControls.ToArray().Random();
|
||||
PlayerControl.LocalPlayer.RpcAddModifier<ModifierParams>("test", 1, randomPlayer);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user