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

◆ AddImmuneTime()

void Terraria.Player.AddImmuneTime ( int cooldownCounterId,
int immuneTime )
inline

Adds to either Player.immuneTime or Player.hurtCooldowns based on the cooldownCounterId.

Parameters
cooldownCounterIdSee T:Terraria.ID.ImmunityCooldownID for valid ids.
immuneTimeExtra immunity time to add

Definition at line 58688 of file Player.cs.

58689 {
58690 if (cooldownCounterId < 0)
58691 {
58692 this.immuneTime += immuneTime;
58693 }
58694 else
58695 {
58697 }
58698 }
int[] hurtCooldowns
Definition Player.cs:3259

References Terraria.Player.hurtCooldowns, and Terraria.Player.immuneTime.