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

◆ Spawn_WallOfFleshGoatMountFlames()

static void Terraria.GameContent.Drawing.ParticleOrchestrator.Spawn_WallOfFleshGoatMountFlames ( ParticleOrchestraSettings settings)
inlinestaticprivate

Definition at line 2975 of file ParticleOrchestrator.cs.

2976 {
2977 //IL_005a: Unknown result type (might be due to invalid IL or missing references)
2978 //IL_006c: Unknown result type (might be due to invalid IL or missing references)
2979 //IL_0071: Unknown result type (might be due to invalid IL or missing references)
2980 //IL_0076: Unknown result type (might be due to invalid IL or missing references)
2981 //IL_0097: Unknown result type (might be due to invalid IL or missing references)
2982 //IL_009c: Unknown result type (might be due to invalid IL or missing references)
2983 //IL_00c5: Unknown result type (might be due to invalid IL or missing references)
2984 //IL_00cc: Unknown result type (might be due to invalid IL or missing references)
2985 //IL_00d6: Unknown result type (might be due to invalid IL or missing references)
2986 //IL_00dc: Unknown result type (might be due to invalid IL or missing references)
2987 //IL_00e1: Unknown result type (might be due to invalid IL or missing references)
2988 //IL_00e8: Unknown result type (might be due to invalid IL or missing references)
2989 //IL_00ef: Unknown result type (might be due to invalid IL or missing references)
2990 //IL_00f4: Unknown result type (might be due to invalid IL or missing references)
2991 //IL_0115: Unknown result type (might be due to invalid IL or missing references)
2992 //IL_0128: Unknown result type (might be due to invalid IL or missing references)
2993 //IL_012e: Unknown result type (might be due to invalid IL or missing references)
2994 //IL_016e: Unknown result type (might be due to invalid IL or missing references)
2995 //IL_0178: Unknown result type (might be due to invalid IL or missing references)
2996 //IL_017d: Unknown result type (might be due to invalid IL or missing references)
2997 float num = 50f;
2998 for (int i = -1; i <= 1; i++)
2999 {
3000 int num2 = Main.rand.NextFromList(new short[3] { 326, 327, 328 });
3001 Main.instance.LoadProjectile(num2);
3002 Player player = Main.player[settings.IndexOfPlayerWhoInvokedThis];
3003 float num3 = Main.rand.NextFloat() * 0.9f + 0.1f;
3004 Vector2 vector = settings.PositionInWorld + new Vector2((float)i * 5.3333335f, 0f);
3005 FlameParticle flameParticle = _poolFlame.RequestParticle();
3006 flameParticle.SetBasicInfo(TextureAssets.Projectile[num2], null, Vector2.Zero, vector);
3007 flameParticle.SetTypeInfo(num, settings.IndexOfPlayerWhoInvokedThis, player.cMount);
3008 flameParticle.FadeOutNormalizedTime = 0.3f;
3009 flameParticle.ScaleAcceleration = Vector2.One * num3 * (-1f / 60f) / num;
3010 flameParticle.Scale = Vector2.One * num3;
3011 Main.ParticleSystem_World_BehindPlayers.Add(flameParticle);
3012 if (Main.rand.Next(8) == 0)
3013 {
3014 Dust dust = Dust.NewDustDirect(vector, 4, 4, 6, 0f, 0f, 100);
3015 if (Main.rand.Next(2) == 0)
3016 {
3017 dust.noGravity = true;
3018 dust.fadeIn = 1.15f;
3019 }
3020 else
3021 {
3022 dust.scale = 0.6f;
3023 }
3024 dust.velocity *= 0.6f;
3025 dust.velocity.Y -= 1.2f;
3026 dust.noLight = true;
3027 dust.position.Y -= 4f;
3028 dust.shader = GameShaders.Armor.GetSecondaryShader(player.cMount, player);
3029 }
3030 }
3031 }
static ParticlePool< FlameParticle > _poolFlame
static ArmorShaderDataSet Armor
Definition GameShaders.cs:7

References Terraria.GameContent.Drawing.ParticleOrchestrator._poolFlame, Terraria.Graphics.Shaders.GameShaders.Armor, Terraria.Player.cMount, Terraria.Main.instance, Terraria.Dust.NewDustDirect(), Terraria.Main.ParticleSystem_World_BehindPlayers, Terraria.Main.player, Terraria.GameContent.TextureAssets.Projectile, and Terraria.Main.rand.

Referenced by Terraria.GameContent.Drawing.ParticleOrchestrator.SpawnParticlesDirect().

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