Issue#25 Added command to toggle speaking in percentage for health n stamina

This commit is contained in:
Mohammad Shoaib Khan
2022-08-13 13:06:24 +05:30
parent 949e5c5bfc
commit 408a40121d
17 changed files with 85 additions and 25 deletions

View File

@@ -494,6 +494,14 @@ namespace stardew_access
MainClass.DebugLog("Static tiles refreshed!");
});
helper.ConsoleCommands.Add("hnspercent", "Toggle between speaking in percentage or full health and stamina.", (string commmand, string[] args) =>
{
MainClass.Config.HealthNStaminaInPercentage = !MainClass.Config.HealthNStaminaInPercentage;
helper.WriteConfig(MainClass.Config);
MainClass.DebugLog("Speaking in percentage is " + (MainClass.Config.HealthNStaminaInPercentage ? "on" : "off"));
});
}
}
}