ontrigger-ItemStatsMod icon

ItemStatsMod

Calculates and shows stack bonuses in the item tooltip. Now with BepIn support!

Last updated 4 days ago
Total downloads 243092
Total rating 119 
Dependency string ontrigger-ItemStatsMod-2.1.0
Dependants 55 other mods depend on this mod

This mod requires the following mods to function

tristanmcpherson-R2API-2.5.14 icon
tristanmcpherson-R2API

A modding API for Risk of Rain 2

Preferred version: 2.5.14
bbepis-BepInExPack-5.3.1 icon
bbepis-BepInExPack

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

Preferred version: 5.3.1
README

ItemStats 2.1.0 (Now with Custom Item support!)

Provides current stack bonuses for an item in the tooltip

demo

Installation

First thing you'll need is the BepInExPack. If you don't have it, get it here and follow the installation instructions.

Afterwards, get the zip file from releases and extract the ItemStats folder in BepInEx/plugins. That's it!

Custom Item API

In order to use API, add a Bepin SoftDependency to your BaseUnityPlugin annotations.
Make sure to check if ItemStats is loaded before trying to use it

Then, create an ItemStatDef for your item (see ItemStatDefinitions.cs for examples).

Use the R2API ItemApi Submodule to add your item and get its ItemIndex.

After that, simply call ItemStatsMod.AddCustomItemStatDef(myItemIndex, myItemStatDef)

To create an item stat modifier, extend from AbstractStatModifier. Check ItemStats.StatModification.Modifiers for examples
Add an instance of the class with ItemStatsMod.AddStatModifier(new MyStatModifier())

Building

You will first need the following libraries:

  • Assembly-CSharp (duh)
  • UnityEngine
  • UnityEngine.CoreModule
  • BepInEx
  • MMHOOK_Assembly-CSharp
  • R2API

Open the solution, link the libraries in the Lib folder, DL the required NuGet package and compile.

Contributors

  • kylewill0725
  • orare

Available versions

Please note that the install buttons only work if you have compatible client software installed. Otherwise use the zip download links instead.

Upload date Version number Downloads Download link  
2020-10-26 2.1.0 6145 ontrigger-ItemStatsMod-2.1.0.zip Install
2020-9-10 2.0.0 48607 ontrigger-ItemStatsMod-2.0.0.zip Install
2020-4-1 1.5.0 96052 ontrigger-ItemStatsMod-1.5.0.zip Install
2019-12-30 1.4.0 28728 ontrigger-ItemStatsMod-1.4.0.zip Install
2019-10-13 1.3.1 14538 ontrigger-ItemStatsMod-1.3.1.zip Install