From 3863c159ae10632b7632ca347555dd17494ca7d0 Mon Sep 17 00:00:00 2001 From: Efreak Date: Tue, 28 Feb 2017 15:04:11 -0800 Subject: Return current values for max/current health/stamina/immunity instead of errors when no value given --- src/TrainerMod/TrainerMod.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/TrainerMod/TrainerMod.cs b/src/TrainerMod/TrainerMod.cs index 22ec2e66..1a85b9b9 100644 --- a/src/TrainerMod/TrainerMod.cs +++ b/src/TrainerMod/TrainerMod.cs @@ -201,7 +201,7 @@ namespace TrainerMod } } else - this.LogValueNotSpecified(); + this.Monitor.Log($"{Game1.player.Name}'s stamina is {Game1.player.Stamina}", LogLevel.Info); break; case "player_setmaxstamina": @@ -217,7 +217,7 @@ namespace TrainerMod this.LogValueNotInt32(); } else - this.LogValueNotSpecified(); + this.Monitor.Log($"{Game1.player.Name}'s maxstamina is {Game1.player.MaxStamina}", LogLevel.Info); break; case "player_setlevel": @@ -476,7 +476,7 @@ namespace TrainerMod } } else - this.LogValueNotSpecified(); + this.Monitor.Log($"Health is: {Game1.player.health}", LogLevel.Info); break; case "player_setmaxhealth": @@ -489,7 +489,7 @@ namespace TrainerMod this.LogValueNotInt32(); } else - this.LogValueNotSpecified(); + this.Monitor.Log($"MaxHealth is: {Game1.player.maxHealth}", LogLevel.Info); break; case "player_setimmunity": @@ -502,7 +502,7 @@ namespace TrainerMod this.LogValueNotInt32(); } else - this.LogValueNotSpecified(); + this.Monitor.Log($"Immunity is: {Game1.player.immunity}", LogLevel.Info); break; case "player_additem": -- cgit