Monster Train 2
You are viewing a potentially older version of this package. View Latest Version
Install

Details

Date Uploaded
4 days ago
Downloads
16
Size
45KB
Dependency string
SpecialCircumstances-RerollConfirmation-0.1.0

RerollConfirmation

A Monster Train 2 mod that warns you before a shop reroll would leave you with too little gold.

Rerolling a Card, Steel, Arms, Magic, or Trinket shop normally spends your gold without a second thought. This mod keeps a configurable minimum-gold threshold per shop type and, if a reroll would drop you below it, shows a confirmation dialog first (and lets you back out) instead of just taking your gold. A small red "!" badge also appears on the reroll button itself whenever it would put you under the threshold, so you see the warning before you even click.

Configuration

BepInEx/config/RerollConfirmation.cfg

Key Default Meaning
General.Enabled true Whether the warning badge and confirmation dialog appear at all.
Thresholds.TrinketShopMinimumGold 135 Gold you want to still have after rerolling the Trinket (Merchant of Trinkets) shop.
Thresholds.OtherShopMinimumGold 90 Same, for every other reroll-capable shop (Card/Steel/Arms/Magic).

The Guild Marker relic discounts merchant prices by 25%, so while you own it both thresholds are scaled by 0.75 to match what things actually cost.

Install

Use a mod manager (r2modman / Thunderstore Mod Manager) and install SpecialCircumstances-RerollConfirmation. Dependencies are pulled in automatically:

  • BepInEx 5.4.2100
  • Trainworks Reloaded 0.7.2
  • Conductor 0.4.1

Manual install: drop RerollConfirmation.dll into BepInEx/plugins/.

Notes

Only rerolls are touched — buying the goods themselves is left alone, however broke it leaves you. A reroll you can't afford at all is still rejected by the game as usual, with no dialog in the way.

Build

dotnet build

The output DLL is copied to ../../mt2-plugins/RerollConfirmation after every build (PluginDeployDir in RerollConfirmation.csproj) — point that at your BepInEx/plugins folder to test in-game directly.

Harmony patches live in RerollConfirmation/patches/: MerchantScreen_RerollConfirmation_Patch.cs shows the confirmation dialog, MerchantGoodUIBase_RerollWarningIcon_Patch.cs draws the button badge, and both share the threshold logic in RerollGoldThreshold.cs.

Publishing to Thunderstore is driven by thunderstore.toml via tcli; the GitHub workflows in .github/workflows/ build and validate the package.

License

See LICENSE.

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