tModLoader v0.11.8.9
A mod to make and play Terraria mods
CombinedHooks.cs
Go to the documentation of this file.
1using System;
2
3namespace Terraria.ModLoader
4{
5 public static class CombinedHooks
6 {
7 public static void ModifyWeaponDamage(Player player, Item item, ref float add, ref float mult, ref float flat) {
8 ItemLoader.ModifyWeaponDamage(item, player, ref add, ref mult, ref flat);
9 PlayerHooks.ModifyWeaponDamage(player, item, ref add, ref mult, ref flat);
10 }
11
12 [Obsolete]
13 public static void GetWeaponDamage(Player player, Item item, ref int damage) {
14 ItemLoader.GetWeaponDamage(item, player, ref damage);
15 PlayerHooks.GetWeaponDamage(player, item, ref damage);
16 }
17
18 public static void ModifyManaCost(Player player, Item item, ref float reduce, ref float mult) {
19 ItemLoader.ModifyManaCost(item, player, ref reduce, ref mult);
20 PlayerHooks.ModifyManaCost(player, item, ref reduce, ref mult);
21 }
22
23 public static void OnConsumeMana(Player player, Item item, int manaConsumed) {
24 ItemLoader.OnConsumeMana(item, player, manaConsumed);
25 PlayerHooks.OnConsumeMana(player, item, manaConsumed);
26 }
27
28 public static void OnMissingMana(Player player, Item item, int neededMana) {
29 ItemLoader.OnMissingMana(item, player, neededMana);
30 PlayerHooks.OnMissingMana(player, item, neededMana);
31 }
32 }
33}
static void OnMissingMana(Player player, Item item, int neededMana)
static void OnConsumeMana(Player player, Item item, int manaConsumed)
static void ModifyWeaponDamage(Player player, Item item, ref float add, ref float mult, ref float flat)
Definition: CombinedHooks.cs:7
static void ModifyManaCost(Player player, Item item, ref float reduce, ref float mult)
static void GetWeaponDamage(Player player, Item item, ref int damage)
This serves as the central class from which item-related functions are carried out....
Definition: ItemLoader.cs:22
static void ModifyManaCost(Item item, Player player, ref float reduce, ref float mult)
Calls ModItem.ModifyManaCost, then all GlobalItem.ModifyManaCost hooks.
Definition: ItemLoader.cs:427
static void OnConsumeMana(Item item, Player player, int manaConsumed)
Calls ModItem.OnConsumeMana, then all GlobalItem.OnConsumeMana hooks.
Definition: ItemLoader.cs:457
static void GetWeaponDamage(Item item, Player player, ref int damage)
Calls ModItem.GetWeaponDamage, then all GlobalItem.GetWeaponDamage hooks.
Definition: ItemLoader.cs:475
static void ModifyWeaponDamage(Item item, Player player, ref float add, ref float mult, ref float flat)
Calls ModItem.HookModifyWeaponDamage, then all GlobalItem.HookModifyWeaponDamage hooks.
Definition: ItemLoader.cs:492
static void OnMissingMana(Item item, Player player, int neededMana)
Calls ModItem.OnMissingMana, then all GlobalItem.OnMissingMana hooks.
Definition: ItemLoader.cs:442
This is where all ModPlayer hooks are gathered and called.
Definition: PlayerHooks.cs:21
static void OnConsumeMana(Player player, Item item, int manaConsumed)
Definition: PlayerHooks.cs:598
static void ModifyManaCost(Player player, Item item, ref float reduce, ref float mult)
Definition: PlayerHooks.cs:576
static void ModifyWeaponDamage(Player player, Item item, ref float add, ref float mult, ref float flat)
Calls ModItem.HookModifyWeaponDamage, then all GlobalItem.HookModifyWeaponDamage hooks.
Definition: PlayerHooks.cs:627
static void OnMissingMana(Player player, Item item, int manaNeeded)
Definition: PlayerHooks.cs:587
static void GetWeaponDamage(Player player, Item item, ref int damage)
Definition: PlayerHooks.cs:611