Stamina v18.104.22.168 Mirror Note: Requires Mod Helpers This mod gives your player a stamina bar. Running, jumping, dashing, grappling, and item use all draw stamina, and will leave you briefly exhausted if over done. Exhaustion increases fatigue, which temporarily lowers max stamina. Gain enough fatigue, and you'll exercise your stamina (read: permanently increase your max stamina), but only after your fatigue wears off. Also, consuming Fallen Stars recovers stamina, and a craftable Energy Potion is also available to temporary regenerate stamina quickly. Drinking Water Bottles recovers fatigue. You can adjust mod settings in the configuration file found in 'Documents/My games/Terraria/ModLoader/Mod Configs/Stamina Config.json'. Source code now available. API now available (now featuring Mod.Call() bindings). List of new items Energy Potion (potion) - Increases stamina regeneration for a short while. Crafted at a bottle/alchemy station with: 1 Bottled Honey 1 Swiftness Potion 1 Daybloom 1 Fallen Star 1 Purification Powder Athlete Potion (potion) - Increases max stamina by 100 for some time. Crafted at a bottle/alchemy station with: 1 Bottled Water 1 Bone 1 Strange Plants Rage Headband (accessory) - Trades exhaustion for damage. Crafted at a tinkerer's workshop with: 1 Magma Stone 4 Hook 5 Silk Exercise Supplements (accessory) - Increases gains from exercising. Crafted at a tinkerer's workshop with: 1 Vitamins 15 Pink Gel 15 Stinger 5 Pumpkin Pie Champion Belt (accessory) - Reduces stamina drain from item use. Crafted at a tinkerer's workshop with: 1 Titan Glove 1 Avenger Emblem 10 Leather Joint Bracer (accessory) - Reduces stamina drain from non-jump movement. Also gives knockback resistance. Crafted at a tinkerer's workshop with: 1 Dual Hook 25 Cogs 1 Basic knockback resist shield (Cobalt Shield, Obsidian Shield) 4 Weighted Pressure Plates (any) Leg Springs (accessory) - Reduces stamina drain from jumping. Also gives fall resistance. Crafted at a tinkerer's workshop with: 1 Ninja Item (tabi or black belt) 1 Frog Legs 10 Iron Bars Powered Exoskeleton Frame (accessory) - Reduces general stamina drain. Also gives fall and knockback resistance. Crafted at a tinkerer's workshop with: 1 Champion Belt 1 Joint Bracer 1 Leg Springs 2 Lihzahrd Power Cell 50 Conveyor Belts Installation Requires tModLoader (0.10). Copy the above .tmod file to your 'Documents/My Games/Terraria/ModLoader/Mods' folder to play. Changelog v22.214.171.124 Fixed incorrect adding with AddMaxStamina(...) v2.0.7 Restructured StaminaLogic code files to better separate exercise and stat-only stuff Added StaminaLogic.AddMaxStamina(Player, int) Added StaminaAPI.AddMaxStamina(Player, int) Added AddMaxStamina clamping against negative/low values Fixed trying to display on-player stamina bar displaying while dead Minor internal changes v2.0.6 Updated to MH v4.2.3 (including conventions) Changed snake case to camel case v2.0.5 Updated to Mod Helpers v2.0.2 Assorted config updates Fixed occasional draw error Restructured player code Added MP player load bug failsafe v126.96.36.199 Fixed possible crash on load Removed stamina drains from re-jumping (non-responsive mid-air jumps) v2.0.3 Minor internal refactoring Added API Mod.Call() bindings Fixed config field CustomItemUseRate default values Nerfed stamina accessory drain reduction (70% -> 80%) v2.0.2 Changed Joint Bracer recipe Recolored Athlete Potion Fixed (hopefully) player stamina bar overlay Slightly buffed Energy Potion v188.8.131.52 (Hopefully) fixed a crash/rendering issue v184.108.40.206 Fixed 'ExhaustionBlocksItems' config setting v220.127.116.11 Rage headband now gives more correct damage Exhaustion effect glitching fixed v2.0.0 Added mini stamina bar beneath player (can be repositioned) Tweaked stamina use default settings Nerfed Energy Potion Added Athlete Potion (adds max stamina) Added 5 new accessories Improved API Assorted internal refactoring v18.104.22.168 Added mod icon Added support for Hamstar Helpers v1.2.0 issue report Refactored net protocol Assorted refactoring Added a basic API class v1.4.12 Exercise increases max stamina by +3 (was +2) Reduced stamina drain from magic items doesn't apply for Space Gun and Laser Rifle while wearing Meteor Armor Minor refactoring v1.4.11 Updated for TML 0.10 Offloaded utility/helper code to Hamstar's Helpers mod (now a dependency) Numerous fixes and tweaks v1.4.10 Added config setting 'Enabled' (allows disabling mod without unload) v1.4.9 Tweaked item use rate Removed deathweed from Energy Potion recipe v1.4.8 Toned down drain from item use slightly Removed Jungle Grass Seeds from Energy Potion recipe Removed old config ("Stamina 1.2.0.json") v1.4.7 Greatly reduced gravitation potion drain rate + added config setting. v1.4.6 Changed default config settings for exercise growth and magic item use rate. v1.4.5 Changed some default config settings. Added new config settings. Config file relocated to Mod Configs. Minor code improvements. v1.4.4 Fixed config reloading between game sessions. v1.4.3 Lowered exercise threshold percent and added config settings. v1.4.2 Added config settings for exercising. Lowered threshold before fatigue produces exercise. Added sound + new visuals for exercise. v1.4.1 Fixed popup number failing to display for exercised stamina increase. Set water bottles to remove 50 fatigue. Set exercise to occur when fatigue 25 away from max. Increased default fatigue gain. v1.4.0 Added config option to override stamina bar position. Expending stamina increases fatigue (temporarily lowers max stamina). Maxing fatigue and then recovering it to full exercises stamina (increases max stamina). Drinking water bottles recovers fatigue. Altered Energy Potion recipe (uses Jungle Grass Seeds instead of Fireflies). Gravitation Potion reduces stamina recovery by half. Taking damage gives small bursts of stamina. Various stamina settings tweaks (see config). Magic weapons use half stamina. v1.3.4 Fixed star eat fail. v1.3.0-2 Nerfed Energy Potion and changed its recipe: Bottled Honey, Daybloom, Deathweed, Fallen Star, Firefly, Purification Powder Tweaked stamina drain settings. Added various code improvements. v1.2.0 Added visual indicator of low stamina (sweat drops). Added stamina bar color change when < 33%. Wing floating no longer draws stamina. v1.1.5 Added proper multiplayer support. Just 'cause. v1.1.4 Exposed classes for DLL reference use. No gameplay changes. v1.1.1-3 (Hopefully) fixed a crash bug. v1.1.0 Added a craftable Energy Potion for stamina recovery (Bottled Water, Pink Gel, Fallen Star, Purification Powder) Lots of improvements and fixes to stamina draining. Fallen Stars can be consumed raw for small stamina boosts. Support my mods!