tModLoader v0.11.8.9
A mod to make and play Terraria mods
Terraria.ModLoader.CombinedHooks Class Reference

Static Public Member Functions

static void GetWeaponDamage (Player player, Item item, ref int damage)
 
static void ModifyManaCost (Player player, Item item, ref float reduce, ref float mult)
 
static void ModifyWeaponDamage (Player player, Item item, ref float add, ref float mult, ref float flat)
 
static void OnConsumeMana (Player player, Item item, int manaConsumed)
 
static void OnMissingMana (Player player, Item item, int neededMana)
 

Detailed Description

Definition at line 5 of file CombinedHooks.cs.

Member Function Documentation

◆ GetWeaponDamage()

static void Terraria.ModLoader.CombinedHooks.GetWeaponDamage ( Player  player,
Item  item,
ref int  damage 
)
static

Definition at line 13 of file CombinedHooks.cs.

13 {
14 ItemLoader.GetWeaponDamage(item, player, ref damage);
15 PlayerHooks.GetWeaponDamage(player, item, ref damage);
16 }

References Terraria.ModLoader.ItemLoader.GetWeaponDamage(), and Terraria.ModLoader.PlayerHooks.GetWeaponDamage().

+ Here is the call graph for this function:

◆ ModifyManaCost()

static void Terraria.ModLoader.CombinedHooks.ModifyManaCost ( Player  player,
Item  item,
ref float  reduce,
ref float  mult 
)
static

Definition at line 18 of file CombinedHooks.cs.

18 {
19 ItemLoader.ModifyManaCost(item, player, ref reduce, ref mult);
20 PlayerHooks.ModifyManaCost(player, item, ref reduce, ref mult);
21 }

References Terraria.ModLoader.ItemLoader.ModifyManaCost(), and Terraria.ModLoader.PlayerHooks.ModifyManaCost().

+ Here is the call graph for this function:

◆ ModifyWeaponDamage()

static void Terraria.ModLoader.CombinedHooks.ModifyWeaponDamage ( Player  player,
Item  item,
ref float  add,
ref float  mult,
ref float  flat 
)
static

Definition at line 7 of file CombinedHooks.cs.

7 {
8 ItemLoader.ModifyWeaponDamage(item, player, ref add, ref mult, ref flat);
9 PlayerHooks.ModifyWeaponDamage(player, item, ref add, ref mult, ref flat);
10 }

References Terraria.ModLoader.ItemLoader.ModifyWeaponDamage(), and Terraria.ModLoader.PlayerHooks.ModifyWeaponDamage().

+ Here is the call graph for this function:

◆ OnConsumeMana()

static void Terraria.ModLoader.CombinedHooks.OnConsumeMana ( Player  player,
Item  item,
int  manaConsumed 
)
static

Definition at line 23 of file CombinedHooks.cs.

23 {
24 ItemLoader.OnConsumeMana(item, player, manaConsumed);
25 PlayerHooks.OnConsumeMana(player, item, manaConsumed);
26 }

References Terraria.ModLoader.ItemLoader.OnConsumeMana(), and Terraria.ModLoader.PlayerHooks.OnConsumeMana().

+ Here is the call graph for this function:

◆ OnMissingMana()

static void Terraria.ModLoader.CombinedHooks.OnMissingMana ( Player  player,
Item  item,
int  neededMana 
)
static

Definition at line 28 of file CombinedHooks.cs.

28 {
29 ItemLoader.OnMissingMana(item, player, neededMana);
30 PlayerHooks.OnMissingMana(player, item, neededMana);
31 }

References Terraria.ModLoader.ItemLoader.OnMissingMana(), and Terraria.ModLoader.PlayerHooks.OnMissingMana().

+ Here is the call graph for this function: