RiskofThunder-R2API_DamageType icon

R2API DamageType

API for registering damage types

Last updated 3 weeks ago
Total downloads 599926
Total rating 1 
Categories Libraries
Dependency string RiskofThunder-R2API_DamageType-1.0.4
Dependants 257 other mods depend on this mod

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.6 icon

Core R2API module

Preferred version: 5.0.6


R2API.DamageType - Custom DamageType creation and management


R2API.DamageType is a submodule assembly for R2API that allows mod creators to add their own DamageTypes to attacks.

Use Cases / Features

R2API.DamageType can be used for mod creators to add their own DamageTypes to the game, and later use said damage types on different damage sources.

This is done via the DamageAPI class, which is used for reserving DamageTypes and adding them to the following damage sources:

  • DamageInfo
  • BulletAttack
  • DamageOrb
  • GenericDamageOrb
  • LightningOrb
  • BlastAttack
  • OverlapAttack
  • DotController.DotStack

Related Pages



  • Memory optimization


  • Optimization


  • Fix projectile IL hooks


  • Made IL hooks more robust to stop API failing because of other mods


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

Available versions

Please note that the install buttons only work if you have compatible client software installed, such as the Thunderstore Mod Manager. Otherwise use the zip download links instead.

Upload date Version number Downloads Download link  
2023-5-10 1.0.4 101976 Version 1.0.4 Install
2023-2-17 1.0.3 277986 Version 1.0.3 Install
2023-2-12 1.0.2 38578 Version 1.0.2 Install
2023-2-1 1.0.1 81406 Version 1.0.1 Install
2022-12-18 1.0.0 99980 Version 1.0.0 Install