
SharedConfigurableUpgradesChance
Enhance your gameplay with configurable upgrade chances based on player count. Balance and customize player attributes dynamically!
Last updated | 2 weeks ago |
Total downloads | 2399 |
Total rating | 1 |
Categories | Mods Tools Server-side |
Dependency string | autochrome-SharedConfigurableUpgradesChance-1.0.0 |
Dependants | 0 other packages depend on this package |
This mod requires the following mods to function

BepInEx-BepInExPack
BepInEx pack for Mono Unity games. Preconfigured and ready to use.
Preferred version: 5.4.2100
README
Overview The SharedConfigurableUpgradesChance plugin introduces a configurable system for upgrading player attributes based on the number of players in the game. This plugin allows game hosts to set the probability of various upgrades being applied to players, ensuring a balanced and customizable gameplay experience. Features
- Configurable Upgrade Chances: game hosts can configure the probability of each upgrade being applied based on the number of players.
- Logging: Detailed logging for each upgrade attempt, including the generated chance and whether the upgrade was applied. Configuration The plugin uses a configuration file to set the probabilities for each upgrade. The key configuration entries are:
- playerValue: The base value used to calculate the upgrade chance per player.
- maxCap: The maximum cap for the upgrade chance, ensuring it does not exceed a certain percentage.
How It Works
- Initialization: The plugin initializes the configuration using the InitializeConfig method.
- Upgrade Calculation: For each player, the plugin calculates the upgrade chance based on the number of players and the configured playerValue and maxCap.
- Random Chance: A random value is generated, and if it is less than or equal to the calculated chance, the upgrade is applied to the player.
- Logging: Each upgrade attempt is logged, providing insights into the upgrade process.
Installation
- Download the plugin and place it in the BepInEx/plugins directory.
- Configure the playerValue and maxCap in the configuration file.
- Start the game, and the plugin will automatically apply the configured upgrade chances.