1 - Slime God dust color adjustments.
2 - Slime Gods reduce their X velocity dramatically upon teleporting to avoid cheap hits.
This commit is contained in:
1 parent
e3d0f9d526
commit
f113254d00
12 files changed
+88
-29
No files matched your search
@@ -62,9 +62,12 @@ namespace CalamityMod.NPCs.SlimeGod
|
||||
Vector2 spawnAt = NPC.Center + new Vector2(0f, (float)NPC.height / 2f);
|
||||
NPC.NewNPC(NPC.GetSource_Loot(), (int)spawnAt.X, (int)spawnAt.Y, ModContent.NPCType<CorruptSlimeSpawn2>());
|
||||
}
|
||||
|
||||
Color dustColor = Color.Lavender;
|
||||
dustColor.A = 150;
|
||||
for (int k = 0; k < 5; k++)
|
||||
{
|
||||
Dust.NewDust(NPC.position, NPC.width, NPC.height, 4, hitDirection, -1f, NPC.alpha, Color.Lavender, 1f);
|
||||
Dust.NewDust(NPC.position, NPC.width, NPC.height, 4, hitDirection, -1f, NPC.alpha, dustColor, 1f);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -43,15 +43,17 @@ namespace CalamityMod.NPCs.SlimeGod
|
||||
|
||||
public override void HitEffect(int hitDirection, double damage)
|
||||
{
|
||||
Color dustColor = Color.Lavender;
|
||||
dustColor.A = 150;
|
||||
for (int k = 0; k < 5; k++)
|
||||
{
|
||||
Dust.NewDust(NPC.position, NPC.width, NPC.height, 4, hitDirection, -1f, NPC.alpha, Color.Lavender, 1f);
|
||||
Dust.NewDust(NPC.position, NPC.width, NPC.height, 4, hitDirection, -1f, NPC.alpha, dustColor, 1f);
|
||||
}
|
||||
if (NPC.life <= 0)
|
||||
{
|
||||
for (int k = 0; k < 20; k++)
|
||||
{
|
||||
Dust.NewDust(NPC.position, NPC.width, NPC.height, 4, hitDirection, -1f, NPC.alpha, Color.Lavender, 1f);
|
||||
Dust.NewDust(NPC.position, NPC.width, NPC.height, 4, hitDirection, -1f, NPC.alpha, dustColor, 1f);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -58,15 +58,17 @@ namespace CalamityMod.NPCs.SlimeGod
|
||||
|
||||
public override void HitEffect(int hitDirection, double damage)
|
||||
{
|
||||
Color dustColor = Color.Crimson;
|
||||
dustColor.A = 150;
|
||||
for (int k = 0; k < 5; k++)
|
||||
{
|
||||
Dust.NewDust(NPC.position, NPC.width, NPC.height, 4, hitDirection, -1f, NPC.alpha, Color.Crimson, 1f);
|
||||
Dust.NewDust(NPC.position, NPC.width, NPC.height, 4, hitDirection, -1f, NPC.alpha, dustColor, 1f);
|
||||
}
|
||||
if (NPC.life <= 0)
|
||||
{
|
||||
for (int k = 0; k < 20; k++)
|
||||
{
|
||||
Dust.NewDust(NPC.position, NPC.width, NPC.height, 4, hitDirection, -1f, NPC.alpha, Color.Crimson, 1f);
|
||||
Dust.NewDust(NPC.position, NPC.width, NPC.height, 4, hitDirection, -1f, NPC.alpha, dustColor, 1f);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -146,15 +146,17 @@ namespace CalamityMod.NPCs.SlimeGod
|
||||
|
||||
public override void HitEffect(int hitDirection, double damage)
|
||||
{
|
||||
Color dustColor = Color.Crimson;
|
||||
dustColor.A = 150;
|
||||
for (int k = 0; k < 5; k++)
|
||||
{
|
||||
Dust.NewDust(NPC.position, NPC.width, NPC.height, 4, hitDirection, -1f, NPC.alpha, Color.Crimson, 1f);
|
||||
Dust.NewDust(NPC.position, NPC.width, NPC.height, 4, hitDirection, -1f, NPC.alpha, dustColor, 1f);
|
||||
}
|
||||
if (NPC.life <= 0)
|
||||
{
|
||||
for (int k = 0; k < 20; k++)
|
||||
{
|
||||
Dust.NewDust(NPC.position, NPC.width, NPC.height, 4, hitDirection, -1f, NPC.alpha, Color.Crimson, 1f);
|
||||
Dust.NewDust(NPC.position, NPC.width, NPC.height, 4, hitDirection, -1f, NPC.alpha, dustColor, 1f);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -160,6 +160,9 @@ namespace CalamityMod.NPCs.SlimeGod
|
||||
// Avoid cheap bullshit
|
||||
NPC.damage = 0;
|
||||
|
||||
// Slow down dramatically
|
||||
NPC.velocity.X *= 0.5f;
|
||||
|
||||
NPC.ai[0] = 5f;
|
||||
NPC.ai[1] = 0f;
|
||||
NPC.ai[2] = 0f;
|
||||
@@ -574,9 +577,11 @@ namespace CalamityMod.NPCs.SlimeGod
|
||||
}
|
||||
|
||||
// Emit teleport dust
|
||||
Color dustColor = Color.Crimson;
|
||||
dustColor.A = 150;
|
||||
for (int num245 = 0; num245 < 10; num245++)
|
||||
{
|
||||
int num246 = Dust.NewDust(NPC.position + Vector2.UnitX * -20f, NPC.width + 40, NPC.height, 4, NPC.velocity.X, NPC.velocity.Y, NPC.alpha, Color.Crimson, 2f);
|
||||
int num246 = Dust.NewDust(NPC.position + Vector2.UnitX * -20f, NPC.width + 40, NPC.height, 4, NPC.velocity.X, NPC.velocity.Y, NPC.alpha, dustColor, 2f);
|
||||
Main.dust[num246].noGravity = true;
|
||||
Main.dust[num246].velocity *= 0.5f;
|
||||
}
|
||||
@@ -606,9 +611,11 @@ namespace CalamityMod.NPCs.SlimeGod
|
||||
}
|
||||
|
||||
// Emit teleport dust
|
||||
Color dustColor = Color.Crimson;
|
||||
dustColor.A = 150;
|
||||
for (int num245 = 0; num245 < 10; num245++)
|
||||
{
|
||||
int num246 = Dust.NewDust(NPC.position + Vector2.UnitX * -20f, NPC.width + 40, NPC.height, 4, NPC.velocity.X, NPC.velocity.Y, NPC.alpha, Color.Crimson, 2f);
|
||||
int num246 = Dust.NewDust(NPC.position + Vector2.UnitX * -20f, NPC.width + 40, NPC.height, 4, NPC.velocity.X, NPC.velocity.Y, NPC.alpha, dustColor, 2f);
|
||||
Main.dust[num246].noGravity = true;
|
||||
Main.dust[num246].velocity *= 0.5f;
|
||||
}
|
||||
@@ -671,9 +678,11 @@ namespace CalamityMod.NPCs.SlimeGod
|
||||
|
||||
public override void HitEffect(int hitDirection, double damage)
|
||||
{
|
||||
Color dustColor = Color.Crimson;
|
||||
dustColor.A = 150;
|
||||
for (int k = 0; k < 5; k++)
|
||||
{
|
||||
Dust.NewDust(NPC.position, NPC.width, NPC.height, 4, hitDirection, -1f, NPC.alpha, Color.Crimson, 1f);
|
||||
Dust.NewDust(NPC.position, NPC.width, NPC.height, 4, hitDirection, -1f, NPC.alpha, dustColor, 1f);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -153,6 +153,9 @@ namespace CalamityMod.NPCs.SlimeGod
|
||||
// Avoid cheap bullshit
|
||||
NPC.damage = 0;
|
||||
|
||||
// Slow down dramatically
|
||||
NPC.velocity.X *= 0.5f;
|
||||
|
||||
NPC.ai[0] = 6f;
|
||||
NPC.ai[1] = 0f;
|
||||
NPC.ai[2] = 0f;
|
||||
@@ -587,9 +590,11 @@ namespace CalamityMod.NPCs.SlimeGod
|
||||
}
|
||||
|
||||
// Emit teleport dust
|
||||
Color dustColor = Color.Lavender;
|
||||
dustColor.A = 150;
|
||||
for (int num245 = 0; num245 < 10; num245++)
|
||||
{
|
||||
int num246 = Dust.NewDust(NPC.position + Vector2.UnitX * -20f, NPC.width + 40, NPC.height, 4, NPC.velocity.X, NPC.velocity.Y, NPC.alpha, Color.Lavender, 2f);
|
||||
int num246 = Dust.NewDust(NPC.position + Vector2.UnitX * -20f, NPC.width + 40, NPC.height, 4, NPC.velocity.X, NPC.velocity.Y, NPC.alpha, dustColor, 2f);
|
||||
Main.dust[num246].noGravity = true;
|
||||
Main.dust[num246].velocity *= 0.5f;
|
||||
}
|
||||
@@ -619,9 +624,11 @@ namespace CalamityMod.NPCs.SlimeGod
|
||||
}
|
||||
|
||||
// Emit teleport dust
|
||||
Color dustColor = Color.Lavender;
|
||||
dustColor.A = 150;
|
||||
for (int num245 = 0; num245 < 10; num245++)
|
||||
{
|
||||
int num246 = Dust.NewDust(NPC.position + Vector2.UnitX * -20f, NPC.width + 40, NPC.height, 4, NPC.velocity.X, NPC.velocity.Y, NPC.alpha, Color.Lavender, 2f);
|
||||
int num246 = Dust.NewDust(NPC.position + Vector2.UnitX * -20f, NPC.width + 40, NPC.height, 4, NPC.velocity.X, NPC.velocity.Y, NPC.alpha, dustColor, 2f);
|
||||
Main.dust[num246].noGravity = true;
|
||||
Main.dust[num246].velocity *= 0.5f;
|
||||
}
|
||||
@@ -684,9 +691,11 @@ namespace CalamityMod.NPCs.SlimeGod
|
||||
|
||||
public override void HitEffect(int hitDirection, double damage)
|
||||
{
|
||||
Color dustColor = Color.Lavender;
|
||||
dustColor.A = 150;
|
||||
for (int k = 0; k < 5; k++)
|
||||
{
|
||||
Dust.NewDust(NPC.position, NPC.width, NPC.height, 4, hitDirection, -1f, NPC.alpha, Color.Lavender, 1f);
|
||||
Dust.NewDust(NPC.position, NPC.width, NPC.height, 4, hitDirection, -1f, NPC.alpha, dustColor, 1f);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -188,6 +188,7 @@ namespace CalamityMod.NPCs.SlimeGod
|
||||
for (int k = 0; k < 5; k++)
|
||||
{
|
||||
Color color = Main.rand.NextBool() ? Color.Lavender : Color.Crimson;
|
||||
color.A = 150;
|
||||
Dust.NewDust(NPC.position, NPC.width, NPC.height, 4, 0f, 0f, NPC.alpha, color, 1f);
|
||||
}
|
||||
|
||||
@@ -214,6 +215,7 @@ namespace CalamityMod.NPCs.SlimeGod
|
||||
for (int num621 = 0; num621 < 40; num621++)
|
||||
{
|
||||
Color color = Main.rand.NextBool() ? Color.Lavender : Color.Crimson;
|
||||
color.A = 150;
|
||||
int num622 = Dust.NewDust(new Vector2(NPC.position.X, NPC.position.Y), NPC.width, NPC.height, 4, 0f, 0f, NPC.alpha, color, 2f);
|
||||
Main.dust[num622].velocity *= 3f;
|
||||
if (Main.rand.NextBool(2))
|
||||
@@ -225,6 +227,7 @@ namespace CalamityMod.NPCs.SlimeGod
|
||||
for (int num623 = 0; num623 < 70; num623++)
|
||||
{
|
||||
Color color = Main.rand.NextBool() ? Color.Lavender : Color.Crimson;
|
||||
color.A = 150;
|
||||
int num624 = Dust.NewDust(new Vector2(NPC.position.X, NPC.position.Y), NPC.width, NPC.height, 4, 0f, 0f, NPC.alpha, color, 3f);
|
||||
Main.dust[num624].noGravity = true;
|
||||
Main.dust[num624].velocity *= 5f;
|
||||
@@ -338,6 +341,7 @@ namespace CalamityMod.NPCs.SlimeGod
|
||||
for (int i = 0; i < 20; i++)
|
||||
{
|
||||
Color color = Main.rand.NextBool() ? Color.Lavender : Color.Crimson;
|
||||
color.A = 150;
|
||||
int dust2 = Dust.NewDust(new Vector2(NPC.position.X, NPC.position.Y), NPC.width, NPC.height, 4, 0f, 0f, NPC.alpha, color, 2f);
|
||||
Main.dust[dust2].velocity *= 3f;
|
||||
if (Main.rand.NextBool(2))
|
||||
@@ -349,6 +353,7 @@ namespace CalamityMod.NPCs.SlimeGod
|
||||
for (int j = 0; j < 30; j++)
|
||||
{
|
||||
Color color = Main.rand.NextBool() ? Color.Lavender : Color.Crimson;
|
||||
color.A = 150;
|
||||
int dust2 = Dust.NewDust(new Vector2(NPC.position.X, NPC.position.Y), NPC.width, NPC.height, 4, 0f, 0f, NPC.alpha, color, 3f);
|
||||
Main.dust[dust2].noGravity = true;
|
||||
Main.dust[dust2].velocity *= 5f;
|
||||
@@ -610,6 +615,7 @@ namespace CalamityMod.NPCs.SlimeGod
|
||||
for (int k = 0; k < 5; k++)
|
||||
{
|
||||
Color color = Main.rand.NextBool() ? Color.Lavender : Color.Crimson;
|
||||
color.A = 150;
|
||||
Dust.NewDust(NPC.position, NPC.width, NPC.height, 4, hitDirection, -1f, NPC.alpha, color, 1f);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -164,6 +164,9 @@ namespace CalamityMod.NPCs.SlimeGod
|
||||
// Avoid cheap bullshit
|
||||
NPC.damage = 0;
|
||||
|
||||
// Slow down dramatically
|
||||
NPC.velocity.X *= 0.5f;
|
||||
|
||||
NPC.ai[0] = 5f;
|
||||
NPC.ai[1] = 0f;
|
||||
NPC.ai[2] = 0f;
|
||||
@@ -566,9 +569,11 @@ namespace CalamityMod.NPCs.SlimeGod
|
||||
}
|
||||
|
||||
// Emit teleport dust
|
||||
Color dustColor = Color.Crimson;
|
||||
dustColor.A = 150;
|
||||
for (int num245 = 0; num245 < 10; num245++)
|
||||
{
|
||||
int num246 = Dust.NewDust(NPC.position + Vector2.UnitX * -20f, NPC.width + 40, NPC.height, 4, NPC.velocity.X, NPC.velocity.Y, NPC.alpha, Color.Crimson, 2f);
|
||||
int num246 = Dust.NewDust(NPC.position + Vector2.UnitX * -20f, NPC.width + 40, NPC.height, 4, NPC.velocity.X, NPC.velocity.Y, NPC.alpha, dustColor, 2f);
|
||||
Main.dust[num246].noGravity = true;
|
||||
Main.dust[num246].velocity *= 0.5f;
|
||||
}
|
||||
@@ -598,9 +603,11 @@ namespace CalamityMod.NPCs.SlimeGod
|
||||
}
|
||||
|
||||
// Emit teleport dust
|
||||
Color dustColor = Color.Crimson;
|
||||
dustColor.A = 150;
|
||||
for (int num245 = 0; num245 < 10; num245++)
|
||||
{
|
||||
int num246 = Dust.NewDust(NPC.position + Vector2.UnitX * -20f, NPC.width + 40, NPC.height, 4, NPC.velocity.X, NPC.velocity.Y, NPC.alpha, Color.Crimson, 2f);
|
||||
int num246 = Dust.NewDust(NPC.position + Vector2.UnitX * -20f, NPC.width + 40, NPC.height, 4, NPC.velocity.X, NPC.velocity.Y, NPC.alpha, dustColor, 2f);
|
||||
Main.dust[num246].noGravity = true;
|
||||
Main.dust[num246].velocity *= 0.5f;
|
||||
}
|
||||
@@ -676,9 +683,11 @@ namespace CalamityMod.NPCs.SlimeGod
|
||||
|
||||
public override void HitEffect(int hitDirection, double damage)
|
||||
{
|
||||
Color dustColor = Color.Crimson;
|
||||
dustColor.A = 150;
|
||||
for (int k = 0; k < 5; k++)
|
||||
{
|
||||
Dust.NewDust(NPC.position, NPC.width, NPC.height, 4, hitDirection, -1f, NPC.alpha, Color.Crimson, 1f);
|
||||
Dust.NewDust(NPC.position, NPC.width, NPC.height, 4, hitDirection, -1f, NPC.alpha, dustColor, 1f);
|
||||
}
|
||||
if (NPC.life <= 0)
|
||||
{
|
||||
@@ -690,7 +699,7 @@ namespace CalamityMod.NPCs.SlimeGod
|
||||
NPC.position.Y = NPC.position.Y - (float)(NPC.height / 2);
|
||||
for (int num621 = 0; num621 < 40; num621++)
|
||||
{
|
||||
int num622 = Dust.NewDust(new Vector2(NPC.position.X, NPC.position.Y), NPC.width, NPC.height, 4, 0f, 0f, NPC.alpha, Color.Crimson, 2f);
|
||||
int num622 = Dust.NewDust(new Vector2(NPC.position.X, NPC.position.Y), NPC.width, NPC.height, 4, 0f, 0f, NPC.alpha, dustColor, 2f);
|
||||
Main.dust[num622].velocity *= 3f;
|
||||
if (Main.rand.NextBool(2))
|
||||
{
|
||||
@@ -700,10 +709,10 @@ namespace CalamityMod.NPCs.SlimeGod
|
||||
}
|
||||
for (int num623 = 0; num623 < 70; num623++)
|
||||
{
|
||||
int num624 = Dust.NewDust(new Vector2(NPC.position.X, NPC.position.Y), NPC.width, NPC.height, 4, 0f, 0f, NPC.alpha, Color.Crimson, 3f);
|
||||
int num624 = Dust.NewDust(new Vector2(NPC.position.X, NPC.position.Y), NPC.width, NPC.height, 4, 0f, 0f, NPC.alpha, dustColor, 3f);
|
||||
Main.dust[num624].noGravity = true;
|
||||
Main.dust[num624].velocity *= 5f;
|
||||
num624 = Dust.NewDust(new Vector2(NPC.position.X, NPC.position.Y), NPC.width, NPC.height, 4, 0f, 0f, NPC.alpha, Color.Crimson, 2f);
|
||||
num624 = Dust.NewDust(new Vector2(NPC.position.X, NPC.position.Y), NPC.width, NPC.height, 4, 0f, 0f, NPC.alpha, dustColor, 2f);
|
||||
Main.dust[num624].velocity *= 2f;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -160,6 +160,9 @@ namespace CalamityMod.NPCs.SlimeGod
|
||||
// Avoid cheap bullshit
|
||||
NPC.damage = 0;
|
||||
|
||||
// Slow down dramatically
|
||||
NPC.velocity.X *= 0.5f;
|
||||
|
||||
NPC.ai[0] = 6f;
|
||||
NPC.ai[1] = 0f;
|
||||
NPC.ai[2] = 0f;
|
||||
@@ -583,9 +586,11 @@ namespace CalamityMod.NPCs.SlimeGod
|
||||
}
|
||||
|
||||
// Emit teleport dust
|
||||
Color dustColor = Color.Lavender;
|
||||
dustColor.A = 150;
|
||||
for (int num245 = 0; num245 < 10; num245++)
|
||||
{
|
||||
int num246 = Dust.NewDust(NPC.position + Vector2.UnitX * -20f, NPC.width + 40, NPC.height, 4, NPC.velocity.X, NPC.velocity.Y, NPC.alpha, Color.Lavender, 2f);
|
||||
int num246 = Dust.NewDust(NPC.position + Vector2.UnitX * -20f, NPC.width + 40, NPC.height, 4, NPC.velocity.X, NPC.velocity.Y, NPC.alpha, dustColor, 2f);
|
||||
Main.dust[num246].noGravity = true;
|
||||
Main.dust[num246].velocity *= 0.5f;
|
||||
}
|
||||
@@ -615,9 +620,11 @@ namespace CalamityMod.NPCs.SlimeGod
|
||||
}
|
||||
|
||||
// Emit teleport dust
|
||||
Color dustColor = Color.Lavender;
|
||||
dustColor.A = 150;
|
||||
for (int num245 = 0; num245 < 10; num245++)
|
||||
{
|
||||
int num246 = Dust.NewDust(NPC.position + Vector2.UnitX * -20f, NPC.width + 40, NPC.height, 4, NPC.velocity.X, NPC.velocity.Y, NPC.alpha, Color.Lavender, 2f);
|
||||
int num246 = Dust.NewDust(NPC.position + Vector2.UnitX * -20f, NPC.width + 40, NPC.height, 4, NPC.velocity.X, NPC.velocity.Y, NPC.alpha, dustColor, 2f);
|
||||
Main.dust[num246].noGravity = true;
|
||||
Main.dust[num246].velocity *= 0.5f;
|
||||
}
|
||||
@@ -689,9 +696,11 @@ namespace CalamityMod.NPCs.SlimeGod
|
||||
|
||||
public override void HitEffect(int hitDirection, double damage)
|
||||
{
|
||||
Color dustColor = Color.Lavender;
|
||||
dustColor.A = 150;
|
||||
for (int k = 0; k < 5; k++)
|
||||
{
|
||||
Dust.NewDust(NPC.position, NPC.width, NPC.height, 4, hitDirection, -1f, NPC.alpha, Color.Lavender, 1f);
|
||||
Dust.NewDust(NPC.position, NPC.width, NPC.height, 4, hitDirection, -1f, NPC.alpha, dustColor, 1f);
|
||||
}
|
||||
if (NPC.life <= 0)
|
||||
{
|
||||
@@ -703,7 +712,7 @@ namespace CalamityMod.NPCs.SlimeGod
|
||||
NPC.position.Y = NPC.position.Y - (float)(NPC.height / 2);
|
||||
for (int num621 = 0; num621 < 40; num621++)
|
||||
{
|
||||
int num622 = Dust.NewDust(new Vector2(NPC.position.X, NPC.position.Y), NPC.width, NPC.height, 4, 0f, 0f, NPC.alpha, Color.Lavender, 2f);
|
||||
int num622 = Dust.NewDust(new Vector2(NPC.position.X, NPC.position.Y), NPC.width, NPC.height, 4, 0f, 0f, NPC.alpha, dustColor, 2f);
|
||||
Main.dust[num622].velocity *= 3f;
|
||||
if (Main.rand.NextBool(2))
|
||||
{
|
||||
@@ -713,10 +722,10 @@ namespace CalamityMod.NPCs.SlimeGod
|
||||
}
|
||||
for (int num623 = 0; num623 < 70; num623++)
|
||||
{
|
||||
int num624 = Dust.NewDust(new Vector2(NPC.position.X, NPC.position.Y), NPC.width, NPC.height, 4, 0f, 0f, NPC.alpha, Color.Lavender, 3f);
|
||||
int num624 = Dust.NewDust(new Vector2(NPC.position.X, NPC.position.Y), NPC.width, NPC.height, 4, 0f, 0f, NPC.alpha, dustColor, 3f);
|
||||
Main.dust[num624].noGravity = true;
|
||||
Main.dust[num624].velocity *= 5f;
|
||||
num624 = Dust.NewDust(new Vector2(NPC.position.X, NPC.position.Y), NPC.width, NPC.height, 4, 0f, 0f, NPC.alpha, Color.Lavender, 2f);
|
||||
num624 = Dust.NewDust(new Vector2(NPC.position.X, NPC.position.Y), NPC.width, NPC.height, 4, 0f, 0f, NPC.alpha, dustColor, 2f);
|
||||
Main.dust[num624].velocity *= 2f;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -61,7 +61,9 @@ namespace CalamityMod.Projectiles.Boss
|
||||
|
||||
if (Main.rand.NextBool())
|
||||
{
|
||||
int dust = Dust.NewDust(Projectile.position + Projectile.velocity, Projectile.width, Projectile.height, 4, 0f, 0f, Projectile.alpha, Color.Crimson);
|
||||
Color dustColor = Color.Crimson;
|
||||
dustColor.A = 150;
|
||||
int dust = Dust.NewDust(Projectile.position + Projectile.velocity, Projectile.width, Projectile.height, 4, 0f, 0f, Projectile.alpha, dustColor);
|
||||
Main.dust[dust].noGravity = true;
|
||||
}
|
||||
|
||||
|
||||
@@ -43,7 +43,9 @@ namespace CalamityMod.Projectiles.Boss
|
||||
|
||||
if (Main.rand.NextBool())
|
||||
{
|
||||
int dust = Dust.NewDust(Projectile.position + Projectile.velocity, Projectile.width, Projectile.height, 4, 0f, 0f, Projectile.alpha, Color.Lavender);
|
||||
Color dustColor = Color.Lavender;
|
||||
dustColor.A = 150;
|
||||
int dust = Dust.NewDust(Projectile.position + Projectile.velocity, Projectile.width, Projectile.height, 4, 0f, 0f, Projectile.alpha, dustColor);
|
||||
Main.dust[dust].noGravity = true;
|
||||
}
|
||||
|
||||
|
||||
@@ -27,7 +27,9 @@ namespace CalamityMod.Projectiles.Enemy
|
||||
{
|
||||
if (Projectile.Opacity == 1f && Main.rand.NextBool(3))
|
||||
{
|
||||
int num67 = Dust.NewDust(Projectile.position - Projectile.velocity * 3f, Projectile.width, Projectile.height, 260, 0f, 0f, 50, new Color(255, 136, 78, 150), 1.2f);
|
||||
Color dustColor = Color.Crimson;
|
||||
dustColor.A = 150;
|
||||
int num67 = Dust.NewDust(Projectile.position - Projectile.velocity * 3f, Projectile.width, Projectile.height, 260, 0f, 0f, 50, dustColor, 1.2f);
|
||||
Main.dust[num67].velocity *= 0.3f;
|
||||
Main.dust[num67].velocity += Projectile.velocity * 0.3f;
|
||||
Main.dust[num67].noGravity = true;
|
||||
@@ -58,9 +60,11 @@ namespace CalamityMod.Projectiles.Enemy
|
||||
|
||||
public override void Kill(int timeLeft)
|
||||
{
|
||||
Color dustColor = Color.Crimson;
|
||||
dustColor.A = 150;
|
||||
for (int k = 0; k < 5; k++)
|
||||
{
|
||||
Dust.NewDust(Projectile.position + Projectile.velocity, Projectile.width, Projectile.height, 260, Projectile.oldVelocity.X * 0.5f, Projectile.oldVelocity.Y * 0.5f);
|
||||
Dust.NewDust(Projectile.position + Projectile.velocity, Projectile.width, Projectile.height, 260, Projectile.oldVelocity.X * 0.5f, Projectile.oldVelocity.Y * 0.5f, 50, dustColor, 1f);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user