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

◆ GetProjectileSource_Buff()

IEntitySource Terraria.Player.GetProjectileSource_Buff ( int buffIndex)
inlinepackage

Definition at line 7825 of file Player.cs.

7826 {
7827 int buffId = buffType[buffIndex];
7828 return new EntitySource_Buff(this, buffId, buffIndex);
7829 }
Intended for mods to use when spawning projectiles periodically from buffs.
int[] buffType
The T:Terraria.ID.BuffIDs of all buffs this player has active. A value of 0 means that buff slot is...
Definition Player.cs:1684

References Terraria.Player.buffType.

Referenced by Terraria.Player.BuffHandle_SpawnPetIfNeeded(), Terraria.Player.GetSource_Buff(), and Terraria.Player.UpdateBuffs().

+ Here is the caller graph for this function: