Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
SalamanderShellyDadUICollectionInfoProvider.cs
Go to the documentation of this file.
1using Terraria.ID;
2using Terraria.UI;
3
5
7{
9
11
17
19 {
22 {
23 bestiaryEntryUnlockState = GetLowestAvailableUnlockStateFromEntriesThatAreInWorld(bestiaryEntryUnlockState);
24 }
26 result.UnlockState = bestiaryEntryUnlockState;
27 return result;
28 }
29
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 }
49
51 {
53 int[,] cavernMonsterType = NPC.cavernMonsterType;
54 for (int i = 0; i < cavernMonsterType.GetLength(0); i++)
55 {
56 for (int j = 0; j < cavernMonsterType.GetLength(1); j++)
57 {
59 {
60 return true;
61 }
62 }
63 }
64 return false;
65 }
66
68 {
69 return null;
70 }
71}
BestiaryEntryUnlockState GetUnlockStateByKillCount(int killCount, bool quickUnlock)
BestiaryEntryUnlockState GetLowestAvailableUnlockStateFromEntriesThatAreInWorld(BestiaryEntryUnlockState unlockstatus)
static Dictionary< int, string > NpcBestiaryCreditIdsByNpcNetIds
static Dictionary< string, int > NpcNetIdsByPersistentIds
static BestiaryUnlocksTracker BestiaryTracker
Definition Main.cs:1868
static int[,] cavernMonsterType
Definition NPC.cs:579