tModLoader v2022.09
A mod to make and play Terraria mods
Terraria.GameContent.Personalities.PersonalityDatabase Class Reference

Public Member Functions

PersonalityProfile GetOrCreateProfileByNPCID (int npcId)
 
void Register (int npcId, IShopPersonalityTrait trait)
 
void Register (IShopPersonalityTrait trait, params int[] npcIds)
 
bool TryGetProfileByNPCID (int npcId, out PersonalityProfile profile)