CurseHelper
Allows for applying visible maximum health reduction.
截圖 共 1 張
模組介紹 作者原文
Allows for applying visible maximum health reduction.
Import line:
Curse = mods["Klehrik-CurseHelper"].setup()
Functions
Curse.apply(actor, id, amount) -> nil
Applies an instance of maximum health reduction to the actor.
Works multiplicatively with other curse applications
(e.g., 2 applications of 0.5 will result in 25% maximum health remaining).
Specifying an existing ID will override it.
Can be called as either host or client and it will automatically sync.
Parameters:
| Parameter | Type | Description |
| ------------- | -------- | --------------- |
| actor | CInstance or Actor object | The actor to apply curse to. |
| id | string | The identifier for the curse application. |
| amount | number | The amount of curse to apply (between 0 (none) and 1 (all health)). |
Curse.remove(actor, id) -> nil
Removes an instance of maximum health reduction from the actor.
Can be called as either host or client and it will automatically sync.
Parameters:
| Parameter | Type | Description |
| ------------- | -------- | --------------- |
| actor | CInstance or Actor object | The actor to remove curse from. |
| id | string | The identifier for the curse application. |
Curse.get_effective(actor) -> number, number, number
Returns the actor's effective (i.e., after curse) maximum health, shield, and barrier as unpacked values.
maximum health, maximum shield, maximum barrier
Parameters:
| Parameter | Type | Description |
| ------------- | -------- | --------------- |
| actor | CInstance or Actor object | The actor to check. |
Installation Instructions
Follow the instructions listed here.
Join the Return of Modding server for support.
Additional Contributions
@0n_x - Mini health bar overlay and general fixes
安裝與使用 安裝:按包內說明操作
- 解壓本站下載的壓縮包,先讀包內的 readme / 說明檔案。
- 多數模組依賴遊戲的模組載入器:常見做法是用社群模組管理器(如 r2modman)選中本遊戲安裝,由管理器自動處理載入器與依賴。
- 手動安裝時,把模組檔案放進遊戲目錄下對應的 Mod / plugins 資料夾。
- 啟動遊戲確認載入成功;帶「前置依賴」的模組需要把依賴一併安裝。
不同模組的安裝位置差異較大,包內說明是最可靠的依據。 若模組依賴 ReturnOfModding 之類的載入器,請先按包內說明裝好。
下面這些內容需要先安裝,否則該模組不會生效: