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

◆ GetAdjustedItemScale()

float Terraria.Player.GetAdjustedItemScale ( Item item)
inline

Used to determine what the overall scale of an item should be.
M:Terraria.ModLoader.CombinedHooks.ModifyItemScale(Terraria.Player,Terraria.Item,System.Single@) is called here.

Parameters
itemThe item to fetch the adjusted scale of.
Returns
The final scale of the item, after the Titan Glove effect and all modded calculations.

Definition at line 41782 of file Player.cs.

41783 {
41784 float scale = item.scale;
41785 if (item.melee)
41786 {
41787 ApplyMeleeScale(ref scale);
41788 }
41789 CombinedHooks.ModifyItemScale(this, item, ref scale);
41790 return scale;
41791 }
static void ModifyItemScale(Player player, Item item, ref float scale)
void ApplyMeleeScale(ref float scale)
Definition Player.cs:41793

References Terraria.Player.ApplyMeleeScale(), Terraria.Item.melee, Terraria.ModLoader.CombinedHooks.ModifyItemScale(), and Terraria.Item.scale.

Referenced by Terraria.Player.ItemCheck_ApplyUseStyle_Inner(), Terraria.Player.ItemCheck_EmitUseVisuals(), Terraria.Player.ItemCheck_GetMeleeHitbox(), Terraria.Player.ItemCheck_Shoot(), and Terraria.Player.ProcessHitAgainstNPC().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: