Some minor tweaks to improve experience#35
Conversation
Make the hunger bar only appear red when the food is below 20%
|
Desperately want that respawnGracePeriod change; hoping this gets in soon! |
| float ticksLeftPercent = Float.min(1.0F, (float) food.ticksLeft / foodConfig.getTime()); | ||
| int barHeight = Integer.max(1, (int)((size + 2f) * ticksLeftPercent)); | ||
| int barColor = ticksLeftPercent < SOLValheim.Config.common.eatAgainPercentage ? | ||
| int barColor = ticksLeftPercent < 0.2 ? |
There was a problem hiding this comment.
Suggestion: Rather than hard-coding, you should consider making this a configurable value.
There was a problem hiding this comment.
You're probably right, but on the other hand - there's a lot of hardcoded values here that should be config options, so I figured I'd leave it to whoever's making the config actually work to fix them!
|
|
||
| float maxhp = Math.min(40, (SOLValheim.Config.common.startingHealth * 2) + sol_valheim$food_data.getTotalFoodNutrition()); | ||
| // hack: round to full hearts | ||
| maxhp = Math.round(maxhp / 2) * 2; |
There was a problem hiding this comment.
Suggestion: I'd recommend adding a config value to enable/disable this line.
There was a problem hiding this comment.
Not sure if a bug should be given a configuration option... for the record someone merged this in and is looking to get a more up to date version accepted at #42, they'd probably be the ones to ask for config updates as they got it working!
Adds some minor tweaks to improve the gameplay experience a little:
Red usually indicates that something is running out, it was causing visual misinformation with a higher eat again percentage
This should arguably be a separate option to permanently allow sprinting, but -1 usually means infinite so it should be alright!