SANDBOX — this is a test environment. No servers are actually deployed and no real payments are charged.
Back to NxLabs

NxLabs / Vintage Story

Vigor

CBy chrisunfocused

Adds a Stamina system to Vintage Story

Description

About Vigor

This mod was created to add a layer of physical challenge and consequence to Vintage Story. Removing the ability to sprint and swim indefinitely adds challenge to combat, and encourages the use of rafts and boats for water traversal.
Vigor introduces a stamina system that is deeply integrated with the food you eat, making both physical exertion and a balanced diet critical components of your survival strategy.

<iframe src="//www.youtube-nocookie.com/embed/ZA3j5mInF9s" width="560" height="314" allowfullscreen="allowfullscreen" allow="encrypted-media; picture-in-picture; web-share; clipboard-write"></iframe>

Stamina System

A stamina bar is added to the HUD, which is consumed by the following actions:

  • Sprinting
  • Swimming
  • Jumping

&nbsp;

Running out of stamina will leave you Exhausted. While exhausted:

  • Your movement speed is significantly reduced.
  • You cannot sprint.
  • If you are in the water, you will begin to drown.

&nbsp;

Stamina regenerates after a short cooldown following any strenuous action.
However, if you push yourself to full exhaustion, you will face a longer recovery penalty before your stamina begins to return.

Stamina regeneerates slowly when walking on dry land, faster when idle, and faster still if you are sitting.

Nutrition Bonuses

Vigor ties directly into the vanilla nutrition system. Maintaining high levels in the five food groups provides significant, scaling bonuses to your stamina attributes. A balanced diet will make you more resilient and capable.

<table style="border-collapse: collapse; border-style: hidden; height: 118px; width: 831px;" cellpadding="5"> <thead> <tr style="height: 19px;"> <th style="height: 19px; width: 178px;">Nutrition Category</th> <th style="height: 19px; width: 308px;">Primary Bonus (at 100% saturation)</th> <th style="height: 19px; width: 345px;">Secondary Bonus (at 100% saturation)</th> </tr> </thead> <tbody> <tr style="height: 20px;"> <td style="height: 20px; width: 178px;">Grain</td> <td style="height: 20px; width: 308px;">+30% Max Stamina</td> <td style="height: 20px; width: 345px;">-20% Jump Stamina Cost</td> </tr> <tr style="height: 20px;"> <td style="height: 20px; width: 178px;">Protein</td> <td style="height: 20px; width: 308px;">+30% Stamina Recovery Rate</td> <td style="height: 20px; width: 345px;">+20% Max Stamina</td> </tr> <tr style="height: 20px;"> <td style="height: 20px; width: 178px;">Vegetable</td> <td style="height: 20px; width: 308px;">-30% Stamina Drain Rate</td> <td style="height: 20px; width: 345px;">-20% Recovery Threshold</td> </tr> <tr style="height: 20px;"> <td style="height: 20px; width: 178px;">Dairy</td> <td style="height: 20px; width: 308px;">-30% Recovery Threshold</td> <td style="height: 20px; width: 345px;">+20% Stamina Recovery Rate</td> </tr> <tr style="height: 19px;"> <td style="height: 19px; width: 178px;">Fruit</td> <td style="height: 19px; width: 308px;">-30% Jump Stamina Cost</td> <td style="height: 19px; width: 345px;">-20% Stamina Drain Rate</td> </tr> <tr> <td style="width: 178px;">All (Combined)</td> <td style="width: 308px;">-50% Recharge Delay</td> <td style="width: 345px;">&nbsp;</td> </tr> </tbody> </table>

&nbsp;

Note: "Recovery Threshold" refers to the percentage of stamina you must recover to before the Exhausted state is removed.

Configuration

Vigor is highly configurable. Nearly all values, from stamina costs to the potency of nutrition bonuses, can be adjusted in the ModConfig/vigor.json file to tailor the experience to your liking.

Mod Compatibility


Salty's Immersive Mining - Tools use stamina
image

Hydrate or Diedrate - Statbar positioning
image

Experimental

Vigor 0.3.0 adds experimental support for Stamina integration by other mods.
I have built a custom version of Verticality to iron out the API requirements. If you would like to test it out, please download the custom Verticality mod.
Release v0.3.1_vigor_experimental &middot; cjohnsto-nz/Verticality

Future

  • Make the player slowly sink when exhausted in water.
  • Add stamina cost to other actions, like smithing and mining.
  • Reduce/remove hunger cost from those actions, in favor of stamina costs.
  • Add a hunger cost to recharging stamina.


This mod is in very early development!
My goal is to split this into two mods:
Vigor, which controls the sprinting, swimming, jumping costs, and the nutrition bonuses.
StaminaLib, which controls the UI rendering, state management, and intermod compaitibility. My goal is to provide a vanilla like standard stamina framework for all mods that use stamina to align on.
But I am just learning :)
Please let me know if you have any issues, or need changes for mod compatibility.

Ratings & reviews

No ratings yet

Sign in to leave a rating or comment.