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

◆ TryGetSacrificeNumbers()

bool Terraria.GameContent.Creative.ItemsSacrificedUnlocksTracker.TryGetSacrificeNumbers ( int itemId,
out int amountWeHave,
out int amountNeededTotal )
inline

Definition at line 45 of file ItemsSacrificedUnlocksTracker.cs.

46 {
48 {
49 itemId = value;
50 }
52 if (!CreativeItemSacrificesCatalog.Instance.TryGetSacrificeCountCapToUnlockInfiniteItems(itemId, out amountNeededTotal))
53 {
54 return false;
55 }
57 return true;
58 }
bool TryGetValue(TKey key, [MaybeNullWhen(false)] out TValue value)
static Dictionary< int, int > CreativeResearchItemPersistentIdOverride

References Terraria.GameContent.Creative.ItemsSacrificedUnlocksTracker._sacrificesCountByItemIdCache, Terraria.ID.ContentSamples.CreativeResearchItemPersistentIdOverride, Terraria.GameContent.Creative.CreativeItemSacrificesCatalog.Instance, and System.Collections.Generic.Dictionary< TKey, TValue >.TryGetValue().

Referenced by Terraria.GameContent.Creative.ItemsSacrificedUnlocksTracker.FillListOfItemsThatCanBeObtainedInfinitely().