HealthForAnts
KAYCEE'S MOD SUPPORT! Create custom Ant cards for the health stat instead of the attack stat. THIS DOES NOT ADD ANY ANT CARDS!
模組介紹 作者原文
Installation
To install this plugin you first need to install BepInEx as a mod loader for Inscryption. A guide to do this can be
found here
You will also need version 2.0.1+ of the InscryptionAPI plugin.
To install this mod, you simply need to put the HealthForAnts.dll file in the same folder that the InscryptionAPI
plugin exists.
Using HealthForAnts for your cards
In your project, you must add a reference to the
HealthForAnts.dll. Example here
Once you've done that, create a class file and add these lines of code at the top. This will load the HealthForAnts
ability and all the necessary abilities before your card gets loaded:
[BepInDependency("cyantist.inscryption.api")]
[BepInDependency("julianperge.inscryption.cards.healthForAnts")]
public class NameOfYourClass: BaseUnityPlugin {
// code
}
Next, creating a custom Ant card will look something like this:
[BepInDependency("cyantist.inscryption.api")]
[BepInDependency("julianperge.inscryption.cards.healthForAnts")]
public class AntsTest: BaseUnityPlugin
{
void Awake()
{
const string name = "DomeAnt";
const string displayedName = "Dome Ant";
const string descryption = "Loves to guard his friends";
CardInfo info = InscryptionAPI.Card.CardManager.New(
name,
displayedName,
0,
1,
descryption
).AddSpecialAbilities(HealthForAnts.FullSpecial.Id).AddTraits(Trait.Ant).AddTribes(Tribe.Insect).SetCost(1).SetDefaultPart1Card().SetEvolve("AntQueen", 1).SetPortrait("dome_ant.png");
info.specialStatIcon = HealthForAnts.FullStatIcon.Id;
}
}
Debugging
The easiest way to check if the plugin is working properly or to debug an error is to enable the console. This can be
done by changing
[Logging.Console]
\## Enables showing a console for log output.
\# Setting type: Boolean
\# Default value: false
Enabled = false
to
[Logging.Console]
\## Enables showing a console for log output.
\# Setting type: Boolean
\# Default value: false
Enabled = true
in Inscryption/BepInEx/Config/BepInEx.cfg
If you want help debugging you can find me on Inscryption modding discord as
xXxStoner420BongMasterxXx.
安裝與使用 安裝:BepInEx 外掛
- 本站下載的壓縮包就是模組本體,通常是 BepInEx 外掛(解壓後得到 .dll 或外掛資料夾)。
- 建議流程:用社群模組管理器(如 r2modman)選中本遊戲後匯入該模組,管理器會自動裝好 BepInEx 前置並處理依賴。
- 手動流程:先在遊戲目錄裝好 BepInEx 載入器,再把解壓出的 .dll 或外掛資料夾放進 BepInEx/plugins/。
- 啟動遊戲,BepInEx 控制台會列印載入日誌;確認這個模組出現在日誌裡即為安裝成功。
帶「前置依賴」的模組需要一併安裝,否則不會載入。功能開關通常在遊戲內或外掛自帶的設定檔裡調整。
下面這些內容需要先安裝,否則該模組不會生效: