R2API RecalculateStats
API for manipulating Character Stats
模組介紹 作者原文
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/allSkills for stat manipulation to apply to specific slots or all slots simultaneously.
- Added cooldownReductionMultAdd, and cooldownMultiplier stats for better modification of skill cooldowns.
- Added bonusStockAdd for adding charges to skills.
1.6.3
- Improved reliability of luck stat hooks
1.6.2
- Added support for fractional/non-integer luck values
- Added luckAdd stat for increasing and decreasing luck
- Added shouldFreezeBarrier, barrierDecayAdd, and barrierDecayMult stats for modifying barrier decay rate
- Improved reliability of jump stat hook
1.6.1
- Added stats: jumpCountAdd and jumpCountMult.
1.6.0
- Added multiplicative stat modifiers healthTotalMult, shieldTotalMult, regenTotalMult, moveSpeedTotalMult, jumpPowerTotalMult, damageTotalMult attackSpeedTotalMult, critMult, bleedChanceMult, armorMult, and curseTotalMult.
'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, and levelArmorAdd to scale stat bonuses with character level.
'1.2.0'
- Added levelFlatAdd stat for changing effective level additively.
- Added sprintSpeedAdd stat for changing sprint speed multiplier.
'1.1.0'
- Added attackSpeedReductionMultAdd stat for reducing attack speed.
'1.0.0'
- Split from the main R2API.dll into its own submodule.
安裝與使用 安裝:BepInEx 外掛
- 本站下載的壓縮包就是模組本體,通常是 BepInEx 外掛(解壓後得到 .dll 或外掛資料夾)。
- 建議流程:用社群模組管理器(如 r2modman)選中本遊戲後匯入該模組,管理器會自動裝好 BepInEx 前置並處理依賴。
- 手動流程:先在遊戲目錄裝好 BepInEx 載入器,再把解壓出的 .dll 或外掛資料夾放進 BepInEx/plugins/。
- 啟動遊戲,BepInEx 控制台會列印載入日誌;確認這個模組出現在日誌裡即為安裝成功。
帶「前置依賴」的模組需要一併安裝,否則不會載入。功能開關通常在遊戲內或外掛自帶的設定檔裡調整。
下面這些內容需要先安裝,否則該模組不會生效: