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.
R2API RecalculateStats
API for manipulating Character Stats
| Last updated | 3 months ago |
| Total downloads | 4703498 |
| Total rating | 14 |
| Categories | Libraries |
| Dependency string | RiskofThunder-R2API_RecalculateStats-1.6.6 |
| Dependants | 1370 other packages depend on this package |
This mod requires the following mods to function
bbepis-BepInExPack
Unified BepInEx all-in-one modding pack - plugin framework, detour library
Preferred version: 5.4.2109README
R2API.RecalculateStats - Global solution for manipulating Character Stats.
About
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
- Jump Count
- Damage
- Attack Speed
- Critical Strike Chance
- Armor
- Curse
- Cooldown reduction for skills
- Shield
- Critical Strike Damage
- Luck
- Barrier Decay Rate
- Barrer Decay Freeze
Related Pages
Changelog
1.6.6
- Fixed barrier decay freeze stat failing to freeze barrier decay
- Flat cooldown reduction stat can now be negative (increasing cooldowns by a flat amount)
1.6.5
- Fixed luck and barrier stat hooks for Alloyed Collective
1.6.4
- Skill slot stats are now handled by
SkillSlotStatModifiers:- Split into
primarySkill/secondarySkill/utilitySkill/specialSkill/allSkillsfor stat manipulation to apply to specific slots or all slots simultaneously. - Added
cooldownReductionMultAdd, andcooldownMultiplierstats for better modification of skill cooldowns. - Added
bonusStockAddfor adding charges to skills.
- Split into
1.6.3
- Improved reliability of luck stat hooks
1.6.2
- Added support for fractional/non-integer luck values
- Added
luckAddstat for increasing and decreasing luck - Added
shouldFreezeBarrier,barrierDecayAdd, andbarrierDecayMultstats for modifying barrier decay rate - Improved reliability of jump stat hook
1.6.1
- Added stats:
jumpCountAddandjumpCountMult.
1.6.0
- Added multiplicative stat modifiers
healthTotalMult,shieldTotalMult,regenTotalMult,moveSpeedTotalMult,jumpPowerTotalMult,damageTotalMultattackSpeedTotalMult,critMult,bleedChanceMult,armorMult, andcurseTotalMult.
'1.5.0'
- Added
bleedChanceAdd.
'1.4.0'
- Initial fixes for SOTS DLC2 Release.
'1.3.0'
- Added stats:
levelHealthAdd,levelShieldAdd,levelRegenAdd,levelMoveSpeedAdd,levelJumpPowerAdd,levelDamageAdd,levelAttackSpeedAdd,levelCritAdd, andlevelArmorAddto scale stat bonuses with character level.
'1.2.0'
- Added
levelFlatAddstat for changing effective level additively. - Added
sprintSpeedAddstat for changing sprint speed multiplier.
'1.1.0'
- Added
attackSpeedReductionMultAddstat for reducing attack speed.
'1.0.0'
- Split from the main R2API.dll into its own submodule.