Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ ModifyEntriesThatNeedIt_NameOverride()

void Terraria.GameContent.Bestiary.BestiaryDatabaseNPCsPopulator.ModifyEntriesThatNeedIt_NameOverride ( int npcID,
string newNameKey )
inlineprivate

Definition at line 505 of file BestiaryDatabaseNPCsPopulator.cs.

506 {
507 BestiaryEntry bestiaryEntry = FindEntryByNPCID(npcID);
508 bestiaryEntry.Info.RemoveAll((IBestiaryInfoElement x) => x is NamePlateInfoElement);
509 bestiaryEntry.Info.Add(new NamePlateInfoElement(newNameKey, npcID));
510 bestiaryEntry.Icon = new UnlockableNPCEntryIcon(npcID, 0f, 0f, 0f, 0f, newNameKey);
511 }
void Add(TKey key, TValue value)

References System.Collections.Generic.Dictionary< TKey, TValue >.Add(), and Terraria.GameContent.Bestiary.BestiaryDatabaseNPCsPopulator.FindEntryByNPCID().

Referenced by Terraria.GameContent.Bestiary.BestiaryDatabaseNPCsPopulator.ModifyEntriesThatNeedIt().