## **New Feature Bonus Stamina System**
A bonus stamina mechanic has been implemented. This allows players to exceed their normal maximum stamina cap temporarily. Bonus stamina appears as a Gold/Orange (default, you can change it in client config) on top of the standard stamina bar. All actions will first drain bonus stamina before the standard stamina
When consuming items that restore stamina (INSTANT), if your main stamina bar is full or fills up during the process, the remaining excess stamina restore is converted into Bonus Stamina.
Configs
* `enableExcessStaminaConversion` (Default: `true`): If true, restoring stamina past the Max Stamina limit via consumables will convert the excess amount into Bonus Stamina.
* `excessConversionRate` (Default: `0.5`): The percentage of excess normal stamina that becomes bonus stamina. 0.5 = 50% conversion (e.g., 10 points of overflow becomes 5 points of Bonus Stamina).
* `bonusStaminaDecayDelay` (Default: `20`): The delay in ticks (20 ticks = 1 second) before Bonus Stamina starts decaying after being gained or used. Default is 1 second.
* `bonusDecayScalesWithAmount` (Default: `true`): If true, the decay rate is treated as a percentage of your _current_ bonus stamina (burns faster when you have more). If false, it decays by a flat amount.
* `bonusStaminaDecayRate` (Default: `0.04`): The amount of Bonus Stamina lost per second. If scaling is enabled, `0.04` represents a 4% loss per second. If scaling is disabled, it represents a flat amount lost per second.
The Bonus Stamina HUD is fully customizable in the `client-config`.
<br><br>
## **New Feature Missing Attack Depletion costs**
Randomly swinging your items into the air will cost a configurable amount of stamina (You can disable this btw).
<br><br>
## **Updated Consumables section**
The consumables section can now have the `BONUS;value` type and arg. What it does is that the consumable when eaten will give X amount of bonus stamina ontop of the stamina recovered by INSTANT (conversion rate is configurable, see above).
<br><br>
## **IMPORTANT CONFIG UPDATE**
I have split the config into three files inside the `peakstamina` folder, the files are named below:
`peakstamina/common.toml`: "simple" mechanics, multipliers, and scalar values.
`peakstamina/client.toml`: Visual settings, HUD layout, and colors.
`peakstamina/lists.toml`: data lists (item weights, costs, consumables) are now separated to prevent them from cluttering the main settings. as well as making it easier for you to copy and paste your lists over.
Happy Lunar new years! (eve) ^-^
Developer information
Projects on Modrinth are automatically available through a Maven repository for use with JVM build tools such as Gradle.
maven { name = "Modrinth"; url = "https://api.modrinth.com/maven" }