ValuablesDropItems
Valuables can drop configurable items when destroyed.
模組介紹 作者原文
ValuablesDropItems
Overview
ValuablesDropItems adds a new reward system to breakable valuables.
When a valuable is destroyed, the mod can roll for an item drop based on:
- the valuable size group
- the drop chance for that group
- the weight of each item in that group
This allows you to customize loot tables for:
- Small valuables
- Medium valuables
- Big valuables
The drop table can now include two miss outcomes:
- Empty
- Trap
You can also adjust the vertical spawn offset if dropped items clip into the ground.
Config
General
ConfigType
Selects how the item weight config is displayed.
Options:
- GroupedWeights
- ItemWeights
GroupedWeights example:
[Small]
GunHandgun = 3
RubberDuck = 1
[Medium]
GunHandgun = 5
[Big]
GunHandgun = 8
`
ItemWeights example:
[GunHandgun]
Small = 3
Medium = 5
Big = 8
Drop
SpawnHeightOffset
Adjusts how high dropped items appear above the broken valuable.
Example:
SpawnHeightOffset = 0.5
Increase this value if items spawn too low or fall through the ground.
SmallRollChance
Chance for a Small valuable to attempt an item drop.
Range:
- 0 to 100
Example:
SmallRollChance = 35
MediumRollChance
Chance for a Medium valuable to attempt an item drop.
Range:
- 0 to 100
BigRollChance
Chance for a Big valuable to attempt an item drop.
Range:
- 0 to 100
Notes:
- 0 = never roll
- 100 = always roll
Debug
EnableDebugLog
Enables debug logging for drop processing.
Example:
EnableDebugLog = false
Set this to true only when testing or troubleshooting.
Item Weight Settings
Each item uses a weight from 0 to 10.
Meaning:
- 0 = item will not be selected
- 1 = very low chance
- 10 = high chance
The final result is chosen by weighted random selection among items in the matching size group.
Notes
- Drop chance is checked first.
- If the chance roll succeeds, the mod then selects an item using the configured weights.
- Small valuables use the Small table.
- Medium valuables use the Medium table.
- Big valuables use the Big table.
- Some valuables are excluded from drop rolls.
- Drop tables can include miss outcomes such as Empty and Trap.
ValuablesDropItems
概要
ValuablesDropItems は、壊せる貴重品に対してアイテムドロップ要素を追加する Mod です。
貴重品が破壊されたとき、以下の設定に応じてアイテムドロップを行います。
- 貴重品のサイズグループ
- そのグループのドロップ確率
- そのグループ內の各アイテム重み
これにより、以下それぞれに対してドロップ內容を調整できます。
- Small の貴重品
- Medium の貴重品
- Big の貴重品
また、ドロップテーブルには以下の外れ枠を含めることができます。
- Empty
- Trap
また、地面への埋まり対策として、出現位置の高さ補正も設定できます。
Config
General
ConfigType
アイテム重み設定の表示形式を選びます。
選択肢:
- GroupedWeights
- ItemWeights
GroupedWeights 例:
[Small]
GunHandgun = 3
RubberDuck = 1
[Medium]
GunHandgun = 5
[Big]
GunHandgun = 8
ItemWeights 例:
[GunHandgun]
Small = 3
Medium = 5
Big = 8
Drop
SpawnHeightOffset
壊れた貴重品から出現するアイテムの高さ補正です。
例:
SpawnHeightOffset = 0.5
アイテムが低すぎる位置に出たり、地面に埋まる場合はこの値を上げてください。
SmallRollChance
Small サイズの貴重品がドロップ抽選を行う確率です。
範囲:
- 0 ~ 100
例:
SmallRollChance = 35
MediumRollChance
Medium サイズの貴重品がドロップ抽選を行う確率です。
範囲:
- 0 ~ 100
BigRollChance
Big サイズの貴重品がドロップ抽選を行う確率です。
範囲:
- 0 ~ 100
補足:
- 0 = 抽選しない
- 100 = 必ず抽選する
Debug
EnableDebugLog
ドロップ処理のデバッグログを有効にします。
例:
EnableDebugLog = false
テストや不具合確認のときだけ true にすることをおすすめします。
Item Weight Settings
各アイテムには 0 ~ 10 の重みを設定できます。
意味:
- 0 = 抽選対象外
- 1 = 出にくい
- 10 = 出やすい
同じサイズグループ內では、この重みに応じて抽選されます。
補足
- まずサイズごとのドロップ確率判定が行われます。
- その判定に成功した場合のみ、重み設定に従ってアイテムが選ばれます。
- Small の貴重品は Small テーブルを使います。
- Medium の貴重品は Medium テーブルを使います。
- Big の貴重品は Big テーブルを使います。
- 一部の貴重品はドロップ抽選の対象外です。
- ドロップテーブルには Empty / Trap の外れ枠を含めることができます。
安裝與使用 安裝:BepInEx 外掛
- 本站下載的壓縮包就是模組本體,通常是 BepInEx 外掛(解壓後得到 .dll 或外掛資料夾)。
- 建議流程:用社群模組管理器(如 r2modman)選中本遊戲後匯入該模組,管理器會自動裝好 BepInEx 前置並處理依賴。
- 手動流程:先在遊戲目錄裝好 BepInEx 載入器,再把解壓出的 .dll 或外掛資料夾放進 BepInEx/plugins/。
- 啟動遊戲,BepInEx 控制台會列印載入日誌;確認這個模組出現在日誌裡即為安裝成功。
帶「前置依賴」的模組需要一併安裝,否則不會載入。功能開關通常在遊戲內或外掛自帶的設定檔裡調整。
下面這些內容需要先安裝,否則該模組不會生效: