Upload from upload_mods.ps1
This commit is contained in:
39
Scripts/MinEvents/MinEventActionStopMusic.cs
Normal file
39
Scripts/MinEvents/MinEventActionStopMusic.cs
Normal file
@@ -0,0 +1,39 @@
|
||||
public class MinEventActionStopMusic : MinEventActionRemoveBuff
|
||||
{
|
||||
private int numItems = 1;
|
||||
private int numLocation = 0;
|
||||
private int numQuality = 0;
|
||||
private string itemName = "";
|
||||
|
||||
public override void Execute(MinEventParams _params)
|
||||
{
|
||||
//Log.Out("MinEventActionStopMusic-Execute START");
|
||||
if (GameManager.IsDedicatedServer)
|
||||
{
|
||||
//Log.Out("MinEventActionStopMusic-Execute IS SERVER");
|
||||
return;
|
||||
}
|
||||
|
||||
//Log.Out("MinEventActionStopMusic-Execute IS CLIENT");
|
||||
|
||||
EntityPlayerLocal player = _params.Self as EntityPlayerLocal;
|
||||
|
||||
if (player == null)
|
||||
{
|
||||
//Log.Out("MinEventActionStopMusic-Execute NO Player");
|
||||
return;
|
||||
}
|
||||
|
||||
//Log.Out("MinEventActionStopMusic-Execute player.AttachedToEntity: " + player.AttachedToEntity);
|
||||
//Log.Out("MinEventActionStopMusic-Execute HAS WALKMAN MOD: " + RebirthUtilities.HasMod(player, "FuriousRamsayWalkmanMod"));
|
||||
|
||||
if (RebirthUtilities.HasMod(player, "FuriousRamsayWalkmanMod"))
|
||||
{
|
||||
//Log.Out("MinEventActionStopMusic-Execute HAS WALKMAN MOD");
|
||||
return;
|
||||
}
|
||||
|
||||
//Log.Out("MinEventActionStopMusic-Execute STOP MUSIC");
|
||||
RebirthVariables.musicMode = 0;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user