MuseumGambling
Gamble at the Museum Head - clicking it deals 100 damage with a configurable chance to win 50,000 cash.
模組介紹 作者原文
MuseumGambling
A R.E.P.O. mod that turns the Museum Head into a slot machine. Each time it sucks a player in, the host rolls — by default 95% of clicks deliver the vanilla 100 damage, but 5% of clicks suppress the damage and spawn a 50,000-value money bag at the head's feet instead.
Features
- Host-authoritative roll on every Museum Head suck-in (one roll per Closed state transition).
- Configurable percent chance of winning (whole number, 0–100).
- Configurable payout value, stamped on a vanilla "surplus valuable small" money bag.
- Damage suppression replicates to the clicking player's machine via a custom Photon event so multiplayer rolls stay consistent.
- Kill-switch toggle to disable the mod without uninstalling.
Configuration
Config file: BepInEx/config/darkharasho.MuseumGambling.cfg
[General]
Enabled = true
WinChancePercent = 5
PayoutValue = 50000
| Key | Default | Range | Description |
|-----|---------|-------|-------------|
| Enabled | true | — | When false, the Museum Head behaves vanilla (no rolling, no payouts). |
| WinChancePercent | 5 | 0–100 | Whole-number percent chance a click pays out instead of dealing damage. |
| PayoutValue | 50000 | 0–1,000,000 | Dollar value stamped on the spawned money bag. |
Config is read live — values take effect on the next click without needing a level reload. Compatible with REPOConfig — knobs can be tweaked in-game.
Multiplayer
Only the host rolls. The result is broadcast to every client via PhotonNetwork.RaiseEvent, so the player being sucked in correctly suppresses their local damage when the host's roll is a win. Clients running the mod with the host not running it will never see a win. Clients without the mod when the host has it will see the money bag spawn but still take damage — install the mod on every client for clean play.
Dependencies
- BepInExPack
Installation
Install Mod Manager / r2modman, or manually place MuseumGambling.dll in BepInEx/plugins/MuseumGambling.
Building
GAME_DIR="/path/to/REPO"./package.sh
Builds the DLL and produces a -ready zip. Install the zip via r2modman.
安裝與使用 安裝:BepInEx 外掛
- 本站下載的壓縮包就是模組本體,通常是 BepInEx 外掛(解壓後得到 .dll 或外掛資料夾)。
- 建議流程:用社群模組管理器(如 r2modman)選中本遊戲後匯入該模組,管理器會自動裝好 BepInEx 前置並處理依賴。
- 手動流程:先在遊戲目錄裝好 BepInEx 載入器,再把解壓出的 .dll 或外掛資料夾放進 BepInEx/plugins/。
- 啟動遊戲,BepInEx 控制台會列印載入日誌;確認這個模組出現在日誌裡即為安裝成功。
帶「前置依賴」的模組需要一併安裝,否則不會載入。功能開關通常在遊戲內或外掛自帶的設定檔裡調整。
下面這些內容需要先安裝,否則該模組不會生效: