Statistics
Adds stats to the game like amount blocked
About this mod Author’s original text
Statistics mod
A mod that adds statistics to the game like how many times you blocked or what was your highest damage dealt.
Adding extra stats
You can add your own stats to the stat menu by adding a void to the action extraStatsMenu in Stats like this:
public void Start() {
Stats.extraStatsMenu += MyStats;
}
public void MyStats(GameObject menu) {
{
var MyStatsMenu = Stats.CreateMenu("MyStats", menu);
var myCustomStats = Stats.CreateStat("My custom stat", "MyStats", MyStatsMenu);
}
and then you can update the stat like this:
void MyUpdateMethod() {
// add's 1 or the given amount to the stat
Stats.AddValue("My custom stat");
// or you could
// set's the stat to the given amount
Stats.SetValue("My custom stat", 10);
}
note: stats only update when you're not in sandbox, build this project in DEBUG mode to allow update in sandbox for testing.
Patch notes
- 1.0.0 (Initial release)
Install & use Install: BepInEx plugin
- The archive from playbuff is the mod itself — usually a BepInEx plugin (a .dll or a plugin folder once unzipped).
- Recommended: use a community mod manager (such as r2modman) — pick this game, import the mod, and the manager sets up BepInEx and its dependencies for you.
- Manual route: install the BepInEx loader in the game folder, then drop the unzipped .dll or plugin folder into BepInEx/plugins/.
- Launch the game — the BepInEx console logs every plugin it loads; seeing this mod in the log means it is installed.
Mods with listed dependencies need those installed too, or they will not load. Options are usually changed in-game or in the plugin's config file.
Install these first, or the mod will not work: