You are viewing a potentially older version of this package.
View all versions.
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 | 46884 |
Dependency string | BossSloth-Statistics-1.0.0 |
This mod requires the following mods to function
BepInEx-BepInExPack_ROUNDS
BepInEx pack for ROUNDS. Preconfigured and ready to use.
Preferred version: 5.4.1100willis81808-UnboundLib
This is a helpful utility for ROUNDS modders aimed at simplifying common tasks.
Preferred version: 2.9.0README
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)