


COMPATIBLE WITH R.E.P.O. V0.4.3.
This mod is a client-only mod that changes cosmetic gacha token consumption to prioritize higher rarity tokens when that rarity still has locked cosmetics.
Vanilla R.E.P.O. uses the newest cosmetic token first because the gacha machine reads and removes the last token in the saved token list.
This mod changes the token used right before the gacha machine starts. It searches your owned tokens and moves the best eligible token to the end of the list so the vanilla gacha logic can consume it normally.
The default priority order is:
If all cosmetics in a rarity are already unlocked, that rarity is skipped. For example, if you own an UltraRare token but all UltraRare cosmetics are already unlocked, the mod will try Rare next.
When all valid cosmetics are already unlocked, the mod cannot select a token based on locked cosmetics. In that case, the fallback order is controlled by config.
This is a client-only mod.
Each player has their own local cosmetic tokens and cosmetic unlock data. Because of that, the host cannot control another player's token consumption order with a host-only mod.
If every player wants this behavior, every player needs to install the mod.
Enables this mod.
truefalsetrueToken order used when all cosmetics are already unlocked.
DescendingAscendingDescendingDescending, AscendingUpdates the token UI after internally moving the selected token.
truefalsetrueOutputs the selected token rarity and selection reason to the BepInEx log.
falsefalsetrueThe mod patches CosmeticShopMachine.Interact() with a Harmony Prefix.
It does not skip the original method.
Instead, it prepares MetaManager.cosmeticTokens before vanilla code reads cosmeticTokens[cosmeticTokens.Count - 1].
The selected token is moved to the end of the list so vanilla CosmeticTokenRemove() still removes the correct token.
This avoids rewriting the reward, unlock, save, and RPC flow.
※Mod created by AI
R.E.P.O. V0.4.3対応済み.
REPOが好きな日本人のための日本人のみのREPOのDiscordサーバーあります! 参加は以下のリンクから! https://discord.gg/h5ATY4m5bZ
このMODは、クライアント専用の、コスメガチャで使用するトークンをレアリティ優先に変更するMODです。
バニラのR.E.P.O.では、コスメガチャ使用時に一番新しく取得したコスメトークンが使用されます。 これは、ガチャ処理が保存済みトークンリストの最後のトークンを参照し、そのまま最後のトークンを削除するためです。
このMODでは、ガチャ開始直前に使用すべきトークンを選択し、そのトークンだけをリスト末尾へ移動します。 そのため、ガチャ本体の処理はバニラのまま安全に動作します。
初期状態の優先順位は以下です。
対象レアリティのコスメをすべて所持している場合、そのレアリティはスキップされます。 例えば、ウルトラレアトークンを持っていてもウルトラレアコスメをすべて所持している場合、次にレアトークンの使用を試みます。
すべての有効なコスメを所持済みの場合、未所持コスメを基準にした選択ができません。 その場合はConfigで指定した順番でトークンを使用します。
このMODはクライアント専用MODです。
コスメトークンとコスメ解放状況は各プレイヤーのローカルデータとして管理されています。 そのため、ホスト専用MODとして参加者のトークン使用順を制御することはできません。
全員に同じ挙動を適用したい場合は、各プレイヤーが導入してください。
このMODを有効化します。
truefalsetrue全コスメ所持済み時のトークン使用順です。
DescendingAscendingDescendingDescending, Ascending選択トークンを内部移動した後にトークンUIを更新します。
truefalsetrue選択されたトークンのレアリティと選択理由をBepInExログに出力します。
falsefalsetrueこのMODは CosmeticShopMachine.Interact() にHarmony Prefixを当てます。
Prefixでは元処理を止めません。
バニラ処理が cosmeticTokens[cosmeticTokens.Count - 1] を読む直前に、使用対象トークンを MetaManager.cosmeticTokens の末尾へ移動します。
その結果、バニラの CosmeticTokenRemove() がそのまま正しいトークンを削除します。
これにより、報酬解放、保存、RPCなどの処理を書き換えずに済みます。
※AI生成MOD