Please disclose if any significant portion of your mod was created using AI tools by adding the 'AI Generated' category. Failing to do so may result in the mod being removed from Thunderstore.
Carturs Safe Stamina
Stamina costs nothing while no enemy is near. Chop, mine, sprint, jump, swim, sneak and build for free out in the quiet, and pay full price the moment something hostile walks into range. Each cost is separately toggleable.
CHANGELOG
Changelog
1.0.10
- IgnoredCreatures setting. List creatures that should never count as an enemy nearby, by the name shown in game or the prefab name, comma-separated. For modded creatures that are hostile by faction but never fight, like T.W.I.G. Requested on GitHub.
1.0.9
- Being over-encumbered never gets free stamina regeneration.
- Attacks that give stamina back are no longer zeroed.
1.0.8
- Works alongside Speedy Paths. Both mods changed the same stamina value around the same game call, and together they could leave sprinting free even in combat. Safe Stamina now zeroes the cost at the game's own stamina hook instead, for sprint, jump, swim and sneak, so no other mod's adjustments are disturbed.
1.0.7
- No more free stamina while overloaded. Standing still and encumbered, the game's own drain never fires - it is gated on movement - so nothing kept the regeneration timer down, and this mod then regenerated anyway. Being over the weight limit costs you again.
- The setting's description now mentions attacks, which have been covered since 1.0.5.
1.0.6
- Listing only. The store page is rewritten: it leads with what the mod does instead of a links block, the settings table matches the config file, and it links every Cartur mod. No code change.
1.0.5
- Stamina now refills while swimming and while attacking, when safe. Zeroing a cost was
never the same as refilling:
Player.UpdateStatssets the regen rate to 0 outright while you are swimming off the ground, mid-swing, mid-dodge, wall-running or encumbered, so the bar sat flat instead of filling. It now regenerates on those frames too, as long as nothing hostile is insideSafeRadiusand the normal post-spend regen delay has passed. Follows the existing switches - the swim case obeysAffectSwim, attacks and dodges obeyAffectAttacks.
1.0.4
- Page only - the mod itself is unchanged from 1.0.3. Adds a link to Cartur's Flooring, so every mod of mine points at the others.
1.0.3
- Sneaking is now free while safe, on its own
AffectSneakswitch. Crouching chargedm_sneakStaminaDrainevery tick even with nothing around, which is the one movement cost the mod had missed. - Documented ConfigurationManager as the easy way to change the settings in-game, with a screenshot of the panel.
- Added Follow Command to the links to my other mods.
1.0.2
- Moved the links to my other mods to the top of the page.
1.0.1
- Added links to my other mods.
1.0.0
First release.
Stamina costs drop to zero while no hostile character is within SafeRadius
(default 25m), and come back the moment one does. Covers attacks — chopping,
mining and weapon swings — sprint, jump, swim, and build/repair/remove, each
on its own switch.