Cross Mod Provided Support - Werebearguy/AssortedCrazyThings GitHub Wiki
Cross Mod Provided Support
This mod provides ways for other mods to access, add, or modify things about this mod.
Mod.Call
Mod Calls are special functions provided by tModLoader that mod creators can use to interact with ACT in certain ways. They are accessible through Mod.Call and a given call name; for more details, see the tModLoader wiki. This section lists the mod call functions ACT currently adds, along with examples and what they are used for.
To preface, all examples will be written within this block:
if (ModLoader.TryGetMod("AssortedCrazyThings", out Mod ACDMod))
{
//Example here
}
GetDownedBoss
- Options: "SoulHarvester"
- Return value:
boolrepresenting the downed status of the boss.nullif not found or invalid - Example:
if (ACTMod.Call("GetDownedBoss", "SoulHarvester") == true) DoSomethingSpecial();