ShrineOfChance
Adds Shrine of Chance slot machines on grass. Each paid spin draws fresh odds, a boss alerts the whole lobby, and three nukes drop a pickup that kills every enemy and pays every player.
By muckers
| Last updated | 4 hours ago |
| Total downloads | 16 |
| Total rating | 0 |
| Categories | Addons |
| Dependency string | muckers-ShrineOfChance-0.5.1 |
| Dependants | 2 other packages depend on this package |
This mod requires the following mods to function
BepInEx-BepInExPack_Muck
BepInEx pack for Muck. Preconfigured and ready to use.
Preferred version: 5.4.1101README
Shrine of Chance
"The reels stop."
Adds Shrine of Chance slot machines to Muck, inspired by Risk of Rain 2. A few appear on grass at the start of a world. Look at one and press interact.
The first use costs 17 coins. Later prices follow floor(17 × 1.4 ^ uses): 23, then 33, then 46. By default the price also follows the day's chest prices. Paying pulls the lever and spins three reels above the shrine. The reels start as the lever hits the bottom, then stop left to right over about 2.4 seconds. The reward lands when the last reel stops.
Each paid roll draws a new set of odds. Nothing, White, Blue, Legendary, and Boss each get at least 1% and at most 50%, and the five sum to 100%. Then the Nuke takes 5% of every roll and the other five share the remaining 95%. The cabinet shows that roll's odds. The player who paid also gets a short HUD with the same six numbers. Their chat line repeats them each time the reels stop.
| Result | Reels |
|---|---|
| Nothing | No three of a kind |
| White powerup | $ $ $ |
| Blue powerup | BAR BAR BAR |
| Orange powerup | 7 7 7 |
| Boss | X X X |
| Nuke | N N N (green) |
Add-on mods can register extra outcomes. For example, UFO Abduction, a separate package, adds a UFO on 10% of every roll. The built-in odds scale down to make room and keep their proportions, so with it installed the Nuke is 4.5% and the five tiers share 85.5%.
After two successful item drops the orb turns grey and the shrine is spent. A roll of nothing, and a boss, still raise the price. A boss does not count as one of the two drops. A boss roll sends <name> rolled a BOSS at the Shrine of Chance! to every player in the lobby. Modded clients show a banner for that system line. A player who types the same words does not get the banner. Vanilla clients see the chat line.
Nuke
Inspired by the Call of Duty Zombies Nuke power-up. Three nukes drop a spinning, glowing green bomb next to the shrine. Walk into it to set it off; no button needed. Anyone can grab it, and it fades after 30 seconds, blinking for the last 5.
When someone touches it, every player's screen flashes white and shows KABOOM!. Every enemy alive at that moment dies, the nearest first, rippling out over about two seconds. Bosses and neutral animals survive, and enemies that spawn later are not affected. Nuked enemies drop nothing and count as nobody's kill. When the wave is over, every player gets 400 coins, alive or dead, and a KABOOM! +400 coins. chat line. A nuke counts as one of the shrine's two successes.
In Wave Run, nuked wave enemies count toward the round, so nuking the last ones ends it. Wave Run bosses survive.
Multiplayer
Every player should run this mod, and every copy must use the same config. When a world starts, BepInEx/LogOutput.log shows Shrine of Chance config and an eight-character code. Chat shows it only while the debug ForceOutcome is set. If the codes differ, the shrines and the odds will not agree. From 0.5.1 the reels show the host's roll, which is the one that pays out. Rolls are a hash of the world seed, so anyone with that seed can predict them. Every modded player near the shrine sees the same spin. A powerup from another mod, such as Ukulele, can drop here, and a player who does not have that mod can error when it appears.
- Both players modded: both see the same shrines, the same price, and the same reels. The player who uses one pays and sees the odds HUD. The drop appears for everyone, and anyone can pick it up. A boss spawns once, and every player gets the boss chat line and banner.
- Modded host, vanilla client: the vanilla player does not see the shrines. They can still see powerups a modded player earns, and a boss the host spawns, because both use Muck's normal packets. They see enemies die to a nuke, but they never see the nuke and get no coins from it.
- Vanilla host, modded client: the shrines are visible but inert. Using one does not spend coins.
Config
BepInEx/config/evan.muck.shrineofchance.cfg, created on first launch. Match it across the lobby.
| Setting | Default | |
|---|---|---|
Count |
6 | How many shrines to place |
MinSpacing |
60 | Minimum meters between shrines |
BasePrice |
17 | Coins for the first use |
PriceGrowth |
1.4 | Multiplier per use |
ScaleWithChestPrice |
true | Also apply the day's chest price multiplier |
MaxSuccesses |
2 | Successful item drops before the shrine is spent |
RandomizeOdds |
true | Draw fresh odds on every paid roll |
MinChance / MaxChance |
1 / 50 | Percent floor and ceiling for each tier |
ChanceNothing / ChanceWhite / ChanceBlue / ChanceOrange / ChanceBoss |
42.73 / 34.18 / 17.09 / 5 / 1 | Used only when RandomizeOdds is off |
[Nuke] Enabled |
true | Let shrines roll the nuke |
[Nuke] Chance |
5 | Percent of every paid roll that gives a nuke (0 to 50) |
[Nuke] Gold |
400 | Coins each player gets after a nuke |
[Nuke] KillDelay / KillSpread |
0.5 / 1.5 | Seconds to the first death, and over which the deaths ripple out |
[Nuke] Lifetime |
30 | Seconds before an untouched nuke fades |
ForceOutcome |
Off | Debug only. Forces every roll and changes the config code |
VerboseLogging |
false | Log each placement and each roll |
The old Weight* keys are ignored. An existing config picks up the chances above.
Credits
Shrine of Chance is Hopoo Games' design (Risk of Rain 2). Muck is Dani's. The Nuke is after Treyarch's Call of Duty Zombies power-up. This mod contains no assets from any of these games. The shrine is primitives plus Arial glyphs, the nuke reuses this repo's own Sticky Bomb model in green, and the icon is original.