REPO_JP-RerollHostOnly icon

RerollHostOnly

【Host Only MOD】Only the host can use the Upgrade Reroller.ホストだけがUpgrade Rerollerを使用できます。

By REPO_JP
Last updated a week ago
Total downloads 279
Total rating 2 
Categories Mods Upgrades Server-side AI Generated
Dependency string REPO_JP-RerollHostOnly-4.0.0
Dependants 0 other packages depend on this package

This mod requires the following mods to function

BepInEx-BepInExPack-5.4.2100 icon
BepInEx-BepInExPack

BepInEx pack for Mono Unity games. Preconfigured and ready to use.

Preferred version: 5.4.2100

README

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

  1. Install BepInEx 5.
  2. Place the compiled DLL into the BepInEx/plugins folder.
  3. Start the game once to generate the config file.
  4. 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サーバーあります! 参加は以下のリンクから! https://discord.gg/h5ATY4m5bZ

このMODは、ホスト専用の、Upgrade Rerollerをホストだけが開始できるようにするMODです。

参加者はUpgrade Rerollerを見ることはできますが、ホスト限定制御が有効な場合、リロール処理を開始できません。 参加者が使用しようとした場合、設定されたブロックメッセージを送信できます。 初期設定のチャットメッセージは以下です。

Only the host can use the Upgrade Reroller.

このMODは、参加者がUpgrade Rerollerを開始できないようにする処理だけに絞っています。

インストール

  1. BepInEx 5を導入します。
  2. コンパイル済みDLLを BepInEx/plugins フォルダに配置します。
  3. ゲームを一度起動してConfigファイルを生成します。
  4. 必要に応じて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 非ホストがブロックされた時に表示するメッセージです。 Only the host can use the Upgrade Reroller. N/A N/A
Message ShowHoverTextForNonHost このMODを導入している非ホスト向けにホスト専用Hover表示を出します。 true false true
Message NonHostHoverText このMODを導入している非ホスト向けのHover表示です。 HOST ONLY REROLL N/A N/A

プレイヤー向け注意点

  • このMODはホスト専用の制御MODです。
  • 権限制御を有効にするには、ホストがこのMODを導入する必要があります。
  • 参加者側の導入は任意で、主にローカルのHover表示に影響します。
  • リロール費用、リロール結果、アップグレードのレアリティ、ショップ在庫は変更しません。

開発者向け注意点

実装では UpgradeStand 型を直接参照せず、Reflectionで解決します。 これにより、ゲーム側クラスがコンパイル環境から直接見えない場合のビルド失敗を防ぎます。

このMODは、操作経路とホスト側のGrab経路をPatchし、非ホストがリロール処理を開始できないようにします。 重み付きアップグレード選定処理やコスト計算処理はPatchしません。

※AI生成MOD