tModLoader v2024.11
A mod to make and play Terraria mods
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)