hamstar
Terrarian
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'.
m = current max health
n = damage taken
(0.75 + (m/400)) - (n / 15), in 5 unit chunks
n = damage taken
(0.75 + (m/400)) - (n / 15), in 5 unit chunks
- 1 Life Crystal OR 4 Life Fruits
- 1 Guide Voodoo Doll
- 15 Gold Coins
- 1 Broken Heart
- 1 Living animal (any)
- 1 Mushroom
- 2 Vitae
- 10 Ruby Gemspark Block
- 4 Vitae
- 4 Shadow Orbs OR 4 Tissue Samples
- 10 Ruby Gemspark Block
- 1 Band of Regeneration
- 4 Life Crystals
- 10 Vitae
- 1 Bottled Water
- 1 Vitae
- 1 Bone
- 1 Shadow Orb OR 1 Tissue Sample
- 20 Bee's Wax
- 1 Shadow Orb/Crimson Heart (light pet)
- 1 Rainbow String
- 3 Wandering Hearts
- 2 Vitae
- 1 Pink Prickly Pear
- 10 Silk
- 50 Bubble block
- 5 Shroomite bar
- 10 Enriched Vitae
- 1 Band of Life
- 1 Heartstrings
- 20 Enriched Vitae
Installation
Requires tModLoader (+0.11). 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
v2.1.1.2
v1.4.2
- Fixed incorrect ModContent.GetInstance call in ExtraLifeItem.ConsumeItem
- Updated internal code conventions (especially for MH updates)
- Updated for TML 11.5
- Added ranges to some config settings
- Updated to TML11.4 and MH5b
- 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
- 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
- Updated to MH v4.2.3 (including conventions)
- Switched snake case to camel case
- Updated to Mod Helpers v2.0.2
- Added API Mod.Call() bindings
- Restructured player code file
- Added MP player load bug failsafe
- Added mod icon
- Added support for Hamstar Helpers v1.2.0 issue report
- Refactored net protocol
- Added API
- Updated for TML 0.10
- Offloaded utility/helper code to Hamstar's Helpers mod (now a dependency)
- Numerous fixes and tweaks
- Fixed a possible premature immortality bug.
- Added config setting 'Enabled' (allows disabling mod without unloading)
- Minor refactoring.
- 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
- Fixed config reloading between game sessions.
- Fixed major saving bug.
v1.4.2
- Fixed possible saving glitch.
- Improved code.
- 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.
- Added proper multiplayer support.
- Exposed classes for DLL reference use. No gameplay changes.
- Updated to TML 0.9
- Added 1-up craftable (Life Crystal + Guide Voodoo Doll). Can be configured.
v2.1.1.1
- Fixed some incorrect ModContent.GetInstance uses
- Update to TML11.5
- Implemented FloatInputElement for config
- Changed config ranges to not use extremes
- Updated MH recipe groups
- Fixed MH recipe group typos
- Updated to TML11.4 and MH5b
- Updated for Mod Helpers v2.0.2
- Added MP player load bug failsafe
- Changed Enchanced Vitae recipe to require Strange Plants (instead of Prickly Pears)
- 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
- 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)
- Added mod icon
- Added support for Hamstar Helpers v1.2.0 issue report
- Refactored net protocol
- Updated impact trauma buff icon
- Added API
- Updated for TML 0.10
- Offloaded utility/helper code to Hamstar's Helpers mod (now a dependency)
- Numerous fixes and tweaks
- Added 'Enabled' config setting (disables mod without unloading)
- Added some config options.
- Set some classes public.
- Increased duration for broken hearts (16 -> 24 seconds)
- Prevented use of Cracked Life Crystals at full hp
- Various bug fixes
- 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.
- 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
- Fixed config reloading between game sessions.
- Bleeding Heart projectile's duration increased + configs added.
- 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).
- Added craftable Band of Life: Slowly recovers max hp (Band of Regen + 5 Life Crystals + 10 Pixie Dust)
- Tweaked default damage settings (updates config).
- 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.
- 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.
- Added proper multiplayer support.
- Exposed classes for DLL reference use. No gameplay changes.
- Updated to TML 0.9
Last edited: