You are viewing a potentially older version of this package. View all versions.
BossSloth-Statistics-1.0.0 icon

Statistics

Adds stats to the game like amount blocked

Date uploaded 2 years ago
Version 1.0.0
Download link BossSloth-Statistics-1.0.0.zip
Downloads 41321
Dependency string BossSloth-Statistics-1.0.0

This mod requires the following mods to function

BepInEx-BepInExPack_ROUNDS-5.4.1100 icon
BepInEx-BepInExPack_ROUNDS

BepInEx pack for ROUNDS. Preconfigured and ready to use.

Preferred version: 5.4.1100
willis81808-MMHook-1.0.0 icon
willis81808-MMHook

MonoMod Runtime Hooks generated for ROUNDS

Preferred version: 1.0.0
willis81808-UnboundLib-2.9.0 icon
willis81808-UnboundLib

This is a helpful utility for ROUNDS modders aimed at simplifying common tasks.

Preferred version: 2.9.0

README

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)