

RoR2 mod - force all players to have similar amount of items per match
Mod will prevent players from picking items if they have significantly more items than the player with the fewest items.
Let's say a player tries to pick an item. The mod calculates the total costs of this player's inventory and finds the player with the lowest total inventory costs. Now we take the difference between the costs of these inventory and see if it exceeds the threshold. If so, mod will try to deal with item disproportion.
Inventory costs are calculated by taking each item from the player's inventory, multiplying it by its tier cost, and then adding it to the rest of the inventory cost.
Threshold is calulcated by taking summed cost of inventory of player who is trying to pick item, multiplying it by ScaleItemsCostsDifference, and then checking whenever it falls between MinItemsCostsDifference and MaxItemsCostsDifference. If it does, then calulcated number is taken as thereshold, if not then min or max value are taken.
If player can't pick item, they can ping it and use interaction button (E on keyboard by default) to share it with player with lowest inventory costs
| Setting | Default Value |
|---|---|
| HowToHandleItemDisproportion | GiveRandomItemToLowestCostsPlayer |
| ScaleItemsCostsDifference | 0.3 |
| MinItemsCostsDifference | 5 |
| MaxItemsCostsDifference | 15 |
| WhiteItemsCost | 1 |
| GreenItemsCost | 2 |
| RedItemsCost | 4 |
| BossItemsCost | 2 |
| BlueItemsCost | 0 |
Find my other mods here: https://thunderstore.io/package/Mordrog/