BountyAPI
This mod makes adding custom bountys to the pitch-black stone hassle-free. It is targeted at mod development and doesn't do anything on its own.
模組介紹 作者原文
Bounty API
This mod serves as an API for other mods to use. It does nothing on its own. Use this mod to add custom challenges to the pitch-black stone in Hades 2. The functionality is documented using Lua annotations, so writing the following in your main.lua should give you autocomplete:
---@module "Siuhnexus-BountyAPI"
bountyAPI = mods["Siuhnexus-BountyAPI"]
Make sure to register your challenges only once when loading, so if you follow the structure of the mod template, just do something like this in your ready.lua:
bountyAPI.RegisterBounty({
Id = "ModAuthor-ModName_SuperDuperChallenge",
Title = "The Ultimate Challenge",
Description = "Face every guardian at once",
Difficulty = 5,
IsStandardBounty = false,
BiomeChar = "F",
DataOverrides = function (RegisterValues)
print("Overriding all the needed game tables for this challenge run...")
end,
SetupFunctions = function (BountyRunData, FromSave)
if FromSave then
print("Reacting to the data found in the persisted storage for this challenge run...")
else
print("Setting up the persisted data storage for this challenge run...")
end
end,
RoomTransition = function (BountyRunData, RoomName)
print("Room ".. RoomName.. " is being left. Choosing next room...")
end,
CanEnd = function (BountyRunData, RoomName)
print("Determining whether this challenge run should end")
return true
end,
EndFunctions = function (BountyRunData, Cleared)
print("Challenge run is ending. Cleaning up...")
end
})
If you have questions/ideas/weird bugs, feel free to open an issue or a pr.
安裝與使用 安裝:按包內說明操作
- 解壓本站下載的壓縮包,先讀包內的 readme / 說明檔案。
- 多數模組依賴遊戲的模組載入器:常見做法是用社群模組管理器(如 r2modman)選中本遊戲安裝,由管理器自動處理載入器與依賴。
- 手動安裝時,把模組檔案放進遊戲目錄下對應的 Mod / plugins 資料夾。
- 啟動遊戲確認載入成功;帶「前置依賴」的模組需要把依賴一併安裝。
不同模組的安裝位置差異較大,包內說明是最可靠的依據。 Hades II 使用遊戲自帶的 Mod 匯入功能,解壓後的包按 readme 放入指定目錄即可。
下面這些內容需要先安裝,否則該模組不會生效: