Lives v2.0.1 (Mirror) Injury v2.0.4 (Mirror) Note: Requires Mod Helpers These are two mods made for adding a deeper concept of mortality for the game. Lives adds a limit to the number of allowed deaths (until a 'hardcore' final death), and Injuries lets you attain permanent injuries (loss of maximum HP) from a small portion of damage received. Falling from high places and generally becoming low on health have additional effects, also. Being injured produces 'Broken Hearts' that can be recovered within a time limit, and crafted into new Life Crystals or Cracked Life Crystals to restore lost health (see below). New to Lives (v2.0.0): Settings now exist to implement "continues", with various configurable effects for running out of lives. You may adjust mod settings in the respective configuration files found in 'Documents/My Games/Terraria/ModLoader/Mod Configs'. Formula for injury calculation: m = current max health n = damage taken (0.75 + (m/400)) - (n / 15), in 5 unit chunks Available craftable items (spoiler) 1-Up - (Lives) Adds a new life. Crafted anywhere with: 1 Life Crystal OR 4 Life Fruits 1 Guide Voodoo Doll 15 Gold Coins Vitae - (Injury) Life extract. Painfully extracted. Crafted (with a slight risk of summoning evil spirits) at a demon altar with: 1 Broken Heart 1 Living animal (any) 1 Mushroom Cracked Life Crystal - (Injury) Recovers +20 max health temporarily. Crafted at a crafting bench with: 2 Vitae 10 Ruby Gemspark Block Life Crystal - (Injury) Recovers +20 max health permanently. Crafted at a crafting bench with: 4 Vitae 4 Shadow Orbs OR 4 Tissue Samples 10 Ruby Gemspark Block Band of Life - (Injury) Generates max health over time (up to 400). Crafted at a crafting bench with: 1 Band of Regeneration 4 Life Crystals 10 Vitae Fortitude Potion - (Injury) Adds resistance to injury. Crafted at a bottle/alchemy station with: 1 Bottled Water 1 Vitae 1 Bone 1 Shadow Orb OR 1 Tissue Sample Heartstrings - (Injury) Broken hearts drop nearer and last longer. Crafted at a tinker's workshop with: 20 Bee's Wax 1 Shadow Orb/Crimson Heart (light pet) 1 Rainbow String Enriched Vitae - (Injury) Enriched life extract. A drink to die for (literally; highly toxic). Increases max hp by 5 (up to 500). Crafted 5x at a bottle/alchemy station with: 3 Wandering Hearts 2 Vitae 1 Pink Prickly Pear Life Vest - (Injury) Fortifies against injury. Also works as a floatation device. Crafted at a tinkerer's workshop with: 10 Silk 50 Bubble block 5 Shroomite bar 10 Enriched Vitae Band of Afterlife - (Injury) Slowly fills maximum life (up to 500). Regeneration stacks with Band of Life. Broken Hearts drop closer and last longer. Crafted at a tinkerer's workshop with: 1 Band of Life 1 Heartstrings 20 Enriched Vitae Installation Requires tModLoader (0.10). Copy the above .tmod files from the above .zip files into your 'Documents/My Games/Terraria/ModLoader/Mods' folder to play. Source code available for lives and injury. Injury's API and Lives' API now available (now with Mod.Call() bindings). Note for mod authors: Mods can freely adjust in-game config settings programmatically via. weak reference/API, but they are not automatically saved to file. Potential future plans Remove fall damage negation in favor of simply reduction (i.e. Lucky Horseshoe isn't perfect protection) Add more diverse kinds of injuries Lives changelog: v2.0.1 Changed to PacketProtocol-based net code (untested) Relocated LivesPlayer connect code to new code file Minor internal refactoring Added lives reset after settings sync on join to server (if player created anew) Fixed "continue" message flooding itself out of chat v2.0.0 Refactored draw code to use config settings for positioning of lives display Added mediumcore-with-revert value to "SignalDifficultyChange" Implemented "continues" Added config settings for effects to occur on "continue" Restructured LivesPlayer "mortality" stuff into new code files (in particular, decoupled this code from PreKill hook) Refactored UI display stuff for better form Implemented "continues" drawing Added inbox message about continues v220.127.116.11 Updated to MH v4.2.3 (including conventions) Switched snake case to camel case v1.6.1 Updated to Mod Helpers v2.0.2 Added API Mod.Call() bindings Restructured player code file Added MP player load bug failsafe v18.104.22.168 Added mod icon Added support for Hamstar Helpers v1.2.0 issue report Refactored net protocol Added API v1.5.4 Updated for TML 0.10 Offloaded utility/helper code to Hamstar's Helpers mod (now a dependency) Numerous fixes and tweaks v1.5.3 Fixed a possible premature immortality bug. v1.5.2 Added config setting 'Enabled' (allows disabling mod without unloading) v22.214.171.124 Minor refactoring. v1.5.0-1 Moved config file to Mod Configs subfolder. Fixed a possible bug that would get players stuck in hardcore mode. Altered 1-Up item sprite. 1 life left = last life v1.4.6 Fixed config reloading between game sessions. v1.4.4 Fixed major saving bug. v1.4.2 Fixed possible saving glitch. Improved code. v1.4.0 Added 15 gold coins to the default 1-Up recipe. Life Fruits also work to craft 1-Ups in the place of Life Crystals. Added numerous options for configuring the 1-Up recipe. v1.3.2-3 Added proper multiplayer support. Exposed classes for DLL reference use. No gameplay changes. v1.3.0-1 Updated to TML 0.9 v1.2.0 Added 1-up craftable (Life Crystal + Guide Voodoo Doll). Can be configured. Injury changelog: v2.0.4 Updated for Mod Helpers v2.0.2 Added MP player load bug failsafe v2.0.3 Changed Enchanced Vitae recipe to require Strange Plants (instead of Prickly Pears) v2.0.2 Added alternate Vitae recipe using Life Crystals (4:1) Added Wandering Heart recipe using Life Fruits (1:1) Assorted internal refactoring Added SaveModSettingsChanges to API Added Mod.Call() bindings for API Altered Enriched Vitae recipe to craft +2 for an additional +1 Vitae and +1 Wandering Heart v2.0.1 Added Band of Afterlife - Slow recovers up to 500 max hp Added Heartstrings - Lets dropped broken hearts last longer Added Life Vest - Adds resistance against injury Added Wandering Heart (item and projectile) Added Vitae Added Enriched Vitae Added injury on death (also config option) Wandering Hearts replace Broken Hearts when over 400 hp Vitae (made from Broken Hearts) is now used to craft Life Crystals Removed definitions for Fortitude Bracer, Heart Catcher, Heart Mender, Life Line, Hearty Soup, Life Cereal Added Vitae crafting risk (spawns wraith + applies curse) v1.10.0 Added mod icon Added support for Hamstar Helpers v1.2.0 issue report Refactored net protocol Updated impact trauma buff icon Added API v1.9.5 Updated for TML 0.10 Offloaded utility/helper code to Hamstar's Helpers mod (now a dependency) Numerous fixes and tweaks v1.9.4 Added 'Enabled' config setting (disables mod without unloading) v1.9.3 Added some config options. Set some classes public. v1.9.2 Increased duration for broken hearts (16 -> 24 seconds) Prevented use of Cracked Life Crystals at full hp Various bug fixes v1.9.1 Players no longer incur harm from hits <20% max hp when at full health. Set broken hearts not to fly as far away on hit. v1.9.0 Added better visibility for Broken Hearts Added larger pickup range for Broken Hearts Added Cracked Life Crystals (craftable from Broken Hearts); gives +20 temporary health Moved config file to 'Mod Configs' subfolder Assorted code improvements v1.8.4 Fixed config reloading between game sessions. v1.8.3 Bleeding Heart projectile's duration increased + configs added. v1.8.2 Added a lot of new config options to fine tune max health loss, and renamed existing ones for readability. Rebalanced Band of Life (now requires Regen Potions to craft). Added Broken Hearts that drop from own injuries that can be used to craft Life Crystals anew (32 Glass + 4 Tissue Samples/Shadow Scales + 4 Broken Hearts + 10 Regen Potions). v1.7.0 Added craftable Band of Life: Slowly recovers max hp (Band of Regen + 5 Life Crystals + 10 Pixie Dust) v1.6.2-3 Tweaked default damage settings (updates config). v1.6.0 Nurse removes injury buildup. Formula tweaked to factor in armor, but also scaled down: ((0.75 + (m/400)) - n / 20), in 5 unit chunks Improved code. v1.5.0 Added max health loss harm FX (sound + blood). Modified harm formula to slowly erode buildup with time (AKA accumulated damage before losing a chunk of max health). Modified harm formula to let higher max health absorb more hits before taking harm. v1.4.2-3 Added proper multiplayer support. Exposed classes for DLL reference use. No gameplay changes. v1.4.0-1 Updated to TML 0.9 Support my mods!