Applied provi particle to all the weapons

This commit is contained in:
Xyk committed 2024-10-01 14:41:25 -07:00
1 parent 651eb4b88a
commit 65ffc136bc
11 files changed
+130 -82

No files matched your search

+5 -4
View File
@@ -29,7 +29,7 @@ namespace CalamityMod.Items.Weapons.Rogue
Item.useAnimation = 19;
Item.useStyle = ItemUseStyleID.Swing;
Item.useTime = 25;
Item.knockBack = 25f;
Item.knockBack = 2f;
Item.value = CalamityGlobalItem.RarityTurquoiseBuyPrice;
Item.rare = ModContent.RarityType<Turquoise>();
Item.shoot = ModContent.ProjectileType<MoltenAmputatorProj>();
@@ -38,7 +38,7 @@ namespace CalamityMod.Items.Weapons.Rogue
}
public override bool CanUseItem(Player player) => player.altFunctionUse == 2 || true; //|| player.ownedProjectileCounts[Item.shoot] <= 0;
public override bool AltFunctionUse(Player player) => true;
public override float StealthDamageMultiplier => 1.07f;
public override float StealthDamageMultiplier => 0.4f;
public override float UseSpeedMultiplier(Player player)
{
if (player.altFunctionUse == 2)
@@ -49,6 +49,7 @@ namespace CalamityMod.Items.Weapons.Rogue
}
public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback)
{
bool fastToss = player.Calamity().amputatorBuff > 0;
if (player.altFunctionUse == 2)
{
if (player.Calamity().StealthStrikeAvailable())
@@ -85,8 +86,8 @@ namespace CalamityMod.Items.Weapons.Rogue
SoundEngine.PlaySound(fire with { Volume = 0.5f, Pitch = (player.Calamity().amputatorBuff > 0 ? -0.4f + (player.Calamity().amputatorBuff * 0.02f) : Main.rand.NextFloat(-0.4f, -0.65f)) }, position);
// Since the positioning of the scythe is important, its velocity is based on your mouse position
Vector2 staticSpeed = Utils.DirectionTo(position, position + velocity) * Utils.Distance(position, player.Calamity().mouseWorld) * 0.022f;
Projectile scythe = Projectile.NewProjectileDirect(source, position, staticSpeed.RotatedByRandom((player.Calamity().amputatorBuff > 0 ? 0.8f : 0)), type, damage, knockback, player.whoAmI, 0, 0, 0);
if (player.Calamity().amputatorBuff > 0)
Projectile scythe = Projectile.NewProjectileDirect(source, position, staticSpeed.RotatedByRandom((player.Calamity().amputatorBuff > 0 ? 0.7f : 0)), type, (int)(damage * (fastToss ? 0.65f : 1)), knockback, player.whoAmI, 0, 0, 0);
if (fastToss)
{
scythe.extraUpdates = 6;
scythe.Calamity().stealthStrike = true;
@@ -729,10 +729,10 @@ MoltenAmputator: {
DisplayName: Molten Amputator
Tooltip:
'''
Throw a spinning scythe, that lingers at your cursor, press right to recall it
If a scythe is recalled while it's on an enemy it will amputate them, dealing very high damage to the enemy it hits
With full stealth, press right to buff yourself and increase your attack speed for your next few attacks
You cannot recall scythes thrown while buffed
Throw a spinning scythe, that lingers at your cursor, press right to recall it
If a scythe is recalled while it's on an enemy it will amputate them, dealing very high damage to the enemy it hits
With full stealth, press right to buff yourself and increase your attack speed for your next few attacks
You cannot recall scythes thrown while buffed
'''
}
+18 -4
View File
@@ -10,6 +10,7 @@ using ReLogic.Utilities;
using Terraria;
using Terraria.Audio;
using Terraria.DataStructures;
using Terraria.Graphics.Renderers;
using Terraria.Localization;
using Terraria.ModLoader;
@@ -255,10 +256,18 @@ namespace CalamityMod.Projectiles.Melee
{
particleVel = (new Vector2(0, 15 * -Projectile.ai[1] * Owner.direction) * Main.rand.NextFloat(0.3f, 1f)).RotatedBy(FinalRotation + MathHelper.ToRadians(-45));
particlePos = Owner.Center + (new Vector2(Main.rand.Next(30, 170), 0).RotatedBy(FinalRotation + MathHelper.ToRadians(-45)));
Dust dust2 = Dust.NewDustPerfect(particlePos, ModContent.DustType<LightDust>(), -particleVel.RotatedByRandom(0.3f));
dust2.scale = Main.rand.NextFloat(0.95f, 1.45f);
dust2.noGravity = true;
dust2.color = Main.rand.NextBool(3) ? mainColor2 : mainColor1;
if (i < 2)
{
Dust dust2 = Dust.NewDustPerfect(particlePos, ModContent.DustType<LightDust>(), -particleVel.RotatedByRandom(0.3f));
dust2.scale = Main.rand.NextFloat(0.95f, 1.45f);
dust2.noGravity = true;
dust2.color = Main.rand.NextBool(3) ? mainColor2 : mainColor1;
}
else
{
Particle spark = new CustomSpark(particlePos, (-particleVel * 0.2f).RotatedByRandom(0.3f), "CalamityMod/Particles/ProvidenceMarkParticle", false, 17, Main.rand.NextFloat(0.9f, 1.1f), Color.Lerp(Color.Orchid, Color.White, Main.rand.NextFloat(0, 0.7f)), new Vector2(1.3f, 0.5f), true, false, 0, false, false, Main.rand.NextFloat(0.1f, 0.2f));
GeneralParticleHandler.SpawnParticle(spark);
}
}
}
}
@@ -284,6 +293,11 @@ namespace CalamityMod.Projectiles.Melee
float randRot = Main.rand.NextFloat(-10, -45);
Vector2 dustVel = (new Vector2(0, 15 * -Projectile.ai[1] * Owner.direction)).RotatedBy(FinalRotation + MathHelper.ToRadians(randRot));
GeneralParticleHandler.SpawnParticle(new CustomSpark(Owner.Center + (new Vector2(170, 0).RotatedBy(FinalRotation + MathHelper.ToRadians(randRot)).RotatedByRandom(0.4f)), -dustVel * Main.rand.NextFloat(0.4f, 0.7f), "CalamityMod/Particles/LargeBloom", false, Main.rand.Next(7, 9 + 1), Main.rand.NextFloat(0.3f, 0.35f), (Main.rand.NextBool(4) ? Color.DarkGoldenrod : Color.Goldenrod), new Vector2(1f, 1.2f), true, false, 0, false, false, 0.45f));
if (i % 3 == 0)
{
Particle spark = new CustomSpark(Owner.Center + (new Vector2(170, 0).RotatedBy(FinalRotation + MathHelper.ToRadians(randRot)).RotatedByRandom(0.4f)), -dustVel * Main.rand.NextFloat(0.4f, 0.7f), "CalamityMod/Particles/ProvidenceMarkParticle", false, 27, Main.rand.NextFloat(1.15f, 1.3f), Main.rand.NextBool(4) ? Color.Khaki : Color.Orange, new Vector2(1.3f, 0.5f), true, false, 0, false, false, Main.rand.NextFloat(0.1f, 0.2f));
GeneralParticleHandler.SpawnParticle(spark);
}
}
for (int i = 0; i < 6; i++)
{
+11 -3
View File
@@ -103,9 +103,17 @@ namespace CalamityMod.Projectiles.Melee
dust.color = Main.rand.NextBool() ? Color.OrangeRed : Color.Goldenrod;
dust.noLightEmittence = true;
}
Particle spark = new SparkParticle(Projectile.Center + Main.rand.NextVector2Circular(80, 80), -Projectile.velocity * Main.rand.NextFloat(0.1f, 1f), false, 11, 0.9f, Main.rand.NextBool() ? Color.Goldenrod : Color.Orange);
GeneralParticleHandler.SpawnParticle(spark);
if (Main.rand.NextBool())
{
Particle spark = new SparkParticle(Projectile.Center + Main.rand.NextVector2Circular(80, 80), -Projectile.velocity * Main.rand.NextFloat(0.1f, 1f), false, 11, 0.9f, Main.rand.NextBool() ? Color.Goldenrod : Color.Orange);
GeneralParticleHandler.SpawnParticle(spark);
}
else
{
Particle spark = new CustomSpark(Projectile.Center + Main.rand.NextVector2Circular(80, 80), -Projectile.velocity * Main.rand.NextFloat(0.1f, 1f), "CalamityMod/Particles/ProvidenceMarkParticle", false, 27, Main.rand.NextFloat(1.15f, 1.3f), Main.rand.NextBool(4) ? Color.Khaki : Color.Orange, new Vector2(1.3f, 0.5f), true, false, 0, false, false, Main.rand.NextFloat(0.1f, 0.2f));
GeneralParticleHandler.SpawnParticle(spark);
}
}
}
else
@@ -178,15 +178,23 @@ namespace CalamityMod.Projectiles.Melee.Yoyos
for (int i = 0; i < (int)(30 * power); i++)
{
bool isSpark = Main.rand.NextBool(5);
Dust dust = Dust.NewDustPerfect(Projectile.Center, isSpark ? 278 : ModContent.DustType<LightDust>(), ((new Vector2(15, 15) * power).RotatedByRandom(100)) * Main.rand.NextFloat(0.2f, 1f));
dust.noGravity = true;
dust.scale = Main.rand.NextFloat(1.85f, 2.15f) * power * (isSpark ? 0.5f : 1);
dust.color = Main.rand.NextBool(5) ? Color.Khaki : Color.Goldenrod;
if (isSpark)
dust.noGravity = false;
if (Main.rand.NextBool())
{
Particle spark = new CustomSpark(Projectile.Center, ((new Vector2(19, 19) * power).RotatedByRandom(100)) * Main.rand.NextFloat(0.2f, 1f), "CalamityMod/Particles/ProvidenceMarkParticle", false, 27, Main.rand.NextFloat(1.15f, 1.3f), Main.rand.NextBool(4) ? Color.Khaki : Color.Orange, new Vector2(1.3f, 0.5f), true, false, 0, false, false, Main.rand.NextFloat(0.1f, 0.2f));
GeneralParticleHandler.SpawnParticle(spark);
}
else
dust.noLightEmittence = true;
{
bool isSpark = Main.rand.NextBool(5);
Dust dust = Dust.NewDustPerfect(Projectile.Center, isSpark ? 278 : ModContent.DustType<LightDust>(), ((new Vector2(15, 15) * power).RotatedByRandom(100)) * Main.rand.NextFloat(0.2f, 1f));
dust.noGravity = true;
dust.scale = Main.rand.NextFloat(1.85f, 2.15f) * power * (isSpark ? 0.5f : 1);
dust.color = Main.rand.NextBool(5) ? Color.Khaki : Color.Goldenrod;
if (isSpark)
dust.noGravity = false;
else
dust.noLightEmittence = true;
}
}
Particle orb1 = new CustomPulse(Projectile.Center, Vector2.Zero, Color.Goldenrod, "CalamityMod/Particles/SoftRoundExplosion", new Vector2(1, 1), Main.rand.NextFloat(-10, 10), 0, 0.14f * power, 15);
@@ -87,7 +87,7 @@ namespace CalamityMod.Projectiles.Ranged
public override void HoldoutAI()
{
// If there's no player, or the player is the server, or the owner's stunned, there'll be no holdout.
if (Owner.CantUseHoldout() && PostFireCooldown <= 0)
if (Owner.CantUseHoldout() && PostFireCooldown <= 0 && shootingTimer < (int)(Owner.itemAnimationMax * 0.8f))
{
Projectile.Kill();
}
@@ -98,6 +98,11 @@ namespace CalamityMod.Projectiles.Ranged
dust.color = Color.Goldenrod;
dust.noLightEmittence = true;
}
for (int i = 0; i < 4; i++)
{
Particle spark = new CustomSpark(Projectile.Center + Main.rand.NextVector2Circular(10, 10), (Projectile.velocity.SafeNormalize(Vector2.UnitX) * 10) * Main.rand.NextFloat(0.2f, 1f), "CalamityMod/Particles/ProvidenceMarkParticle", false, 15, Main.rand.NextFloat(1.35f, 1.6f), Main.rand.NextBool(4) ? Color.Khaki : effectsColor, new Vector2(1.3f, 0.5f), true, false, 0, false, false, Main.rand.NextFloat(0.45f, 0.55f));
GeneralParticleHandler.SpawnParticle(spark);
}
}
public override bool PreDraw(ref Color lightColor)
{
+15 -7
View File
@@ -73,7 +73,7 @@ namespace CalamityMod.Projectiles.Ranged
SoundEngine.PlaySound(fire with { Volume = 0.45f, Pitch = (0 - 0.3f * Utils.GetLerpValue(0, 300, rainDownTimer, true)) }, Projectile.Center);
for (int i = 0; i < (isClusterRocket ? 4 : 2); i++)
{
Vector2 variance = new Vector2(80 * (isClusterRocket ? 3 : 1), 0) * Main.rand.NextFloat(-1f, 1f);
Vector2 variance = (i % 2 == 0 ? 0.2f : 1) * (new Vector2(80 * (isClusterRocket ? 3 : 1), 0) * Main.rand.NextFloat(-1f, 1f));
Vector2 velocity = (((targeted != null ? targeted.Center : Owner.Calamity().mouseWorld) - Projectile.Center).SafeNormalize(Vector2.UnitX) * Main.rand.NextFloat(8, 12)) + variance * 0.008f;
Projectile.NewProjectile(Projectile.GetSource_FromThis(), Projectile.Center + variance, velocity, ModContent.ProjectileType<BlissfulBombardierSplitProjectile>(), (int)(Projectile.damage * (isClusterRocket ? 0.15f : 0.3f)), Projectile.knockBack, Projectile.owner, Projectile.ai[0], 0f);
}
@@ -184,11 +184,19 @@ namespace CalamityMod.Projectiles.Ranged
}
for (int i = 0; i < 25; i++)
{
Dust l = Dust.NewDustPerfect(Projectile.Center, 278);
l.velocity = new Vector2(5, 5).RotatedByRandom(100) * blastRadiusVisual * Main.rand.NextFloat(0.4f, 1f);
l.scale = Main.rand.NextFloat(0.6f, 0.8f) * blastRadiusVisual * 0.2f * (i % 2 == 0 ? 2.2f : 1.8f);
l.noGravity = false;
l.color = staticEffectsColor;
if (i < 14)
{
Particle spark = new CustomSpark(Projectile.Center, new Vector2(4, 4).RotatedByRandom(100) * blastRadiusVisual * Main.rand.NextFloat(0.3f, 1f), "CalamityMod/Particles/ProvidenceMarkParticle", false, 27, Main.rand.NextFloat(2.45f, 2.7f), Color.Lerp(Color.Orchid, Color.White, Main.rand.NextFloat(0, 0.7f)), new Vector2(1.3f, 0.5f), true, false, 0, false, false, Main.rand.NextFloat(0.35f, 0.4f));
GeneralParticleHandler.SpawnParticle(spark);
}
else
{
Dust l = Dust.NewDustPerfect(Projectile.Center, 278);
l.velocity = new Vector2(5, 5).RotatedByRandom(100) * blastRadiusVisual * Main.rand.NextFloat(0.4f, 1f);
l.scale = Main.rand.NextFloat(0.6f, 0.8f) * blastRadiusVisual * 0.2f * (i % 2 == 0 ? 2.2f : 1.8f);
l.noGravity = false;
l.color = staticEffectsColor;
}
}
for (int i = 0; i < 15; i++)
{
@@ -210,7 +218,7 @@ namespace CalamityMod.Projectiles.Ranged
Texture2D texture = ModContent.Request<Texture2D>("CalamityMod/Projectiles/Ranged/NukeOfBliss").Value;
float fade2 = rainDownTimer > 0 ? Utils.GetLerpValue(reachedPeakTime, reachedPeakTime * 0.7f, time) : 1;
Projectile.DrawProjectileWithBackglow(staticEffectsColor with { A = 0 } * fade2, Color.Lerp(lightColor, Color.Goldenrod with { A = 0 }, Utils.GetLerpValue(0, reachedPeakTime, time, true)) * fade2, 6f * Utils.GetLerpValue(0, reachedPeakTime, time, true), texture);
Projectile.DrawProjectileWithBackglow(staticEffectsColor with { A = 0 } * fade2, lightColor * fade2, 6f * Utils.GetLerpValue(0, reachedPeakTime, time, true), texture);
return false;
}
}
+13 -5
View File
@@ -72,11 +72,19 @@ namespace CalamityMod.Projectiles.Ranged
{
for (int i = 0; i < 5; i++)
{
Dust dust = Dust.NewDustPerfect(Projectile.Center, ModContent.DustType<LightDust>(), (Projectile.velocity).RotatedByRandom(0.8f) * Main.rand.NextFloat(0.2f, 1f));
dust.noGravity = true;
dust.scale = Main.rand.NextFloat(0.85f, 1.15f);
dust.color = Main.rand.NextBool(5) ? Color.Khaki : Color.Goldenrod;
dust.noLightEmittence = true;
if (i < 3)
{
Dust dust = Dust.NewDustPerfect(Projectile.Center, ModContent.DustType<LightDust>(), (Projectile.velocity).RotatedByRandom(0.8f) * Main.rand.NextFloat(0.2f, 1f));
dust.noGravity = true;
dust.scale = Main.rand.NextFloat(0.85f, 1.15f);
dust.color = Main.rand.NextBool(5) ? Color.Khaki : Color.Goldenrod;
dust.noLightEmittence = true;
}
else
{
Particle spark = new CustomSpark(Projectile.Center, (Projectile.velocity).RotatedByRandom(0.8f) * Main.rand.NextFloat(0.2f, 1f), "CalamityMod/Particles/ProvidenceMarkParticle", false, 17, Main.rand.NextFloat(1.15f, 1.3f), Color.Lerp(Color.Orchid, Color.White, Main.rand.NextFloat(0, 0.7f)), new Vector2(1.3f, 0.5f), true, false, 0, false, false, Main.rand.NextFloat(0.3f, 0.4f));
GeneralParticleHandler.SpawnParticle(spark);
}
Particle spark2 = new GlowSparkParticle(Projectile.Center, (Projectile.velocity).RotatedByRandom(0.8f) * Main.rand.NextFloat(0.2f, 1f), false, 9, 0.017f, Color.Goldenrod, new Vector2(1.5f, 0.7f), true, false, 1.3f);
GeneralParticleHandler.SpawnParticle(spark2);
+36 -46
View File
@@ -50,26 +50,11 @@ namespace CalamityMod.Projectiles.Rogue
Projectile.ignoreWater = true;
Projectile.penetrate = -1;
Projectile.usesLocalNPCImmunity = true;
Projectile.localNPCHitCooldown = 25 * Projectile.MaxUpdates;
Projectile.localNPCHitCooldown = 35 * Projectile.MaxUpdates;
Projectile.timeLeft = 900;
Projectile.extraUpdates = 4;
Projectile.DamageType = RogueDamageClass.Instance;
}
private void SpawnBlobs(int blobCount)
{
for (int i = 0; i < blobCount; i++)
{
Vector2 iAmSpeed = new Vector2((float)Main.rand.Next(-100, 101), (float)Main.rand.Next(-100, 101));
while (iAmSpeed.X == 0f && iAmSpeed.Y == 0f)
{
iAmSpeed = new Vector2((float)Main.rand.Next(-100, 101), (float)Main.rand.Next(-100, 101));
}
iAmSpeed.Normalize();
iAmSpeed *= (float)Main.rand.Next(70, 101) * 0.1f;
Projectile.NewProjectile(Projectile.GetSource_FromThis(), Projectile.Center.X, Projectile.Center.Y, iAmSpeed.X, iAmSpeed.Y, ModContent.ProjectileType<MoltenBlobThrown>(), (int)(Projectile.damage * 0.25), 0f, Projectile.owner, 0f, 0f);
}
}
public override void AI()
{
Player Owner = Main.player[Projectile.owner];
@@ -229,7 +214,6 @@ namespace CalamityMod.Projectiles.Rogue
}
}
}
time++;
}
public override void ModifyHitNPC(NPC target, ref NPC.HitModifiers modifiers)
@@ -237,38 +221,44 @@ namespace CalamityMod.Projectiles.Rogue
Player Owner = Main.player[Projectile.owner];
if (Projectile.Calamity().stealthStrike)
{
SoundStyle fire = new("CalamityMod/Sounds/Item/BlazingCoreParryActivate");
SoundEngine.PlaySound(fire with { Volume = 0.6f, Pitch = Main.rand.NextFloat(0.6f, 0.75f) }, Projectile.Center);
int numParts = 6;
for (int i = 0; i < numParts; i++)
if (Projectile.numHits == 0)
{
float fade = 4;
SoundStyle fire = new("CalamityMod/Sounds/Item/FinalDawnSlash");
SoundEngine.PlaySound(fire with { Volume = 0.5f, Pitch = Main.rand.NextFloat(0.4f, 0.85f), MaxInstances = -1 }, Projectile.Center);
}
float rot = fakeRot + (MathHelper.TwoPi * i / numParts);
Vector2 vel = (new Vector2(0, -130).RotatedBy(rot).RotatedBy(-1.3f * direction));
Particle spark2 = new CustomSpark(Projectile.Center + new Vector2(0, -70 * squash.X).RotatedBy(rot), (vel * 4).RotatedByRandom(1.4f) * fade, "CalamityMod/Particles/ProvidenceMarkParticle", false, 24, Main.rand.NextFloat(1.15f, 1.3f), Color.Lerp(Color.Orchid, Color.White, Main.rand.NextFloat(0, 0.7f)), new Vector2(1.3f, 0.5f), true, false, 0, false, false, Main.rand.NextFloat(0.4f, 0.5f));
GeneralParticleHandler.SpawnParticle(spark2);
BloodParticle blood = new BloodParticle(Projectile.Center + new Vector2(0, -70 * squash.X).RotatedBy(rot), (vel * 4).RotatedByRandom(1.4f) * fade, Main.rand.Next(13, 24 + 1), Main.rand.NextFloat(0.85f, 1.2f), Main.rand.NextBool() ? Color.Goldenrod : Color.Orange);
GeneralParticleHandler.SpawnParticle(blood);
if (Main.rand.NextBool(6))
if (Projectile.numHits < 8)
{
int numParts = 2;
for (int i = 0; i < numParts; i++)
{
Dust dust2 = Dust.NewDustPerfect(Projectile.Center + new Vector2(0, -70 * squash.X).RotatedBy(rot), Main.rand.NextBool(4) ? 278 : ModContent.DustType<LightDust>());
dust2.noGravity = true;
dust2.scale = dust2.type == 278 ? 0.95f : 1.2f;
dust2.color = Color.Lerp(Color.Orchid, Color.White, Main.rand.NextFloat(0, 0.7f));
dust2.velocity = (vel * 4).RotatedByRandom(1.4f) * fade;
}
else
{
Dust dust = Dust.NewDustPerfect(Projectile.Center + new Vector2(0, -70 * squash.X).RotatedBy(rot), Main.rand.NextBool(4) ? 278 : ModContent.DustType<LightDust>());
dust.noGravity = true;
dust.scale = dust.type == 278 ? 0.75f : 0.9f;
dust.color = Main.rand.NextBool(4) ? Color.Khaki : Color.Goldenrod;
dust.velocity = (vel * 4).RotatedByRandom(1.4f) * fade;
float fade = 4;
float rot = fakeRot + (MathHelper.TwoPi * i / numParts) * 0.4f + Projectile.numHits * 5;
Vector2 vel = (new Vector2(0, -130).RotatedBy(rot).RotatedBy(-1.3f * direction)) * squash.X;
Particle spark2 = new CustomSpark(Projectile.Center + new Vector2(0, -70 * squash.X).RotatedBy(rot), (vel * 0.02f).RotatedByRandom(1.4f) * fade, "CalamityMod/Particles/GlowSpark", false, 18, Main.rand.NextFloat(0.015f, 0.025f), Color.Goldenrod, new Vector2(2f, 0.5f), true, false, 0, false, false, Main.rand.NextFloat(0.6f, 0.7f));
GeneralParticleHandler.SpawnParticle(spark2);
BloodParticle blood = new BloodParticle(Projectile.Center + new Vector2(0, -70 * squash.X).RotatedBy(rot), (vel * 0.04f).RotatedByRandom(1.4f) * fade, Main.rand.Next(13, 24 + 1), Main.rand.NextFloat(0.85f, 1.2f), Main.rand.NextBool() ? Color.Goldenrod : Color.Orange);
GeneralParticleHandler.SpawnParticle(blood);
if (Main.rand.NextBool(6))
{
Dust dust2 = Dust.NewDustPerfect(Projectile.Center + new Vector2(0, -70 * squash.X).RotatedBy(rot), Main.rand.NextBool(4) ? 278 : ModContent.DustType<LightDust>());
dust2.noGravity = true;
dust2.scale = dust2.type == 278 ? 0.95f : 1.2f;
dust2.color = Color.Lerp(Color.Orchid, Color.White, Main.rand.NextFloat(0, 0.7f));
dust2.velocity = (vel * 0.04f).RotatedByRandom(1.4f) * fade;
}
else
{
Dust dust = Dust.NewDustPerfect(Projectile.Center + new Vector2(0, -70 * squash.X).RotatedBy(rot), Main.rand.NextBool(4) ? 278 : ModContent.DustType<LightDust>());
dust.noGravity = true;
dust.scale = dust.type == 278 ? 0.75f : 0.9f;
dust.color = Main.rand.NextBool(4) ? Color.Khaki : Color.Goldenrod;
dust.velocity = (vel * 0.04f).RotatedByRandom(1.4f) * fade;
}
}
}
}
+6
View File
@@ -168,6 +168,12 @@ namespace CalamityMod.Projectiles.Typeless
Particle orb3 = new CustomPulse(Projectile.Center, Vector2.Zero, Color.Orchid, "CalamityMod/Particles/SmallBloom", new Vector2(1, 1), Main.rand.NextFloat(-10, 10), 0, 0.65f, 15, true);
GeneralParticleHandler.SpawnParticle(orb3);
for (int i = 0; i < 4; i++)
{
Particle spark = new CustomSpark(Projectile.Center, new Vector2(12, 12).RotatedByRandom(100) * Main.rand.NextFloat(0.3f, 1f), "CalamityMod/Particles/ProvidenceMarkParticle", false, 17, Main.rand.NextFloat(1.15f, 1.3f), Color.Lerp(Color.Orchid, Color.White, Main.rand.NextFloat(0, 0.7f)), new Vector2(1.3f, 0.5f), true, false, 0, false, false, Main.rand.NextFloat(0.3f, 0.4f));
GeneralParticleHandler.SpawnParticle(spark);
}
// Sub projectiles spawning sub explosions... yea it needs armor pen
Projectile explo = Projectile.NewProjectileDirect(Projectile.GetSource_FromThis(), Projectile.Center, Vector2.Zero, ModContent.ProjectileType<BurningHolyBlast>(), (int)(Projectile.damage * 1.2f), Projectile.knockBack, Projectile.owner, 0.75f);
explo.ArmorPenetration = 30;