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

◆ GetLowestAvailableUnlockStateFromEntriesThatAreInWorld()

BestiaryEntryUnlockState Terraria.GameContent.Bestiary.SalamanderShellyDadUICollectionInfoProvider.GetLowestAvailableUnlockStateFromEntriesThatAreInWorld ( BestiaryEntryUnlockState unlockstatus)
inlineprivate

Definition at line 30 of file SalamanderShellyDadUICollectionInfoProvider.cs.

31 {
32 BestiaryEntryUnlockState bestiaryEntryUnlockState = BestiaryEntryUnlockState.CanShowDropsWithDropRates_4;
33 int[,] cavernMonsterType = NPC.cavernMonsterType;
34 for (int i = 0; i < cavernMonsterType.GetLength(0); i++)
35 {
36 for (int j = 0; j < cavernMonsterType.GetLength(1); j++)
37 {
38 string persistentId = ContentSamples.NpcBestiaryCreditIdsByNpcNetIds[cavernMonsterType[i, j]];
39 BestiaryEntryUnlockState unlockStateByKillCount = CommonEnemyUICollectionInfoProvider.GetUnlockStateByKillCount(Main.BestiaryTracker.Kills.GetKillCount(persistentId), quickUnlock: false, _killCountNeededToFullyUnlock);
40 if (bestiaryEntryUnlockState > unlockStateByKillCount)
41 {
42 bestiaryEntryUnlockState = unlockStateByKillCount;
43 }
44 }
45 }
46 unlockstatus = bestiaryEntryUnlockState;
47 return unlockstatus;
48 }
static Dictionary< int, string > NpcBestiaryCreditIdsByNpcNetIds

References Terraria.GameContent.Bestiary.SalamanderShellyDadUICollectionInfoProvider._killCountNeededToFullyUnlock, Terraria.Main.BestiaryTracker, Terraria.NPC.cavernMonsterType, Terraria.GameContent.Bestiary.CommonEnemyUICollectionInfoProvider.GetUnlockStateByKillCount(), and Terraria.ID.ContentSamples.NpcBestiaryCreditIdsByNpcNetIds.

Referenced by Terraria.GameContent.Bestiary.SalamanderShellyDadUICollectionInfoProvider.GetEntryUICollectionInfo().