A BepInEx mod for R.E.P.O. that adds passive stamina regeneration based on your agility-related upgrade levels.
Your Stamina, Crouch Rest, and Sprint Speed upgrades now contribute to a passive stamina regeneration rate. The more you invest in these agility stats, the faster your stamina recovers — making high-mobility builds even more rewarding in longer runs.
The combined level of your three agility stats determines your regen rate:
| Stamina | Crouch Rest | Speed | Combined | Regen/sec (default) |
|---|---|---|---|---|
| 1 | 0 | 0 | 1 | 0.3/sec |
| 2 | 1 | 1 | 4 | 1.2/sec |
| 3 | 2 | 2 | 7 | 2.1/sec |
| 5 | 3 | 3 | 11 | 3.3/sec |
The regeneration is subtle and designed to be useful over time — it won't make you invincible, but it rewards investing in agility stats.
Regen now depends on what you're doing. The rate from the table above is your base rate; your current movement state multiplies it, so you recover fastest while resting and not at all while running:
| State | Multiplier (default) | Effect |
|---|---|---|
| Running (sprinting) | x0 |
No regen while sprinting |
| Walking (moving) | x0.5 |
Half regen on the move |
| Standing still | x1 |
Full base regen |
| Crouching + standing still | x2 |
Double regen while resting |
Example: with a 3.3/sec base rate, you regen 0/sec while sprinting, 1.65/sec while walking, 3.3/sec standing still, and 6.6/sec crouched and still. All four multipliers are configurable.
Settings are in BepInEx/config/headclef.Agility.cfg:
[Stamina Regeneration]
| Key | Default | Description |
|---|---|---|
| Enable | true |
Toggle stamina regen on/off |
| Base Regen Per Second | 0 |
Flat regen regardless of stats (0 = none) |
| Regen Per Combined Level | 0.3 |
Extra regen per combined agility level |
| Max Regen Per Second | 0 |
Cap the base (standing-still) rate before the movement multiplier (0 = no cap) |
[Movement Multipliers]
| Key | Default | Description |
|---|---|---|
| Sprinting Multiplier | 0 |
Regen multiplier while running |
| Walking Multiplier | 0.5 |
Regen multiplier while walking |
| Standing Multiplier | 1 |
Regen multiplier while standing still |
| Crouching Still Multiplier | 2 |
Regen multiplier while crouching and still |
Character Stats.dll and Agility.dll into your BepInEx/plugins folder.├── Agility.cs # Plugin entry point & config
├── Patches/
│ └── StaminaRegenPatch.cs # Harmony postfix — stamina regen
└── README.md
This project is part of the Repo.slnx solution and references Character Stats at compile time. Build the whole solution so dependencies build in the correct order:
dotnet build ../Repo.slnx
This project is licensed under the MIT License — see the LICENSE file for details.