how to make it decay overtime? I got 508 stamina late game , no matter what I do it won't get empty past half bar so food and cooking means nothing ,I made the value to -0.5 but it reset to 0 , I don't get the description
So I was reading through the code and I was curious if the following would be possible based on my observations:
Intent: to have stamina drain to heal health. Requirements: Boolean for the config file to activate feature (config.burn), float for the "efficiency" value for a percent (config.drain)
My thought is to insert another if block in public void OnOneSecondUpdateTicked to make the result closer to:
Hello, I have an issue when I fish while using this mod. Whenever, i get a bite, it would freeze the screen (until i left click) and i did not get the loot/fish. I wonder if its only on my side
Hello, I'm checking out your mod and like the idea of having my stamina decay over the course of the day to make things more challenging. But I don't really know how to enable that. It seems like this mod only heals stamina at this point in time but from reading the description I got the impression that it could decrease stamina as well. Every time I try to decrease the stamina regen rate it stops at zero and doesn't go any further (meaning it can only add stamina and not decrease it). Did I misunderstand the description or has this mod changed since that was originally written? [I also noticed a typo in the mod, when the in game message is displayed "Increased" is misspelled]
can we get the "NotHealWhileRunning" option back. I really liked having a tiny passive heal, that way activities like farming, mining and logging required energy management and food, but gathering, fishing and shopping allow my farmer to "catch their breath" some.
19 comments
https://community.playstarbound.com/threads/updating-mods-for-stardew-valley-1-3-closed.142524/page-77#post-3343697
Intent: to have stamina drain to heal health.
Requirements: Boolean for the config file to activate feature (config.burn), float for the "efficiency" value for a percent (config.drain)
My thought is to insert another if block in public void OnOneSecondUpdateTicked to make the result closer to:
if (config.burn && player.health < player.maxHealth && TicksAccumulator >= config.SecondsNeededToStartHealing)
{
HPAccumlator += config.HealingValuePerSeconds;
if (HPAccumlator == Math.Floor(HPAccumlator))
{
player.health += (int)Math.Min(HPAccumlator, player.maxHealth - player.health);
HPAccumlator = 0;
player.Stamina -= (float)Math.Min(healing*config.drain, player.MaxStamina - player.Stamina);
}
}