tModLoader v2024.10
A mod to make and play Terraria mods
|
Enumerates the different immunity cooldown options for damage affecting a player. Most damage uses General and applies immunity via Player.immune. Other damage immunity cooldowns are tracked in Player.hurtCooldowns indexed by these values.Correct usage of ImmunityCooldownID in ModLoader.ModProjectile.CooldownSlot, ModLoader.ModNPC.CanHitPlayer(Terraria.Player, ref int), and Player.Hurt(DataStructures.PlayerDeathReason, int, int, bool, bool, int, bool, float, float, float) are essential for correctly applying damage to the player. More...
Enumerates the different immunity cooldown options for damage affecting a player. Most damage uses General and applies immunity via Player.immune. Other damage immunity cooldowns are tracked in Player.hurtCooldowns indexed by these values.
Correct usage of ImmunityCooldownID in ModLoader.ModProjectile.CooldownSlot, ModLoader.ModNPC.CanHitPlayer(Terraria.Player, ref int), and Player.Hurt(DataStructures.PlayerDeathReason, int, int, bool, bool, int, bool, float, float, float) are essential for correctly applying damage to the player.