Mod Calls (Catalyst)
< Catalyst
Jump to navigation
Jump to search
Mod Calls are special functions that can be used with tModLoader's .Call()
function to get or set different values from other mods. This page lists the Mod Calls that are provided by the Catalyst Mod along with what they are used for.
An example of a mod call: catalyst.Call("itemset_superbossrarity", ModContent.ItemType<MyItem>())
An asterisk (*) after a parameter type indicates that the function accepts multiple arguments of that type at once. Optional arguments will be specified, along with their default value if applicable.
Mod Calls Table
Function | Returns | Parameters |
---|---|---|
itemset_superbossrarity | (bool) Whether or not the list already contains the ID | (int) Item ID |
worlddefeats.astrageldon | (bool) Whether or not Astrageldon has been defeated | None |
worlddefeats.astrageldon_set | (bool) returns the argument | (bool) Whether or not Astrageldon is marked as defeated |
astrageldon.any | (bool) returns if Astrageldon is currently alive | None |
astrageldon.secondphase | (bool) returns if Astrageldon is in its 2nd phase, will provide an error if Astrageldon is not currently alive | None |
astrageldon.secondphase_index | (bool) returns if Astrageldon is in its 2nd phase, will provide errors if the index is out of bounds of the array, or the NPC in question is not of type "Astrageldon" | (int) NPC WhoAmI/Index |
anyimportantbgsactive | (bool) returns true if Astrageldon's 2nd phase background is active | None |
npcset.asteroidbusterinteraction | void | Option 1: (int) npc type (float) (optional) stun multiplier, 1 is default, remember to write 'f' at the end of the number for it to be a float (byte) (optional) stun chance, default is 1, remember to cast as a byte Option 2: (string) 'complete immunity' - this is the only accepted string for option 2 (int) npc type |