SoulEmper0r-PlayerHealthRegen icon

PlayerHealthRegen

Gradually regenerates player health over time with safe multiplayer handling.

Last updated 2 weeks ago
Total downloads 3793
Total rating 1 
Categories AI Generated Quality Of Life Mods
Dependency string SoulEmper0r-PlayerHealthRegen-1.0.1
Dependants 0 other packages depend on this package

This mod requires the following mods to function

BepInEx-BepInExPack-5.4.2305 icon
BepInEx-BepInExPack

BepInEx pack for Mono Unity games. Preconfigured and ready to use.

Preferred version: 5.4.2305
nickklmao-REPOConfig-1.2.7 icon
nickklmao-REPOConfig

Edit mod configs in-game!

Preferred version: 1.2.7

README

Player Health Regen

A BepInEx plugin for REPO v0.5.0 that gradually regenerates player health during active gameplay.

Settings (REPOConfig)

  • Enabled — turn regeneration on or off (default: true)
  • HealAmount — health restored per tick, 1–25 (default: 1)
  • IntervalSeconds — seconds between ticks, 0.5–120 (default: 5)
  • HostOnly — only the host performs the regeneration scan in multiplayer (default: true)

Multiplayer behavior

The host scans player health components and calls the game's PlayerHealth.HealOther(int, bool) method. The game's method applies healing on the owning player and synchronizes the result through the game's Photon RPC flow.

Version 1.0.1 fixes a null-reference error found in 1.0.0:

  • skips menu avatars, inactive or partially initialized avatars, and players without required runtime objects;
  • only runs during the active gameplay state and when StatsManager is available;
  • disables the optional camera/audio heal effect path, which can be unavailable in some runtime states;
  • throttles unexpected error logging to avoid flooding the game log.

The plugin does not directly write the health field; it continues to use the game's own healing and synchronization logic.

Build

dotnet build .\src\PlayerHealthRegen.csproj -c Release -o .\build

Output: build\PlayerHealthRegen.dll.