From f227631255da3f866f4a1539714e00a8497b71a6 Mon Sep 17 00:00:00 2001 From: UnknownShadow200 Date: Sun, 27 Mar 2016 23:28:34 +1100 Subject: [PATCH] Move /os weather to more logical /os env weather. --- Commands/CmdOverseer.cs | 25 +++++++++++++------------ Games/ZombieSurvival/ZombieGame.Core.cs | 2 +- 2 files changed, 14 insertions(+), 13 deletions(-) diff --git a/Commands/CmdOverseer.cs b/Commands/CmdOverseer.cs index 476ba9ba0..7d09669a9 100644 --- a/Commands/CmdOverseer.cs +++ b/Commands/CmdOverseer.cs @@ -70,16 +70,6 @@ namespace MCGalaxy.Commands Command.all.Find("setspawn").Use(p, ""); } else if (cmd == "PRESET") { Command.all.Find("env").Use(p, "l preset " + arg); - } else if (cmd == "WEATHER") { - if (arg == "SUN" || arg == "NORMAL") { - Command.all.Find("env").Use(p, "l weather 0"); - } else if (arg == "RAIN") { - Command.all.Find("env").Use(p, "l weather 1"); - } else if (arg == "SNOW") { - Command.all.Find("env").Use(p, "l weather 2"); - } else { - Player.SendMessage(p, "/os weather [sun/rain/snow/normal] -- Changes the weather of your map."); - } } else if (cmd == "ENV") { HandleEnvCommand(p, arg, arg2); } else if (cmd == "MAP") { @@ -147,12 +137,23 @@ namespace MCGalaxy.Commands } else if (type == "BORDER") { string block = value == "" ? "normal" : value; Command.all.Find("env").Use(p, "l border " + block); + } else if (type == "WEATHER") { + if (value == "SUN" || value == "NORMAL") { + Command.all.Find("env").Use(p, "weather 0"); + } else if (value == "RAIN") { + Command.all.Find("env").Use(p, "weather 1"); + } else if (value == "SNOW") { + Command.all.Find("env").Use(p, "weather 2"); + } else { + Player.SendMessage(p, "/os env weather [sun/rain/snow/normal] -- Changes the weather of your map."); + } } else { Player.SendMessage(p, "/os env [fog/cloud/sky/shadow/sun] [hex color code] -- Changes env colors of your map"); Player.SendMessage(p, "/os env level -- Sets the water height of your map"); Player.SendMessage(p, "/os env horizon -- Sets what block the \"ocean\" shows outside your map"); Player.SendMessage(p, "/os env border -- Sets what block replaces the bedrock below sea level in your map"); - Player.SendMessage(p, " Warning: Air,Shrub,Glass,Flowers,Mushroom,Rope,Fire cannot be used for horizon/bedrock."); + Player.SendMessage(p, "/os env weather [sun/rain/snow/normal] -- Changes the weather of your map."); + Player.SendMessage(p, " Warning: Shrub,Flowers,Mushroom,Rope,Fire cannot be used for horizon/bedrock."); Player.SendMessage(p, " Note: If no hex or block is given, the default will be used."); } } @@ -381,7 +382,7 @@ namespace MCGalaxy.Commands Player.SendMessage(p, "/os [command string] - sends command to The Overseer"); Player.SendMessage(p, "Accepted commands:"); Player.SendMessage(p, "go, map, spawn, zone, kick, kickall, env, " + - "weather, preset, levelblock/lb"); + "preset, levelblock/lb"); } } } \ No newline at end of file diff --git a/Games/ZombieSurvival/ZombieGame.Core.cs b/Games/ZombieSurvival/ZombieGame.Core.cs index 085cd098c..407aae605 100644 --- a/Games/ZombieSurvival/ZombieGame.Core.cs +++ b/Games/ZombieSurvival/ZombieGame.Core.cs @@ -288,7 +288,7 @@ namespace MCGalaxy.Games { } else if (alive.Length == 0) { money = rand.Next(1, 5 + pl.playersInfected); } else if (alive.Length == 1 && !pl.infected) { - money = rand.Next(5, 15); + money = rand.Next(5, 10); } else if (alive.Length > 1 && !pl.infected) { money = rand.Next(2, 6); }