Get current difficulty.
This commit is contained in:
parent
70da7c4486
commit
7c8f95fdfd
@ -62,7 +62,7 @@ namespace DiIiS_NA.GameServer.CommandManager
|
|||||||
{
|
{
|
||||||
if (invokerClient?.InGameClient is null)
|
if (invokerClient?.InGameClient is null)
|
||||||
return "You must execute this command in-game.";
|
return "You must execute this command in-game.";
|
||||||
if (invokerClient.InGameClient.Player.World.Game.Difficulty == 0)
|
if (invokerClient.InGameClient.Player.World.Game.Difficulty == 1)
|
||||||
return "Difficulty is already at minimum";
|
return "Difficulty is already at minimum";
|
||||||
invokerClient.InGameClient.Player.World.Game.LowDifficulty(invokerClient.InGameClient, null);
|
invokerClient.InGameClient.Player.World.Game.LowDifficulty(invokerClient.InGameClient, null);
|
||||||
return $"Difficulty decreased - set to {invokerClient.InGameClient.Player.World.Game.Difficulty}";
|
return $"Difficulty decreased - set to {invokerClient.InGameClient.Player.World.Game.Difficulty}";
|
||||||
@ -78,6 +78,14 @@ namespace DiIiS_NA.GameServer.CommandManager
|
|||||||
invokerClient.InGameClient.Player.World.Game.SetDifficulty(difficulty);
|
invokerClient.InGameClient.Player.World.Game.SetDifficulty(difficulty);
|
||||||
return $"Difficulty set to {invokerClient.InGameClient.Player.World.Game.Difficulty}";
|
return $"Difficulty set to {invokerClient.InGameClient.Player.World.Game.Difficulty}";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[DefaultCommand]
|
||||||
|
public string Get(string[] @params, BattleClient invokerClient)
|
||||||
|
{
|
||||||
|
if (invokerClient?.InGameClient is null)
|
||||||
|
return "You must execute this command in-game.";
|
||||||
|
return $"Current difficulty is {invokerClient.InGameClient.Player.World.Game.Difficulty}";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
[CommandGroup("heal", "Heals yourself", Account.UserLevels.Tester)]
|
[CommandGroup("heal", "Heals yourself", Account.UserLevels.Tester)]
|
||||||
|
|||||||
Loading…
Reference in New Issue
user.block.title