RiskofThunder-R2API_Execute icon

R2API Execute

API for manipulating Execute Threshold

Last updated 9 hours ago
Total downloads 382
Total rating 0 
Categories Libraries
Dependency string RiskofThunder-R2API_Execute-1.0.0
Dependants 1 other package depends on this package

This mod requires the following mods to function

bbepis-BepInExPack-5.4.2121 icon
bbepis-BepInExPack

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

Preferred version: 5.4.2121
RiskofThunder-HookGenPatcher-1.2.9 icon
RiskofThunder-HookGenPatcher

MMHOOK generation at runtime.

Preferred version: 1.2.9
RiskofThunder-R2API_Core-5.1.7 icon
RiskofThunder-R2API_Core

Core R2API module

Preferred version: 5.1.7

README

R2API.Execute

About

R2API.Execute is a submodule assembly for R2API that allows mod creators to add custom sources of Execute that are able to stack with each other.

Use Cases / Features

R2API.Execute can be used for mod creators to add custom sources of Execute to the game via the ExecuteAPI class.

Execute sources added via this module will not stack with Freeze and Guillotines, as the goal is to avoid changing Vanilla functionality.

Execute sources added via R2API.Execute stack additively with diminishing returns, using the following formula: 1 - (1/(1 + executeFractionAdd))

To add an execute source:

  • ExecuteAPI.CalculateExecuteThreshold allows mod creators to increment the execute fraction.
  • ExecuteAPI.CalculateExecuteThresholdForViewer is run after the above, and will factor in the attacker that is viewing the target's healthbar. (similar to Old Guillotine)

Changelog

'1.0.0'

  • Release