DropSourceForItems
Adds a drop source field to item pickups for modders to know what GameObject an item came from. Mod does nothing on it's own!
模組介紹 作者原文
DropSourceForItems
This mod adds new fields to GenericPickupController, GenericPickupController.CreatePickupInfo and PickupPickerController that store what GameObject an item was spawned from and its name (eventually for the cases of enemies dropping an item on death). To use these new fields, use the extension methods GetPickupDropSource, SetPickupDropSource and GetCachedPickupDropSourceName. The cached name is set for you when using SetPickupDropSource.
The functionality for setting drop sources were manually added, so mods' own item drops won't support this unless added by this mod or themselves. Items from choice pickups have their drop source set to the choice pickup itself instead of the thing that spawned the choice pickup (i.e. drop source from void potential is the void potential instead of the thing that spawned the void potential. void potential itself will have its drop source set to the thing that dropped it)
To use this, just add the DropSourcePatcherInterop.dll file from the mod as a project reference. Adding the mod through nuget may also work, but I have not tested that yet
Mods supported
- EnemiesReturns
- - Lynx shrine
- RiskyTweaks
- - Combat shrine dropping items
Todo
- Setup drop sources for items dropped by enemies on death
- - Then you could the cached drop source name (since the enemy would be null after death) to find the type of body that dropped the item
安裝與使用 安裝:BepInEx 外掛
- 本站下載的壓縮包就是模組本體,通常是 BepInEx 外掛(解壓後得到 .dll 或外掛資料夾)。
- 建議流程:用社群模組管理器(如 r2modman)選中本遊戲後匯入該模組,管理器會自動裝好 BepInEx 前置並處理依賴。
- 手動流程:先在遊戲目錄裝好 BepInEx 載入器,再把解壓出的 .dll 或外掛資料夾放進 BepInEx/plugins/。
- 啟動遊戲,BepInEx 控制台會列印載入日誌;確認這個模組出現在日誌裡即為安裝成功。
帶「前置依賴」的模組需要一併安裝,否則不會載入。功能開關通常在遊戲內或外掛自帶的設定檔裡調整。
下面這些內容需要先安裝,否則該模組不會生效: