diff options
author | Efreak <efreak@users.noreply.github.com> | 2017-02-28 15:04:11 -0800 |
---|---|---|
committer | Jesse Plamondon-Willard <Pathoschild@users.noreply.github.com> | 2017-03-01 17:28:52 -0500 |
commit | 3863c159ae10632b7632ca347555dd17494ca7d0 (patch) | |
tree | 54e53e0cd23c2bc011e19bb3bee021e2c7ee4adf | |
parent | 49a801b2b0dce4bd3b4abeee3e45ba0d7f2bee4d (diff) | |
download | SMAPI-3863c159ae10632b7632ca347555dd17494ca7d0.tar.gz SMAPI-3863c159ae10632b7632ca347555dd17494ca7d0.tar.bz2 SMAPI-3863c159ae10632b7632ca347555dd17494ca7d0.zip |
Return current values for max/current health/stamina/immunity instead of errors when no value given
-rw-r--r-- | src/TrainerMod/TrainerMod.cs | 10 |
1 files 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": |