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

◆ Volcano_TrySpawningVolcano()

void Terraria.Player.Volcano_TrySpawningVolcano ( NPC npc,
Item sItem,
float damage,
float knockBack,
Rectangle itemRectangle )
inlineprivate

Definition at line 43338 of file Player.cs.

43339 {
43340 //IL_0021: Unknown result type (might be due to invalid IL or missing references)
43341 //IL_0026: Unknown result type (might be due to invalid IL or missing references)
43342 //IL_0030: Unknown result type (might be due to invalid IL or missing references)
43343 //IL_0036: Unknown result type (might be due to invalid IL or missing references)
43344 if (_spawnVolcanoExplosion && Main.myPlayer == whoAmI && (npc == null || npc.HittableForOnHitRewards()))
43345 {
43346 Vector2 center = npc.Center;
43347 int num = 2;
43348 Projectile.NewProjectile(GetProjectileSource_Item(sItem), center.X, center.Y, 0f, -1f * gravDir, 978, (int)damage, knockBack, whoAmI, 0f, num);
43349 _spawnVolcanoExplosion = false;
43350 }
43351 }
int whoAmI
The index of this Entity within its specific array. These arrays track the entities in the world....
Definition Entity.cs:16
IEntitySource GetProjectileSource_Item(Item item)
Definition Player.cs:7831
bool _spawnVolcanoExplosion
Definition Player.cs:3001

References Terraria.Player._spawnVolcanoExplosion, Terraria.Entity.Center, Terraria.Player.GetProjectileSource_Item(), Terraria.Player.gravDir, Terraria.NPC.HittableForOnHitRewards(), Terraria.Main.myPlayer, Terraria.Projectile.NewProjectile(), and Terraria.Entity.whoAmI.

Referenced by Terraria.Player.ApplyNPCOnHitEffects().

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