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

◆ BuffHandle_SpawnPetIfNeededAndSetTime()

void Terraria.Player.BuffHandle_SpawnPetIfNeededAndSetTime ( int buffIndex,
ref bool petBool,
int petProjID,
int buffTimeToGive = 18000 )
inline

A helper method that handles code common to pet buffs. Can be used during the buff update code.
Sets the buff time to the value and spawns the corresponding pet projectile for the player if not yet spawned.

Parameters
buffIndex
petBool
petProjID
buffTimeToGive

Definition at line 10219 of file Player.cs.

10220 {
10223 }
void BuffHandle_SpawnPetIfNeeded(ref bool petBool, int petProjID, int buffIndex)
Definition Player.cs:10225
int[] buffTime
The remaining durations in ticks of all buffs this player has active. A value of 0 means that buff ...
Definition Player.cs:1692

References Terraria.Player.BuffHandle_SpawnPetIfNeeded(), and Terraria.Player.buffTime.

Referenced by Terraria.Player.UpdateBuffs().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: