public static string GetProperUniqueId(int npcType) { var npc = new NPC(); npc.SetDefaults(npcType); return(NPCIdentityHelpers.GetProperUniqueId(npc)); }
//////////////// public static int FindNpcTypeByUniqueId(string uid) { NPC npc = new NPC(); for (int i = Main.npcTexture.Length - 1; i >= 0; i--) { npc.SetDefaults(i); if (NPCIdentityHelpers.GetUniqueId(npc) == uid) { return(i); } } return(-1); }