CurrencyAsToken

版本 v1.0.0·更新於 2026-05-15

Use in-game currency as a replacement for cosmetic tokens when your tokens are not enough. This lets you keep using the Cosmetic Shop Machine in the shop even after you run out of tokens.

模組介紹 作者原文

金幣代替代幣 / CurrencyAsToken

REPO 遊戲交流 QQ 羣:824639225

支持 R.E.P.O. v0.4

簡介

當玩家沒有裝飾品代幣(Token)時,可以直接花費金幣使用裝飾品抽獎機。

有 Token 時,仍然走遊戲原版抽獎流程。

這版規則是:

  • 靠近抽獎機後按 E 交互
  • 僅在商店場景生效
  • 先扣金幣,再進入原版抽獎流程
  • 無 Token 時顯示專用金幣抽獎提示

默認配置

默認費用按 K 爲單位:

  • 基礎花費:10
  • 每次遞增:1
  • 最大花費:20

默認概率:

  • 普通:50%
  • 稀有:30%
  • 珍貴:15%
  • 超稀有:5%

聯機說明

多人模式下,這個模組採用“主機權威”邏輯:

  • 主機關閉模組功能時,客戶端不會顯示金幣抽獎提示,也不能使用該功能
  • 主機開啓模組功能時,客戶端會讀取主機同步出來的設置
  • 開關、語言、費用、概率、遞增次數,都以主機設置爲準
  • 真正的扣錢、概率判定、遞增次數增加、存檔保存,都在主機執行

建議:

  • 主機安裝並啓用本模組後,房間內功能纔會生效
  • 客戶端也安裝本模組時,提示、交互和聯機體驗會更完整
  • 如果只想禁止該功能,直接由主機關閉 模組啓用

配置界面

當前界面規則:

  • 左側模組列表名稱使用英文註冊名 CurrencyAsToken
  • 右側配置面板使用中文
  • 語言項保持 語言/Language 的中英並列格式
  • 模組名稱 字段單獨顯示爲 金幣代替代幣

配置項

| 配置項 | 默認值 | 說明 |

|--------|--------|------|

| 模組啓用 | 開啓 | 總開關,關閉後金幣代替代幣功能完全失效 |

| 語言/Language | 中文 | 公開文檔和配置說明語言切換 |

| 基礎花費/K | 10 | 首次金幣抽獎花費,範圍 10-100 K |

| 每次遞增/K | 1 | 每次金幣抽獎後追加的花費,範圍 0-10 K |

| 最大花費/K | 20 | 單次金幣抽獎花費上限,範圍 10-100 K |

| 普通中獎概率/% | 50 | 普通獎勵的概率參數,範圍 0-100% |

| 稀有中獎概率/% | 30 | 稀有獎勵的概率參數,範圍 0-100% |

| 珍貴中獎概率/% | 15 | 珍貴獎勵的概率參數,範圍 0-100% |

| 超稀有中獎概率/% | 5 | 超稀有獎勵的概率參數,範圍 0-100% |

English

CurrencyAsToken allows players to spend in-game currency as a replacement for cosmetic tokens when they do not have enough tokens to use the Cosmetic Shop Machine.

If a token is available, the machine still follows the original game behavior.

This mod only changes the fallback case where the player has no usable token and would otherwise be unable to pull.

Features

  • Press E near the Cosmetic Shop Machine to use currency instead of a token
  • Only works in the shop
  • Currency is deducted before the original pull sequence starts
  • A custom prompt is shown when the player has no token
  • The normal token flow is preserved when tokens are available

Default Settings

All cost values use K as the displayed unit:

  • Base Cost / K: 10
  • Cost Increment / K: 1
  • Max Cost / K: 20

Default chance values:

  • Common Chance / %: 50
  • Uncommon Chance / %: 30
  • Rare Chance / %: 15
  • Ultra Rare Chance / %: 5

Multiplayer

This mod uses host-authoritative behavior in multiplayer:

  • The host must install and enable the mod for the feature to work in the lobby
  • Clients read the host's synced settings
  • Enable state, language, cost values, chance values, and pull count are all controlled by the host
  • Currency deduction, chance rolls, pull count updates, and save writes are performed by the host

For the best experience, install the mod on both host and clients.

UI Notes

  • The mod list entry uses the English registration name CurrencyAsToken
  • The configuration panel on the right uses Chinese labels
  • The language entry keeps the mixed format 語言/Language
  • The 模組名稱 field is displayed as 金幣代替代幣

安裝與使用 安裝:BepInEx 外掛

  1. 本站下載的壓縮包就是模組本體,通常是 BepInEx 外掛(解壓後得到 .dll 或外掛資料夾)。
  2. 建議流程:用社群模組管理器(如 r2modman)選中本遊戲後匯入該模組,管理器會自動裝好 BepInEx 前置並處理依賴。
  3. 手動流程:先在遊戲目錄裝好 BepInEx 載入器,再把解壓出的 .dll 或外掛資料夾放進 BepInEx/plugins/。
  4. 啟動遊戲,BepInEx 控制台會列印載入日誌;確認這個模組出現在日誌裡即為安裝成功。

帶「前置依賴」的模組需要一併安裝,否則不會載入。功能開關通常在遊戲內或外掛自帶的設定檔裡調整。

前置依賴

下面這些內容需要先安裝,否則該模組不會生效:

BepInEx-BepInExPack

檔案與校驗

檔案名稱
CurrencyAsToken-1.0.0.zip
檔案大小
169.5 KiB