ValuablesDropItems
Valuables can drop configurable items when destroyed.
| Last updated | 14 hours ago |
| Total downloads | 140 |
| Total rating | 1 |
| Categories | Mods Server-side |
| Dependency string | Kai09TA-ValuablesDropItems-0.1.1 |
| Dependants | 0 other packages depend on this package |
This mod requires the following mods to function
BepInEx-BepInExPack
BepInEx pack for Mono Unity games. Preconfigured and ready to use.
Preferred version: 5.4.2304README
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
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:
GroupedWeightsItemWeights
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:
0to100
Example:
SmallRollChance = 35
MediumRollChance
Chance for a Medium valuable to attempt an item drop.
Range:
0to100
BigRollChance
Chance for a Big valuable to attempt an item drop.
Range:
0to100
Notes:
0= never roll100= 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 selected1= very low chance10= 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.
ValuablesDropItems
概要
ValuablesDropItems は、壊せる貴重品に対してアイテムドロップ要素を追加する Mod です。
貴重品が破壊されたとき、以下の設定に応じてアイテムドロップを行います。
- 貴重品のサイズグループ
- そのグループのドロップ確率
- そのグループ内の各アイテム重み
これにより、以下それぞれに対してドロップ内容を調整できます。
- Small の貴重品
- Medium の貴重品
- Big の貴重品
また、地面への埋まり対策として、出現位置の高さ補正も設定できます。
Config
General
ConfigType
アイテム重み設定の表示形式を選びます。
選択肢:
GroupedWeightsItemWeights
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 テーブルを使います。