jjtParadox-ForceItemsEqualShare_Paradox icon

ForceItemsEqualShare Paradox

Fork of ForceItemsEqualShare with fixes for AC and new temp speed method

Last updated 2 hours ago
Total downloads 9
Total rating 0 
Categories Mods Tools Server-side Alloyed Collective
Dependency string jjtParadox-ForceItemsEqualShare_Paradox-1.4.1
Dependants 0 other packages depend on this package

This mod requires the following mods to function

bbepis-BepInExPack-5.4.2121 icon
bbepis-BepInExPack

Unified BepInEx all-in-one modding pack - plugin framework, detour library

Preferred version: 5.4.2121
RiskofThunder-R2API_Prefab-1.1.1 icon
RiskofThunder-R2API_Prefab

API for Prefab creation, networking and duplication

Preferred version: 1.1.1

README

RoR2-ForceItemsEqualShare-Paradox

Fork of ForceItemsEqualShare with more fixes for AC and a new method of handling item disproportion by giving temporary speed.

Fork Changes

1.4.1

Fixes

  • Fix temporary items being counted for inventory cost
  • Add meal items cost
  • Simplify cost exclusions to exclude all untiered or hidden items
  • Exclude lepton daisy and new AC quest items from cost
  • Consumed regenerating items get calculated as non-consumed

New temporary speed method for handling disproportionate inventories

  • Give a temporary red whip to players that are behind
  • Intended to help behind players get to items without boosting overall team power long-term
  • Inventory cost of the temporary red whip is configurable

RoR2-ForceItemsEqualShare

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.

Current options to deal with items disproportion:

- Add random (mostly low tier) item to players who are behind (have low inventory cost)

- Block picking item for player with most inventory cost (allows for ping + interaction sharing)

- Give a temporary red whip item to players who are behind

How it works

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

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

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.

Share item (only if block option is selected)

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

Default Config Settings

Setting Default Value
HowToHandleItemDisproportion GiveRandomItemToLowestCostsPlayer
ScaleItemsCostsDifference 0.3
MinItemsCostsDifference 5
MaxItemsCostsDifference 15
WhiteItemsCost 1
GreenItemsCost 2
RedItemsCost 4
BossItemsCost 2
BlueItemsCost 0
MealItemsCost 4
TempSpeedItemsCost 1
WhiteItemBoostWeight 100
GreenItemBoostWeight 20
RedItemBoostWeight 0

Additional infos

Mod is ignored on maps:

  • Bazzar
  • Void
  • Moon
  • Moon2

Items ignored in calulcation:

  • Untiered items
  • ArtifactKey
  • TitanGoldDuringTP
  • CaptainDefenseMatrix
  • TPHealingNova
  • MasterBattery
  • MasterCore

Items ignored while picking up:

  • Untiered items
  • ArtifactKey
  • TitanGoldDuringTP
  • CaptainDefenseMatrix
  • TPHealingNova
  • MasterBattery
  • MasterCore
  • ScrapWhite
  • ScrapGreen
  • ScrapRed
  • ScrapYellow

More

Find my other mods here: https://thunderstore.io/package/Mordrog/

Changelog

1.4.0

  • Fix for Alloyed Collective changes

1.3.3

  • Fix for Seekers of the Storm changes
  • Added item boost weight Settings
  • Updated item boosting, so now it can boost multiple players at once

1.3.2

  • Update manifest + rebuild on new patch

1.3.1

  • Fix for Survivors of the Void changes
  • Added void items to cost calculation, adequately to their tier
  • Made it so adding items to player with lowest items costs now includes dead players

1.3.0

  • Fix for Anniversary Update
  • Added new Moon stage to ignored Stages for item distribution
  • Added new configuration to handle item disproportion (give low tier item to player with least inventory cost)

1.2.0

  • Added abbility to share item with player who have lowest inventory costs via ping + interaction
  • Rebalanced default config after adding above option
  • Added Moon to ignored map list

1.1.0

  • Rebalanced default config values to allow better players to get more items late game
  • Added chat messages for players who tries to pick item when they have too many of them