RerollHostOnly
【Host Only MOD】Only the host can use the Upgrade Reroller.ホストだけがUpgrade Rerollerを使用できます。
模組介紹 作者原文
COMPATIBLE WITH COSMETICS UPDATE V0.4.0.
RerollHostOnly
This mod is a host-only mod that allows only the host to start the Upgrade Reroller.
Non-host players can still see the Upgrade Reroller, but they cannot start the reroll process when host-only control is enabled.
When a non-host player tries to use it, the mod can send the configured blocked message.
By default, the chat message is:
Only the host can use the Upgrade Reroller.
The mod focuses only on preventing non-host players from starting the Upgrade Reroller.
Installation
- Install BepInEx 5.
- Place the compiled DLL into the BepInEx/plugins folder.
- Start the game once to generate the config file.
- Edit the config file if needed.
Usage
The host can use the Upgrade Reroller normally.
Non-host players are blocked before the reroll process starts.
In single player, normal rerolling is allowed by default.
Config
| Section | Setting | Description | Default | Minimum | Maximum |
|---|---|---|---:|---:|---:|
| General | Enable | Enables or disables this mod. | true | false | true |
| General | ShowDebugLog | Shows debug logs in the BepInEx console. | false | false | true |
| Permission | HostOnlyReroll | Allows only the host to start the Upgrade Reroller. | true | false | true |
| Permission | AllowSinglePlayer | Allows normal rerolling in single player. | true | false | true |
| Permission | BlockNonHostInteract | Blocks non-host interactions before reroll starts. | true | false | true |
| Message | ShowBlockedMessage | Shows a message when a non-host tries to use the reroller. | true | false | true |
| Message | BlockedMessage | Message shown when a non-host is blocked. | Only the host can use the Upgrade Reroller. | N/A | N/A |
| Message | ShowHoverTextForNonHost | Shows host-only hover text for non-host clients that also have this mod. | true | false | true |
| Message | NonHostHoverText | Hover text shown to non-host clients that also have this mod. | HOST ONLY REROLL | N/A | N/A |
Notes for players
- This is a host-only control mod.
- The host must install the mod for the permission control to matter.
- Non-host client installation is optional and mainly affects local hover text behavior.
- The mod does not change reroll cost, reroll result selection, upgrade rarity, or shop stock.
Notes for developers
The implementation avoids direct compile-time dependency on the UpgradeStand type by resolving it through reflection.
This prevents build failures in environments where the game class is not directly visible to the compiler.
The mod patches the interaction path and host-side grab path to prevent non-host players from starting the reroll process.
It does not patch weighted upgrade selection or cost calculation logic.
※Mod created by AI
COSMETICS UPDATE V0.4.0対応済み.
RerollHostOnly
REPOが好きな日本人のための日本人のみのREPOのDiscordサーバーあります!
參加は以下のリンクから!
このMODは、ホスト専用の、Upgrade Rerollerをホストだけが開始できるようにするMODです。
參加者はUpgrade Rerollerを見ることはできますが、ホスト限定製御が有効な場合、リロール処理を開始できません。
參加者が使用しようとした場合、設定されたブロックメッセージを送信できます。
初期設定のチャットメッセージは以下です。
Only the host can use the Upgrade Reroller.
このMODは、參加者がUpgrade Rerollerを開始できないようにする処理だけに絞っています。
インストール
- BepInEx 5を導入します。
- コンパイル済みDLLを BepInEx/plugins フォルダに配置します。
- ゲームを一度起動してConfigファイルを生成します。
- 必要に応じてConfigファイルを編集します。
使い方
ホストは通常通りUpgrade Rerollerを使用できます。
參加者はリロール処理が始まる前にブロックされます。
シングルプレイでは、初期設定で通常通りリロールできます。
設定項目
| セクション | 設定値名 | 設定內容説明 | 初期値 | 設定可能最小値 | 設定可能最大値 |
|---|---|---|---:|---:|---:|
| General | Enable | このMODを有効化または無効化します。 | true | false | true |
| General | ShowDebugLog | BepInExコンソールにデバッグログを表示します。 | false | false | true |
| Permission | HostOnlyReroll | Upgrade Rerollerの開始をホストのみに制限します。 | true | false | true |
| Permission | AllowSinglePlayer | シングルプレイで通常通りリロールできるようにします。 | true | false | true |
| Permission | BlockNonHostInteract | リロール開始前に非ホストの操作をブロックします。 | true | false | true |
| Message | ShowBlockedMessage | 非ホストが使用しようとした時にメッセージを表示します。 | true | false | true |
| Message | BlockedMessage | 非ホストがブ
安裝與使用 安裝:BepInEx 外掛
- 本站下載的壓縮包就是模組本體,通常是 BepInEx 外掛(解壓後得到 .dll 或外掛資料夾)。
- 建議流程:用社群模組管理器(如 r2modman)選中本遊戲後匯入該模組,管理器會自動裝好 BepInEx 前置並處理依賴。
- 手動流程:先在遊戲目錄裝好 BepInEx 載入器,再把解壓出的 .dll 或外掛資料夾放進 BepInEx/plugins/。
- 啟動遊戲,BepInEx 控制台會列印載入日誌;確認這個模組出現在日誌裡即為安裝成功。
帶「前置依賴」的模組需要一併安裝,否則不會載入。功能開關通常在遊戲內或外掛自帶的設定檔裡調整。
下面這些內容需要先安裝,否則該模組不會生效: