Terraria ModLoader  0.11.4
A framework for 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

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

Definition at line 13 of file CombinedHooks.cs.

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

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

+ Here is the call graph for this function:

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.

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

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

+ Here is the call graph for this function:

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.

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

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

+ Here is the call graph for this function:

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

Definition at line 23 of file CombinedHooks.cs.

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

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

+ Here is the call graph for this function:

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

Definition at line 28 of file CombinedHooks.cs.

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

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

+ Here is the call graph for this function: