RiskofThunder-R2API_RecalculateStats icon

R2API RecalculateStats

API for manipulating Character Stats

Last updated 6 months ago
Total downloads 1715223
Total rating 6 
Categories Libraries
Dependency string RiskofThunder-R2API_RecalculateStats-1.3.0
Dependants 827 other packages depend on this package

This mod requires the following mods to function

bbepis-BepInExPack-5.4.2109 icon

Unified BepInEx all-in-one modding pack - plugin framework, detour library

Preferred version: 5.4.2109
RiskofThunder-HookGenPatcher-1.2.3 icon

MMHOOK generation at runtime.

Preferred version: 1.2.3
RiskofThunder-R2API_Core-5.0.11 icon

Core R2API module

Preferred version: 5.0.11


R2API.RecalculateStats - Global solution for manipulating Character Stats.


R2API.RecalculateStats is a submodule assembly for R2API that allows mod creators to finely tune stat changes for Characters ingame

It is intended to be a global solution for mods in general.

Use Cases / Features

R2API.RecalculateStats works via the GetStatCoefficients event, which allows a mod creator to run logic and modify the incoming stat changes for a Character.

These stat changes are represented in the StatHookEventArgs, which includes arguments for modifying a variety of stats, these include:

  • Max Health
  • Health Regeneration
  • Movement Speed
  • Jump Power
  • Damage
  • Attack Speed
  • Critical Strike Chance
  • Armor
  • Curse
  • Cooldown reduction for skills
  • Shield
  • Critical Strike Damage

Related Pages



  • Added stats: levelHealthAdd, levelShieldAdd, levelRegenAdd, levelMoveSpeedAdd, levelJumpPowerAdd, levelDamageAdd, levelAttackSpeedAdd, levelCritAdd, and levelArmorAdd to scale stat bonuses with character level.


  • Added levelFlatAdd stat for changing effective level additively.
  • Added sprintSpeedAdd stat for changing sprint speed multiplier.


  • Added attackSpeedReductionMultAdd stat for reducing attack speed.


  • Split from the main R2API.dll into its own submodule.