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

◆ GetUnlockStateByKillCount() [2/2]

static BestiaryEntryUnlockState Terraria.GameContent.Bestiary.CommonEnemyUICollectionInfoProvider.GetUnlockStateByKillCount ( int killCount,
bool quickUnlock,
int fullKillCountNeeded )
inlinestatic

Definition at line 51 of file CommonEnemyUICollectionInfoProvider.cs.

52 {
53 BestiaryEntryUnlockState bestiaryEntryUnlockState = BestiaryEntryUnlockState.NotKnownAtAll_0;
54 int num = fullKillCountNeeded / 2;
55 int num2 = fullKillCountNeeded / 5;
56 if (quickUnlock && killCount > 0)
57 {
58 return BestiaryEntryUnlockState.CanShowDropsWithDropRates_4;
59 }
60 if (killCount >= fullKillCountNeeded)
61 {
62 return BestiaryEntryUnlockState.CanShowDropsWithDropRates_4;
63 }
64 if (killCount >= num)
65 {
66 return BestiaryEntryUnlockState.CanShowDropsWithoutDropRates_3;
67 }
68 if (killCount >= num2)
69 {
70 return BestiaryEntryUnlockState.CanShowStats_2;
71 }
72 if (killCount >= 1)
73 {
74 return BestiaryEntryUnlockState.CanShowPortraitOnly_1;
75 }
76 return BestiaryEntryUnlockState.NotKnownAtAll_0;
77 }