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

◆ ReforgePrice()

static bool Terraria.ModLoader.ItemLoader.ReforgePrice ( Item item,
ref int reforgePrice,
ref bool canApplyDiscount )
inlinestatic

Call all ModItem.ReforgePrice, then GlobalItem.ReforgePrice hooks.

Parameters
item
reforgePrice
canApplyDiscount
Returns

Definition at line 1952 of file ItemLoader.cs.

1953 {
1954 bool b = item.ModItem?.ReforgePrice(ref reforgePrice, ref canApplyDiscount) ?? true;
1955 EntityGlobalsEnumerator<GlobalItem> enumerator = HookReforgePrice.Enumerate(item).GetEnumerator();
1956 while (enumerator.MoveNext())
1957 {
1958 GlobalItem g = enumerator.Current;
1959 b &= g.ReforgePrice(item, ref reforgePrice, ref canApplyDiscount);
1960 }
1961 return b;
1962 }
static GlobalHookList< GlobalItem > HookReforgePrice

References Terraria.ModLoader.ItemLoader.HookReforgePrice, and Terraria.Item.ModItem.

Referenced by Terraria.Main.DrawInventory().

+ Here is the caller graph for this function: