Gamble With Your Friends
You are viewing a potentially older version of this package. View Latest Version
Install

Details

Date Uploaded
last week
Downloads
493
Size
11KB
Dependency string
MasterModders-PersistentUpgrades-1.0.0

Persistent Upgrades

Upgrades bought in the shop (Gambler's Confidence, Insurance, Bonus Draw, Stakeholder) are now:

  • Permanent — they no longer reset when a new day starts. Once bought, they stay on your save for the rest of the run.
  • Shared — buying one applies it to every player currently in the lobby, not just whoever bought it.

How it works

The host owns the upgrade table. This mod hooks UpgradeManager.ChangeUpgradeData and, right after a player buys an upgrade, applies the same change to every synced player in the lobby. It also remembers each player's upgrade values and reapplies them right after the game advances to a new day, so nothing gets reset back to zero.

Because it reuses the game's own upgrade call, the existing stacking math stays correct and the upgrade HUD updates for everyone through the game's normal network messages — no custom netcode.

Multiplayer

  • The host must have the mod for upgrades to be shared and persisted — upgrade application is server-authoritative.
  • Guests benefit even without the mod installed, but installing it on everyone keeps each player's own upgrade HUD accurate.

Requirements

BepInEx 5.4.x.

Changelog

1.0.0 — Initial release. Upgrades are permanent and shared across the lobby.

Thunderstore development is made possible with ads. Please consider making an exception to your adblock.