tModLoader v2024.10
A mod to make and play Terraria mods
EntitySource_SpawnNPC Class Reference

Used when an NPC is spawned from NPC.SpawnNPC as part of natural biome/event based spawning.

Note that some bosses incorrectly use this source to spawn minions, and remix world pots use it to spawn slimes. (to be fixed in 1.4.5) More...

Inherits IEntitySource.

Public Member Functions

 EntitySource_SpawnNPC (string? context=null)
 

Properties

string? Context [get]
 Additional context identifier, particularly useful for set bonuses or accessory affects. See ItemSourceID and ProjectileSourceID for vanilla uses More...
 
- Properties inherited from IEntitySource
string? Context [get]
 Additional context identifier, particularly useful for set bonuses or accessory affects. See ItemSourceID and ProjectileSourceID for vanilla uses More...
 

Detailed Description

Used when an NPC is spawned from NPC.SpawnNPC as part of natural biome/event based spawning.

Note that some bosses incorrectly use this source to spawn minions, and remix world pots use it to spawn slimes. (to be fixed in 1.4.5)

Property Documentation

◆ Context

string? EntitySource_SpawnNPC.Context
get

Additional context identifier, particularly useful for set bonuses or accessory affects. See ItemSourceID and ProjectileSourceID for vanilla uses

Implements IEntitySource.