Skip to content

[1.4] Other Mod Calls

Sheepish Shepherd edited this page Jul 9, 2022 · 8 revisions

What is this?

This mod provides more calls that just submitting entries for the checklist or boss log. [TODO: More explanation and add other mod calls]

Submitting extra boss info

If your mod adds collectibles, spawn items, or npcs to either a vanilla entry or another mod's entry, you can do so using this mod call.

[1] Entry Type

string

The first argument needed is what type of data you are submitting.

AddToBossLoot

Use this call if your mod adds an item to any boss's loot ONLY IF it is not dropped through normal means. This mod call should be solely used for items that are not dropped by any npc type within a boss's IDs. For example, the Torch God NPC itself does not drop the Torch God's Favor, but instead just 'places' it inside a player's inventory.

AddToBossCollection

Use this call if your mod provides a special item to another mod's boss such as a new Music Box or vanity. This is also for mods that add a new universal collectible item such as a trading card or figurine. Collection types will automatically be detected.

AddToBossSpawnItems

Use this call if your mod adds a spawn item to a vanilla boss or to a boss of another mod. Crafting recipes for all submitted items are automatically detected. Note: there is currently no way to add spawn information.

AddToEventNPCs

Use this call if your mod adds npc to any event, whether its vanilla or modded. If you have setup the npc's drops properly, the event's loot table should automatically update.

[1] Boss Key

string

To obtain a boss's key, simply open Boss Checklist's debug configs and turn on 'Access Internal Names'. When its on, you'll be able to go to the boss page you want to add to and use the copy buttons next to the name to get the boss key.

Access Internal Names config

[2] Item Types

int or List<int>

The type/ID of your item(s) or npc(s). Please use ModContent.ItemType<>() and ModContent.NPCType<>() respectively.

Clone this wiki locally