feat: replace every detactable instance of magic numbers with their named ID counterparts
This commit is contained in:
1 parent
9cae947395
commit
b0854b7a3c
626 files changed
+1025
-897
No files matched your search
@@ -52,7 +52,7 @@ namespace CalamityMod.Backgrounds
|
||||
{
|
||||
Point pos = drawPoint + new Point(i, j);
|
||||
if (!Main.tile[pos.X, pos.Y].HasTile &&
|
||||
Main.tile[pos.X, pos.Y].WallType == 0)
|
||||
Main.tile[pos.X, pos.Y].WallType == WallID.None)
|
||||
Lighting.AddLight(pos.X, pos.Y, TorchID.White, 0.1f);
|
||||
}
|
||||
}
|
||||
@@ -68,7 +68,7 @@ namespace CalamityMod.Backgrounds
|
||||
{
|
||||
Point pos = drawPoint + new Point(i, j);
|
||||
if (!Main.tile[pos.X, pos.Y].HasTile &&
|
||||
Main.tile[pos.X, pos.Y].WallType == 0 &&
|
||||
Main.tile[pos.X, pos.Y].WallType == WallID.None &&
|
||||
Main.tile[pos.X, pos.Y].LiquidAmount == 0)
|
||||
Lighting.AddLight(pos.X, pos.Y, TorchID.White, 0.2f);
|
||||
}
|
||||
@@ -85,7 +85,7 @@ namespace CalamityMod.Backgrounds
|
||||
{
|
||||
Point pos = drawPoint + new Point(i, j);
|
||||
if (!Main.tile[pos.X, pos.Y].HasTile &&
|
||||
Main.tile[pos.X, pos.Y].WallType == 0)
|
||||
Main.tile[pos.X, pos.Y].WallType == WallID.None)
|
||||
Lighting.AddLight(pos.X, pos.Y, TorchID.White, 0.2f);
|
||||
}
|
||||
}
|
||||
@@ -101,7 +101,7 @@ namespace CalamityMod.Backgrounds
|
||||
{
|
||||
Point pos = drawPoint + new Point(i, j);
|
||||
if (!Main.tile[pos.X, pos.Y].HasTile &&
|
||||
Main.tile[pos.X, pos.Y].WallType == 0)
|
||||
Main.tile[pos.X, pos.Y].WallType == WallID.None)
|
||||
Lighting.AddLight(pos.X, pos.Y, TorchID.White, 0.2f);
|
||||
}
|
||||
}
|
||||
@@ -119,7 +119,7 @@ namespace CalamityMod.Backgrounds
|
||||
if (pos.Y >= Main.maxTilesY - 450)
|
||||
{
|
||||
if (!Main.tile[pos.X, pos.Y].HasTile &&
|
||||
Main.tile[pos.X, pos.Y].WallType == 0)
|
||||
Main.tile[pos.X, pos.Y].WallType == WallID.None)
|
||||
Lighting.AddLight(pos.X, pos.Y, TorchID.Red, 0.6f);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -52,12 +52,12 @@ namespace CalamityMod.Buffs.DamageOverTime
|
||||
GeneralParticleHandler.SpawnParticle(spark);
|
||||
}
|
||||
|
||||
Dust dust = Dust.NewDustPerfect(modPlayer.RandomDebuffVisualSpot, 278, new Vector2(1.5f, 1.5f).RotatedByRandom(100) * Main.rand.NextFloat(0.3f, 0.7f), 0, default, Main.rand.NextFloat(0.1f, 0.6f));
|
||||
Dust dust = Dust.NewDustPerfect(modPlayer.RandomDebuffVisualSpot, DustID.FireworksRGB, new Vector2(1.5f, 1.5f).RotatedByRandom(100) * Main.rand.NextFloat(0.3f, 0.7f), 0, default, Main.rand.NextFloat(0.1f, 0.6f));
|
||||
dust.color = Color.Lerp(Color.Cyan, Color.Lavender, Main.rand.NextFloat(0, 0.6f));
|
||||
|
||||
if (Main.rand.NextBool(6))
|
||||
{
|
||||
Dust dust2 = Dust.NewDustPerfect(modPlayer.RandomDebuffVisualSpot, 278, new Vector2(4.5f, 4.5f).RotatedByRandom(100) * Main.rand.NextFloat(0.3f, 0.7f), 0, default, Main.rand.NextFloat(0.8f, 0.95f));
|
||||
Dust dust2 = Dust.NewDustPerfect(modPlayer.RandomDebuffVisualSpot, DustID.FireworksRGB, new Vector2(4.5f, 4.5f).RotatedByRandom(100) * Main.rand.NextFloat(0.3f, 0.7f), 0, default, Main.rand.NextFloat(0.8f, 0.95f));
|
||||
dust2.color = Main.rand.NextBool(4) ? Color.Lavender : Color.Cyan;
|
||||
}
|
||||
}
|
||||
@@ -78,12 +78,12 @@ namespace CalamityMod.Buffs.DamageOverTime
|
||||
|
||||
if (Main.rand.NextBool())
|
||||
{
|
||||
Dust dust = Dust.NewDustPerfect(npcSize, 278, new Vector2(1.5f, 1.5f).RotatedByRandom(100) * Main.rand.NextFloat(0.3f, 0.7f), 0, default, Main.rand.NextFloat(0.1f, 0.6f));
|
||||
Dust dust = Dust.NewDustPerfect(npcSize, DustID.FireworksRGB, new Vector2(1.5f, 1.5f).RotatedByRandom(100) * Main.rand.NextFloat(0.3f, 0.7f), 0, default, Main.rand.NextFloat(0.1f, 0.6f));
|
||||
dust.color = Color.Lerp(Color.Cyan, Color.Lavender, Main.rand.NextFloat(0, 0.6f));
|
||||
}
|
||||
if (Main.rand.NextBool(10))
|
||||
{
|
||||
Dust dust2 = Dust.NewDustPerfect(npcSize, 278, new Vector2(4.5f, 4.5f).RotatedByRandom(100) * Main.rand.NextFloat(0.3f, 0.7f), 0, default, Main.rand.NextFloat(0.8f, 0.95f));
|
||||
Dust dust2 = Dust.NewDustPerfect(npcSize, DustID.FireworksRGB, new Vector2(4.5f, 4.5f).RotatedByRandom(100) * Main.rand.NextFloat(0.3f, 0.7f), 0, default, Main.rand.NextFloat(0.8f, 0.95f));
|
||||
dust2.color = Main.rand.NextBool(4) ? Color.Lavender : Color.Cyan;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -50,7 +50,7 @@ namespace CalamityMod.Buffs.DamageOverTime
|
||||
}
|
||||
if (Main.rand.NextBool(4))
|
||||
{
|
||||
Dust dust = Dust.NewDustPerfect(modPlayer.RandomDebuffVisualSpot, 18);
|
||||
Dust dust = Dust.NewDustPerfect(modPlayer.RandomDebuffVisualSpot, DustID.CorruptGibs);
|
||||
dust.noGravity = true;
|
||||
dust.velocity = Vector2.Zero;
|
||||
dust.alpha = 90;
|
||||
|
||||
@@ -59,7 +59,7 @@ namespace CalamityMod.Buffs.DamageOverTime
|
||||
{
|
||||
float rot = MathHelper.ToRadians(i * 280);
|
||||
Vector2 offset = new Vector2(0.1f, 0).RotatedBy(rot * Main.rand.NextFloat(0.08f, 0.05f));
|
||||
Dust dust2 = Dust.NewDustPerfect(Player.Calamity().RandomDebuffVisualSpot + offset, 5);
|
||||
Dust dust2 = Dust.NewDustPerfect(Player.Calamity().RandomDebuffVisualSpot + offset, DustID.Blood);
|
||||
dust2.scale = Main.rand.NextFloat(0.6f, 0.7f);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -42,7 +42,7 @@ namespace CalamityMod.Buffs.DamageOverTime
|
||||
if (Main.rand.NextBool(3))
|
||||
{
|
||||
Vector2 randVel = new Vector2(5, 5).RotatedByRandom(100) * Main.rand.NextFloat(0.3f, 1f);
|
||||
Dust dust = Dust.NewDustPerfect(modPlayer.RandomDebuffVisualSpot, 5, randVel * Main.rand.NextFloat(0.1f, 0.8f), 100, default, Main.rand.NextFloat(0.6f, 0.9f));
|
||||
Dust dust = Dust.NewDustPerfect(modPlayer.RandomDebuffVisualSpot, DustID.Blood, randVel * Main.rand.NextFloat(0.1f, 0.8f), 100, default, Main.rand.NextFloat(0.6f, 0.9f));
|
||||
dust.noGravity = false;
|
||||
Particle spark = new AltSparkParticle(modPlayer.RandomDebuffVisualSpot, randVel + new Vector2(0, -4), true, 12, Main.rand.NextFloat(0.25f, 0.6f), Color.DarkRed * 0.5f);
|
||||
GeneralParticleHandler.SpawnParticle(spark);
|
||||
@@ -65,7 +65,7 @@ namespace CalamityMod.Buffs.DamageOverTime
|
||||
}
|
||||
else
|
||||
{
|
||||
Dust dust = Dust.NewDustPerfect(npcSize, 5, randVel * Main.rand.NextFloat(0.1f, 0.8f), 100, default, Main.rand.NextFloat(0.2f, 0.6f));
|
||||
Dust dust = Dust.NewDustPerfect(npcSize, DustID.Blood, randVel * Main.rand.NextFloat(0.1f, 0.8f), 100, default, Main.rand.NextFloat(0.2f, 0.6f));
|
||||
dust.noGravity = false;
|
||||
}
|
||||
if (Main.rand.NextBool(8))
|
||||
|
||||
@@ -42,7 +42,7 @@ namespace CalamityMod.Buffs.DamageOverTime
|
||||
if (Main.rand.NextBool())
|
||||
{
|
||||
Vector2 randVel = new Vector2(6, 6).RotatedByRandom(100) * Main.rand.NextFloat(0.3f, 1f);
|
||||
Dust dust = Dust.NewDustPerfect(modPlayer.RandomDebuffVisualSpot, 5, randVel * Main.rand.NextFloat(0.1f, 0.8f), 100, default, Main.rand.NextFloat(0.6f, 0.9f));
|
||||
Dust dust = Dust.NewDustPerfect(modPlayer.RandomDebuffVisualSpot, DustID.Blood, randVel * Main.rand.NextFloat(0.1f, 0.8f), 100, default, Main.rand.NextFloat(0.6f, 0.9f));
|
||||
dust.noGravity = false;
|
||||
Particle spark = new AltSparkParticle(modPlayer.RandomDebuffVisualSpot, randVel + new Vector2(0, -4), true, 12, Main.rand.NextFloat(0.25f, 0.6f), Color.DarkRed * 0.5f);
|
||||
GeneralParticleHandler.SpawnParticle(spark);
|
||||
@@ -65,7 +65,7 @@ namespace CalamityMod.Buffs.DamageOverTime
|
||||
}
|
||||
else
|
||||
{
|
||||
Dust dust = Dust.NewDustPerfect(npcSize, 5, randVel * Main.rand.NextFloat(0.1f, 0.8f), 100, default, Main.rand.NextFloat(0.2f, 0.6f));
|
||||
Dust dust = Dust.NewDustPerfect(npcSize, DustID.Blood, randVel * Main.rand.NextFloat(0.1f, 0.8f), 100, default, Main.rand.NextFloat(0.2f, 0.6f));
|
||||
dust.noGravity = false;
|
||||
}
|
||||
if (Main.rand.NextBool(8))
|
||||
|
||||
@@ -48,7 +48,7 @@ namespace CalamityMod.Buffs.DamageOverTime
|
||||
|
||||
if (Main.rand.NextBool(2))
|
||||
{
|
||||
Dust dust = Dust.NewDustPerfect(Player.Calamity().RandomDebuffVisualSpot, 66, CalamityUtils.RandomVelocity(100f, 70f, 150f, 0.04f));
|
||||
Dust dust = Dust.NewDustPerfect(Player.Calamity().RandomDebuffVisualSpot, DustID.RainbowTorch, CalamityUtils.RandomVelocity(100f, 70f, 150f, 0.04f));
|
||||
dust.noGravity = true;
|
||||
dust.scale = Main.rand.NextFloat(0.7f, 0.85f);
|
||||
dust.color = sparkColor;
|
||||
@@ -79,7 +79,7 @@ namespace CalamityMod.Buffs.DamageOverTime
|
||||
|
||||
if (Main.rand.NextBool(4))
|
||||
{
|
||||
Dust dust = Dust.NewDustPerfect(npcSize, 66, CalamityUtils.RandomVelocity(100f, 70f, 150f, 0.04f));
|
||||
Dust dust = Dust.NewDustPerfect(npcSize, DustID.RainbowTorch, CalamityUtils.RandomVelocity(100f, 70f, 150f, 0.04f));
|
||||
dust.noGravity = true;
|
||||
dust.scale = Main.rand.NextFloat(0.7f, 0.85f) + (0.0000007f * npc.width * npc.height);
|
||||
dust.color = sparkColor;
|
||||
|
||||
@@ -61,7 +61,7 @@ namespace CalamityMod.Buffs.DamageOverTime
|
||||
Vector2 npcSize = npc.Center + new Vector2(Main.rand.NextFloat(-npc.width / 2, npc.width / 2), Main.rand.NextFloat(-npc.height / 2, npc.height / 2));
|
||||
if (Main.rand.NextBool(9))
|
||||
{
|
||||
Dust dust = Dust.NewDustPerfect(npcSize, 76, new Vector2(2f, 2f).RotatedByRandom(100) * Main.rand.NextFloat(0.3f, 0.7f), 0, default, Main.rand.NextFloat(0.2f, 0.6f));
|
||||
Dust dust = Dust.NewDustPerfect(npcSize, DustID.Snow, new Vector2(2f, 2f).RotatedByRandom(100) * Main.rand.NextFloat(0.3f, 0.7f), 0, default, Main.rand.NextFloat(0.2f, 0.6f));
|
||||
dust.color = (Main.rand.NextBool(3) ? Color.LightBlue : Color.LightSkyBlue);
|
||||
}
|
||||
if (Main.rand.NextBool(8))
|
||||
|
||||
@@ -46,7 +46,7 @@ namespace CalamityMod.Buffs.DamageOverTime
|
||||
{
|
||||
if (Main.rand.NextBool(3))
|
||||
{
|
||||
Dust dust = Dust.NewDustPerfect(modPlayer.RandomDebuffVisualSpot, 278, new Vector2(2f, 2f).RotatedByRandom(100) * Main.rand.NextFloat(0.3f, 0.7f), 0, default, Main.rand.NextFloat(0.2f, 0.6f));
|
||||
Dust dust = Dust.NewDustPerfect(modPlayer.RandomDebuffVisualSpot, DustID.FireworksRGB, new Vector2(2f, 2f).RotatedByRandom(100) * Main.rand.NextFloat(0.3f, 0.7f), 0, default, Main.rand.NextFloat(0.2f, 0.6f));
|
||||
dust.color = (Main.rand.NextBool(3) ? Color.Yellow : Color.LightSkyBlue);
|
||||
}
|
||||
}
|
||||
@@ -59,7 +59,7 @@ namespace CalamityMod.Buffs.DamageOverTime
|
||||
|
||||
if (Main.rand.NextBool(4))
|
||||
{
|
||||
Dust dust = Dust.NewDustPerfect(npcSize, 278, new Vector2(2f, 2f).RotatedByRandom(100) * Main.rand.NextFloat(0.3f, 0.7f), 0, default, Main.rand.NextFloat(0.2f, 0.6f));
|
||||
Dust dust = Dust.NewDustPerfect(npcSize, DustID.FireworksRGB, new Vector2(2f, 2f).RotatedByRandom(100) * Main.rand.NextFloat(0.3f, 0.7f), 0, default, Main.rand.NextFloat(0.2f, 0.6f));
|
||||
dust.color = (Main.rand.NextBool(3) ? Color.Yellow : Color.LightSkyBlue);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -62,7 +62,7 @@ namespace CalamityMod.Buffs.DamageOverTime
|
||||
}
|
||||
|
||||
if (Main.rand.NextBool())
|
||||
Dust.NewDustPerfect(modPlayer.RandomDebuffVisualSpot, 219, new Vector2(4f, 4f).RotatedByRandom(100) * Main.rand.NextFloat(0.3f, 0.7f), 0, default, Main.rand.NextFloat(0.2f, 0.6f));
|
||||
Dust.NewDustPerfect(modPlayer.RandomDebuffVisualSpot, DustID.Fireworks, new Vector2(4f, 4f).RotatedByRandom(100) * Main.rand.NextFloat(0.3f, 0.7f), 0, default, Main.rand.NextFloat(0.2f, 0.6f));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -88,7 +88,7 @@ namespace CalamityMod.Buffs.DamageOverTime
|
||||
}
|
||||
|
||||
if (Main.rand.NextBool(3))
|
||||
Dust.NewDustPerfect(npcSize, 219, new Vector2(4f, 4f).RotatedByRandom(100) * Main.rand.NextFloat(0.3f, 0.7f), 0, default, Main.rand.NextFloat(0.2f, 0.6f));
|
||||
Dust.NewDustPerfect(npcSize, DustID.Fireworks, new Vector2(4f, 4f).RotatedByRandom(100) * Main.rand.NextFloat(0.3f, 0.7f), 0, default, Main.rand.NextFloat(0.2f, 0.6f));
|
||||
|
||||
Lighting.AddLight(npc.Center, Color.Red.ToVector3());
|
||||
}
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.DataStructures;
|
||||
using Terraria.ID;
|
||||
using Terraria.Localization;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
@@ -30,7 +31,7 @@ namespace CalamityMod.Buffs.StatBuffs
|
||||
|
||||
if (Main.rand.NextBool(4))
|
||||
{
|
||||
Dust dust = Dust.NewDustPerfect(Player.Calamity().RandomDebuffVisualSpot, 56, Vector2.Zero, 100, default, 0.9f);
|
||||
Dust dust = Dust.NewDustPerfect(Player.Calamity().RandomDebuffVisualSpot, DustID.BlueFairy, Vector2.Zero, 100, default, 0.9f);
|
||||
dust.noGravity = true;
|
||||
dust.velocity *= 0.5f;
|
||||
dust.velocity.Y -= 0.1f;
|
||||
|
||||
@@ -5712,7 +5712,7 @@ namespace CalamityMod.CalPlayer
|
||||
|
||||
for (int i = 0; i < 8; i++)
|
||||
{
|
||||
Dust life = Dust.NewDustPerfect(Player.Top + Main.rand.NextVector2Circular(Player.width * 0.5f, 6f), 267);
|
||||
Dust life = Dust.NewDustPerfect(Player.Top + Main.rand.NextVector2Circular(Player.width * 0.5f, 6f), DustID.RainbowMk2);
|
||||
life.color = Color.Red;
|
||||
life.velocity = -Vector2.UnitY.RotatedByRandom(0.48f) * Main.rand.NextFloat(3f, 4.4f);
|
||||
life.scale = Main.rand.NextFloat(1.5f, 1.72f);
|
||||
|
||||
@@ -239,7 +239,7 @@ namespace CalamityMod.CalPlayer
|
||||
{
|
||||
for (int i = 0; i < 40; i++)
|
||||
{
|
||||
Dust dust = Dust.NewDustPerfect(Player.Center + Utils.NextVector2Circular(Main.rand, 60f, 90f), 133);
|
||||
Dust dust = Dust.NewDustPerfect(Player.Center + Utils.NextVector2Circular(Main.rand, 60f, 90f), DustID.Firework_Yellow);
|
||||
dust.velocity = Utils.NextVector2Circular(Main.rand, 4f, 4f);
|
||||
dust.noGravity = true;
|
||||
dust.scale = Main.rand.NextFloat(1.2f, 1.35f);
|
||||
@@ -1172,7 +1172,7 @@ namespace CalamityMod.CalPlayer
|
||||
|
||||
if (i % 3 == 0)
|
||||
{
|
||||
Dust dust = Dust.NewDustPerfect(fxPos, 278, dustVel, 0, default, Main.rand.NextFloat(0.75f, 1.1f));
|
||||
Dust dust = Dust.NewDustPerfect(fxPos, DustID.FireworksRGB, dustVel, 0, default, Main.rand.NextFloat(0.75f, 1.1f));
|
||||
dust.noGravity = true;
|
||||
dust.color = Color.Gold;
|
||||
dust.noGravity = false;
|
||||
@@ -1408,7 +1408,7 @@ namespace CalamityMod.CalPlayer
|
||||
{
|
||||
Particle spark2 = new LineParticle(Player.Center, new Vector2(8, 8).RotatedByRandom(100) * Main.rand.NextFloat(0.5f, 1f), false, 20, Main.rand.NextFloat(0.5f, 1.1f), Main.rand.NextBool() ? Color.Coral : Color.DarkTurquoise);
|
||||
GeneralParticleHandler.SpawnParticle(spark2);
|
||||
Dust dust2 = Dust.NewDustPerfect(Player.Center, 267, new Vector2(8, 8).RotatedByRandom(100) * Main.rand.NextFloat(0.5f, 1f));
|
||||
Dust dust2 = Dust.NewDustPerfect(Player.Center, DustID.RainbowMk2, new Vector2(8, 8).RotatedByRandom(100) * Main.rand.NextFloat(0.5f, 1f));
|
||||
dust2.scale = Main.rand.NextFloat(0.75f, 1.2f);
|
||||
dust2.noGravity = true;
|
||||
dust2.color = Main.rand.NextBool() ? Color.Coral : Color.DarkTurquoise;
|
||||
@@ -2620,7 +2620,7 @@ namespace CalamityMod.CalPlayer
|
||||
}
|
||||
if (Main.myPlayer == Player.whoAmI)
|
||||
{
|
||||
Player.trashItem.SetDefaults(0, false);
|
||||
Player.trashItem.SetDefaults(ItemID.None, false);
|
||||
if (Player.difficulty == PlayerDifficultyID.SoftCore || Player.difficulty == PlayerDifficultyID.Creative)
|
||||
{
|
||||
for (int i = 0; i < 59; i++)
|
||||
@@ -2640,7 +2640,7 @@ namespace CalamityMod.CalPlayer
|
||||
{
|
||||
NetMessage.SendData(MessageID.SyncItem, -1, -1, null, droppedLargeGem, 0f, 0f, 0f, 0, 0, 0);
|
||||
}
|
||||
Player.inventory[i].SetDefaults(0, false);
|
||||
Player.inventory[i].SetDefaults(ItemID.None, false);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3039,7 +3039,7 @@ namespace CalamityMod.CalPlayer
|
||||
if (WorldGen.SolidTile(tile) || tile.LiquidAmount > 0)
|
||||
continue;
|
||||
|
||||
Dust pollen = Dust.NewDustPerfect(dustSpawnPosition, 261);
|
||||
Dust pollen = Dust.NewDustPerfect(dustSpawnPosition, DustID.AncientLight);
|
||||
pollen.velocity = Main.rand.NextVector2Circular(0.4f, 0.4f);
|
||||
pollen.scale = Main.rand.NextFloat(0.8f, 1f);
|
||||
pollen.fadeIn = 2f;
|
||||
|
||||
@@ -496,7 +496,7 @@ namespace CalamityMod.CalPlayer
|
||||
}
|
||||
for (int i = 0; i <= 12; i++)
|
||||
{
|
||||
Dust dust2 = Dust.NewDustPerfect(proj.Center, 278, new Vector2(4, 4).RotatedByRandom(100f) * Main.rand.NextFloat(0.1f, 2.9f));
|
||||
Dust dust2 = Dust.NewDustPerfect(proj.Center, DustID.FireworksRGB, new Vector2(4, 4).RotatedByRandom(100f) * Main.rand.NextFloat(0.1f, 2.9f));
|
||||
dust2.noGravity = false;
|
||||
dust2.scale = Main.rand.NextFloat(0.3f, 0.9f);
|
||||
dust2.color = Color.Turquoise;
|
||||
@@ -545,7 +545,7 @@ namespace CalamityMod.CalPlayer
|
||||
int dusts = (int)(MathHelper.Clamp(10 - (int)(proj.numHits * 0.5f), 2, 10));
|
||||
for (int i = 0; i <= dusts; i++)
|
||||
{
|
||||
Dust dust2 = Dust.NewDustPerfect(Position, 278, new Vector2(5, 5).RotatedByRandom(100f) * Main.rand.NextFloat(0.1f, 2.9f));
|
||||
Dust dust2 = Dust.NewDustPerfect(Position, DustID.FireworksRGB, new Vector2(5, 5).RotatedByRandom(100f) * Main.rand.NextFloat(0.1f, 2.9f));
|
||||
dust2.noGravity = false;
|
||||
dust2.scale = Main.rand.NextFloat(0.3f, 0.8f);
|
||||
dust2.color = color;
|
||||
|
||||
@@ -49,7 +49,7 @@ namespace CalamityMod.CalPlayer.Dashes
|
||||
holyFireDashDust.fadeIn = 0.1f;
|
||||
}
|
||||
Vector2 dustPosition = player.Center + new Vector2(Main.rand.NextFloat(-6f, 6f), Main.rand.NextFloat(-15f, 15f)) - (player.velocity * 1.7f);
|
||||
Dust dust = Dust.NewDustPerfect(dustPosition, 222, -player.velocity * Main.rand.NextFloat(0.15f, 0.4f), 0, default, 0.5f);
|
||||
Dust dust = Dust.NewDustPerfect(dustPosition, DustID.FireworkFountain_Yellow, -player.velocity * Main.rand.NextFloat(0.15f, 0.4f), 0, default, 0.5f);
|
||||
dust.noGravity = false;
|
||||
dust.shader = GameShaders.Armor.GetSecondaryShader(player.cShield, player);
|
||||
}
|
||||
@@ -76,16 +76,16 @@ namespace CalamityMod.CalPlayer.Dashes
|
||||
for (int k = 0; k < Dusts; k++)
|
||||
{
|
||||
Vector2 velocity = spinningPoint.RotatedBy(radians * k);
|
||||
Dust dust = Dust.NewDustPerfect(npc.Center, 296, velocity * 3f, 0, default, 2.5f);
|
||||
Dust dust = Dust.NewDustPerfect(npc.Center, DustID.CrimsonTorch, velocity * 3f, 0, default, 2.5f);
|
||||
dust.noGravity = true;
|
||||
dust.shader = GameShaders.Armor.GetSecondaryShader(player.cShield, player);
|
||||
|
||||
Dust dust2 = Dust.NewDustPerfect(npc.Center, 158, velocity * 5f, 0, default, 2.2f);
|
||||
Dust dust2 = Dust.NewDustPerfect(npc.Center, DustID.OrangeTorch, velocity * 5f, 0, default, 2.2f);
|
||||
dust2.noGravity = true;
|
||||
dust2.shader = GameShaders.Armor.GetSecondaryShader(player.cShield, player);
|
||||
dust2.color = Color.Salmon;
|
||||
|
||||
Dust dust3 = Dust.NewDustPerfect(npc.Center, 169, velocity * 7f, 0, default, 1.9f);
|
||||
Dust dust3 = Dust.NewDustPerfect(npc.Center, DustID.IchorTorch, velocity * 7f, 0, default, 1.9f);
|
||||
dust3.noGravity = true;
|
||||
dust3.shader = GameShaders.Armor.GetSecondaryShader(player.cShield, player);
|
||||
dust3.color = Color.SandyBrown;
|
||||
@@ -93,7 +93,7 @@ namespace CalamityMod.CalPlayer.Dashes
|
||||
}
|
||||
for (int k = 0; k < 5; k++)
|
||||
{
|
||||
Dust dust = Dust.NewDustPerfect(npc.Center, 222, new Vector2(0, -3.5f).RotatedByRandom(0.7f) * Main.rand.NextFloat(0.8f, 1.4f), 0, default, 1.2f);
|
||||
Dust dust = Dust.NewDustPerfect(npc.Center, DustID.FireworkFountain_Yellow, new Vector2(0, -3.5f).RotatedByRandom(0.7f) * Main.rand.NextFloat(0.8f, 1.4f), 0, default, 1.2f);
|
||||
dust.noGravity = false;
|
||||
dust.shader = GameShaders.Armor.GetSecondaryShader(player.cShield, player);
|
||||
}
|
||||
|
||||
@@ -8,6 +8,7 @@ using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.DataStructures;
|
||||
using Terraria.Graphics.Shaders;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.CalPlayer.Dashes
|
||||
@@ -50,7 +51,7 @@ namespace CalamityMod.CalPlayer.Dashes
|
||||
if (hFlameDust.type == 180)
|
||||
hFlameDust.scale = Main.rand.NextFloat(1.6f, 2.2f);
|
||||
|
||||
Dust dust = Dust.NewDustPerfect(player.Center + Main.rand.NextVector2Circular(6, 6) - player.velocity * 2, 228);
|
||||
Dust dust = Dust.NewDustPerfect(player.Center + Main.rand.NextVector2Circular(6, 6) - player.velocity * 2, DustID.GoldFlame);
|
||||
dust.velocity = -player.velocity * Main.rand.NextFloat(0.6f, 1.4f);
|
||||
dust.scale = Main.rand.NextFloat(0.9f, 1.4f);
|
||||
dust.noGravity = true;
|
||||
|
||||
@@ -135,7 +135,7 @@ namespace CalamityMod.CalPlayer.DrawLayers
|
||||
drawInfo.itemColor = drawInfo.itemColor.MultiplyRGBA(new Color(Vector4.Lerp(Vector4.One, new Vector4(0f, 0.12f, 0.16f, 0f), 1f - stealth)));
|
||||
}
|
||||
|
||||
bool inUse = drawPlayer.itemAnimation > 0 && heldItem.useStyle != 0;
|
||||
bool inUse = drawPlayer.itemAnimation > 0 && heldItem.useStyle != ItemUseStyleID.None;
|
||||
bool visuallyHeld = heldItem.holdStyle != 0 && !drawPlayer.pulley;
|
||||
if (!drawPlayer.CanVisuallyHoldItem(heldItem))
|
||||
visuallyHeld = false;
|
||||
|
||||
@@ -6,6 +6,7 @@ using Microsoft.Xna.Framework.Graphics;
|
||||
using Terraria;
|
||||
using Terraria.Audio;
|
||||
using Terraria.Graphics.Shaders;
|
||||
using Terraria.ID;
|
||||
using Terraria.Localization;
|
||||
using static Terraria.ModLoader.ModContent;
|
||||
|
||||
@@ -33,7 +34,7 @@ namespace CalamityMod.Cooldowns
|
||||
for (int i = 0; i < 6; i++)
|
||||
{
|
||||
Vector2 dustDirection = Main.rand.NextVector2CircularEdge(1f, 1f);
|
||||
Dust d = Dust.NewDustPerfect(instance.player.Center + dustDirection * Main.rand.NextFloat(0.4f, 10f), 226, dustDirection * Main.rand.NextFloat(1f, 4f), 100, Color.Transparent, Main.rand.NextFloat(0.8f, 1.2f));
|
||||
Dust d = Dust.NewDustPerfect(instance.player.Center + dustDirection * Main.rand.NextFloat(0.4f, 10f), DustID.Electric, dustDirection * Main.rand.NextFloat(1f, 4f), 100, Color.Transparent, Main.rand.NextFloat(0.8f, 1.2f));
|
||||
d.noGravity = true;
|
||||
d.noLight = true;
|
||||
d.fadeIn = 1f;
|
||||
|
||||
@@ -376,7 +376,7 @@ namespace CalamityMod.DataStructures
|
||||
|
||||
for (int i = 0; i < 12; i++)
|
||||
{
|
||||
Dust energyPuff = Dust.NewDustPerfect(CalculateGemPosition(gemType), 267);
|
||||
Dust energyPuff = Dust.NewDustPerfect(CalculateGemPosition(gemType), DustID.RainbowMk2);
|
||||
energyPuff.velocity = (MathHelper.TwoPi * i / 12f).ToRotationVector2() * 5f;
|
||||
energyPuff.color = GetColorFromGemType(gemType);
|
||||
energyPuff.scale = 1.125f;
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Dusts.WaterSplash
|
||||
@@ -7,7 +8,7 @@ namespace CalamityMod.Dusts.WaterSplash
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
UpdateType = 33;
|
||||
UpdateType = DustID.Water;
|
||||
}
|
||||
|
||||
public override void OnSpawn(Dust dust)
|
||||
|
||||
@@ -509,7 +509,7 @@ namespace CalamityMod.ILEditing
|
||||
for (int i = 0; i < 200; i++)
|
||||
{
|
||||
NPC hitNPC = Main.npc[i];
|
||||
if (!hitNPC.active || hitNPC.dontTakeDamage || hitNPC.friendly || (hitNPC.aiStyle == 112 && !(hitNPC.ai[2] <= 1f)) || !self.CanNPCBeHitByPlayerOrPlayerProjectile(hitNPC))
|
||||
if (!hitNPC.active || hitNPC.dontTakeDamage || hitNPC.friendly || (hitNPC.aiStyle == NPCAIStyleID.Fairy && !(hitNPC.ai[2] <= 1f)) || !self.CanNPCBeHitByPlayerOrPlayerProjectile(hitNPC))
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
@@ -117,7 +117,7 @@ namespace CalamityMod.Items.Accessories
|
||||
|
||||
for (int i = 0; i < 5; i++)
|
||||
{
|
||||
Dust dust = Dust.NewDustPerfect(dustOrigin, 229, dustVelocity, 120, Scale: Main.rand.NextFloat(0.6f, 1f));
|
||||
Dust dust = Dust.NewDustPerfect(dustOrigin, DustID.Vortex, dustVelocity, 120, Scale: Main.rand.NextFloat(0.6f, 1f));
|
||||
dust.noGravity = true;
|
||||
dustOrigin += dustOriginOffset;
|
||||
}
|
||||
|
||||
@@ -77,7 +77,7 @@ namespace CalamityMod.Items.Accessories
|
||||
public override void OnSpawn(Projectile projectile, IEntitySource source)
|
||||
{
|
||||
Player owner = Main.player[projectile.owner];
|
||||
if (projectile.aiStyle == 7 && projectile.type != ProjectileType<WulfrumHook>() && owner.GetModPlayer<WulfrumPackPlayer>().WulfrumPackEquipped && projectile.type != ProjectileID.TrackHook)
|
||||
if (projectile.aiStyle == ProjAIStyleID.Hook && projectile.type != ProjectileType<WulfrumHook>() && owner.GetModPlayer<WulfrumPackPlayer>().WulfrumPackEquipped && projectile.type != ProjectileID.TrackHook)
|
||||
{
|
||||
projectile.active = false;
|
||||
}
|
||||
@@ -536,7 +536,7 @@ namespace CalamityMod.Items.Accessories
|
||||
//Clear any previous non-wulfrum hooks / Any hooks that just got shot (should already be handled by the global proj
|
||||
foreach (Projectile p in Main.ActiveProjectiles)
|
||||
{
|
||||
if (p.owner != Player.whoAmI || p.aiStyle != 7 || p.type == ProjectileType<WulfrumHook>())
|
||||
if (p.owner != Player.whoAmI || p.aiStyle != ProjAIStyleID.Hook || p.type == ProjectileType<WulfrumHook>())
|
||||
continue;
|
||||
|
||||
p.Kill();
|
||||
|
||||
@@ -79,7 +79,7 @@ namespace CalamityMod.Items.Accessories
|
||||
{
|
||||
float size = (projectile.Hitbox.Size() / 2f).Length();
|
||||
|
||||
Dust zapDust = Dust.NewDustPerfect(projectile.Center + Main.rand.NextVector2Circular(1f, 1f) * size, 66, Main.rand.NextVector2Circular(1f, 1f) * Main.rand.NextFloat(0.5f, 1.3f));
|
||||
Dust zapDust = Dust.NewDustPerfect(projectile.Center + Main.rand.NextVector2Circular(1f, 1f) * size, DustID.RainbowTorch, Main.rand.NextVector2Circular(1f, 1f) * Main.rand.NextFloat(0.5f, 1.3f));
|
||||
zapDust.noGravity = true;
|
||||
zapDust.color = Main.rand.NextBool() ? Color.SkyBlue : Color.LightGreen;
|
||||
zapDust.velocity = projectile.velocity * 0.2f;
|
||||
|
||||
@@ -364,7 +364,7 @@ namespace CalamityMod.Items.Armor.MarniteArchitect
|
||||
if (Main.rand.NextFloat() > (centerDistance / MarniteArchitectHeadgear.MaxLiftHeight) * 0.6f && Main.rand.NextBool())
|
||||
{
|
||||
float scale = 1.2f - (centerDistance / MarniteArchitectHeadgear.MaxLiftHeight) * 0.7f;
|
||||
Dust dust = Dust.NewDustPerfect(player.Bottom + Vector2.UnitY * centerDistance + Vector2.UnitX * Main.rand.Next(-16, 16), 31, new Vector2((Main.rand.NextFloat(-8, 8) * scale) - player.velocity.X, Main.rand.NextFloat(-1, 1)), 120, Scale: scale * 1.5f);
|
||||
Dust dust = Dust.NewDustPerfect(player.Bottom + Vector2.UnitY * centerDistance + Vector2.UnitX * Main.rand.Next(-16, 16), DustID.Smoke, new Vector2((Main.rand.NextFloat(-8, 8) * scale) - player.velocity.X, Main.rand.NextFloat(-1, 1)), 120, Scale: scale * 1.5f);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -372,7 +372,7 @@ namespace CalamityMod.Items.Armor.MarniteArchitect
|
||||
{
|
||||
float speedRotation = player.velocity.X * 0.03f;
|
||||
|
||||
Dust dust = Dust.NewDustPerfect(player.Bottom + Vector2.UnitX.RotatedBy(speedRotation) * Main.rand.Next(-6, 6) + Vector2.UnitY.RotatedBy(speedRotation) * -2f, 229, Vector2.UnitY.RotatedBy(speedRotation) * Main.rand.NextFloat(1f, 3f), 120, Scale: Main.rand.NextFloat(0.6f, 1f));
|
||||
Dust dust = Dust.NewDustPerfect(player.Bottom + Vector2.UnitX.RotatedBy(speedRotation) * Main.rand.Next(-6, 6) + Vector2.UnitY.RotatedBy(speedRotation) * -2f, DustID.Vortex, Vector2.UnitY.RotatedBy(speedRotation) * Main.rand.NextFloat(1f, 3f), 120, Scale: Main.rand.NextFloat(0.6f, 1f));
|
||||
dust.noGravity = true;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -68,7 +68,7 @@ namespace CalamityMod.Items.Armor.Wulfrum
|
||||
if (!WulfrumHat.HasArmorSet(player))
|
||||
{
|
||||
Item.type = ItemID.None;
|
||||
Item.SetDefaults(0);
|
||||
Item.SetDefaults(ItemID.None);
|
||||
Item.stack = 0;
|
||||
|
||||
Main.mouseItem = new Item();
|
||||
|
||||
@@ -47,7 +47,7 @@ namespace CalamityMod.Items.Mounts.Minecarts
|
||||
offsetDirection *= new Vector2(Main.rand.NextBool().ToDirectionInt(), 1f) * 13f;
|
||||
dustPosition += offsetDirection;
|
||||
|
||||
Dust spark = Dust.NewDustPerfect(dustPosition, 234);
|
||||
Dust spark = Dust.NewDustPerfect(dustPosition, DustID.BoneTorch);
|
||||
spark.velocity = Main.rand.NextVector2Circular(4f, 4f);
|
||||
spark.velocity.X *= Main.rand.NextFloat(0.25f, 1f);
|
||||
spark.velocity.Y -= Main.rand.NextFloat(1.25f, 3f);
|
||||
|
||||
@@ -47,7 +47,7 @@ namespace CalamityMod.Items.Tools
|
||||
bool surface = player.Center.Y < Main.worldSurface * 16.0;
|
||||
bool GetEffects = ((Main.raining && surface) || player.dripping || (player.wet && !player.lavaWet && !player.honeyWet));
|
||||
if (GetEffects)
|
||||
Dust.NewDust(new Vector2(hitbox.X, hitbox.Y), hitbox.Width, hitbox.Height, 160);
|
||||
Dust.NewDust(new Vector2(hitbox.X, hitbox.Y), hitbox.Width, hitbox.Height, DustID.MagnetSphere);
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
|
||||
@@ -115,7 +115,7 @@ namespace CalamityMod.Items.Tools
|
||||
|
||||
for (int i = 0; i < sparkCount; i++)
|
||||
{
|
||||
Dust.NewDustPerfect(centerPosition, 226, Main.rand.NextVector2Circular(18f, 18f), Scale: Main.rand.NextFloat(0.4f, 1f));
|
||||
Dust.NewDustPerfect(centerPosition, DustID.Electric, Main.rand.NextVector2Circular(18f, 18f), Scale: Main.rand.NextFloat(0.4f, 1f));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -52,7 +52,7 @@ namespace CalamityMod.Items.Weapons.Magic
|
||||
GeneralParticleHandler.SpawnParticle(spark);
|
||||
for (int b = 0; b < 3; b++)
|
||||
{
|
||||
Dust dust = Dust.NewDustPerfect(position + velocity * 2.5f, 278, (velocity2 * 10).RotatedByRandom(0.5) * Main.rand.NextFloat(0.5f, 0.9f));
|
||||
Dust dust = Dust.NewDustPerfect(position + velocity * 2.5f, DustID.FireworksRGB, (velocity2 * 10).RotatedByRandom(0.5) * Main.rand.NextFloat(0.5f, 0.9f));
|
||||
dust.scale = Main.rand.NextFloat(0.3f, 0.5f);
|
||||
dust.color = Main.rand.NextBool() ? Color.Cyan : Color.LightBlue;
|
||||
dust.noGravity = true;
|
||||
|
||||
@@ -48,7 +48,7 @@ namespace CalamityMod.Items.Weapons.Magic
|
||||
}
|
||||
for (int i = 0; i < 2; i++)
|
||||
{
|
||||
Dust chargefull = Dust.NewDustPerfect(position + velocity * 13, 267);
|
||||
Dust chargefull = Dust.NewDustPerfect(position + velocity * 13, DustID.RainbowMk2);
|
||||
chargefull.velocity = velocity.RotatedByRandom(0.25f) * Main.rand.NextFloat(1f, 4);
|
||||
chargefull.scale = Main.rand.NextFloat(0.5f, 0.9f);
|
||||
chargefull.noGravity = true;
|
||||
|
||||
@@ -29,7 +29,7 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
public override void MeleeEffects(Player player, Rectangle hitbox)
|
||||
{
|
||||
if (IsPlayerInContactWithWater(player))
|
||||
Dust.NewDust(new Vector2(hitbox.X, hitbox.Y), hitbox.Width, hitbox.Height, 160);
|
||||
Dust.NewDust(new Vector2(hitbox.X, hitbox.Y), hitbox.Width, hitbox.Height, DustID.MagnetSphere);
|
||||
}
|
||||
|
||||
public override float UseSpeedMultiplier(Player player) => IsPlayerInContactWithWater(player) ? 1.66f : 1f;
|
||||
|
||||
@@ -73,7 +73,7 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
if (Main.rand.NextBool())
|
||||
{
|
||||
Vector2 dustVel = new Vector2(5 * swordDirection, -5).RotatedByRandom(1.55f) * Main.rand.NextFloat(0.7f, 1.3f) * 2;
|
||||
Dust dust = Dust.NewDustPerfect(player.Center + dustVel * 9, 66);
|
||||
Dust dust = Dust.NewDustPerfect(player.Center + dustVel * 9, DustID.RainbowTorch);
|
||||
dust.scale = Main.rand.NextFloat(0.5f, 0.75f);
|
||||
dust.velocity = dustVel * 0.85f;
|
||||
dust.color = Color.LightGreen;
|
||||
|
||||
@@ -80,7 +80,7 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
Vector2 dustSpawn = t.ToRotationVector2() * r * Item.Size;
|
||||
if (dustSpawn.X > Item.width / 2)
|
||||
{
|
||||
Dust.NewDustPerfect(player.MountedCenter + dustSpawn.RotatedBy(player.itemRotation) * player.direction, 218, Vector2.Zero).noGravity = true;
|
||||
Dust.NewDustPerfect(player.MountedCenter + dustSpawn.RotatedBy(player.itemRotation) * player.direction, DustID.Rain_BloodMoon, Vector2.Zero).noGravity = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
@@ -81,7 +81,7 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
{
|
||||
if (Main.rand.NextBool())
|
||||
{
|
||||
int dust = Dust.NewDust(new Vector2(hitbox.X, hitbox.Y), hitbox.Width, hitbox.Height, 66, 0f, 0f, 0, Color.Plum, Main.rand.NextFloat(0.65f, 1.2f));
|
||||
int dust = Dust.NewDust(new Vector2(hitbox.X, hitbox.Y), hitbox.Width, hitbox.Height, DustID.RainbowTorch, 0f, 0f, 0, Color.Plum, Main.rand.NextFloat(0.65f, 1.2f));
|
||||
Main.dust[dust].noGravity = true;
|
||||
}
|
||||
}
|
||||
@@ -91,10 +91,10 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
SoundEngine.PlaySound(sound with { Volume = 0.65f, PitchVariance = 0.3f, Pitch = -0.5f }, target.Center);
|
||||
for (int i = 0; i <= 30; i++)
|
||||
{
|
||||
Dust dust = Dust.NewDustPerfect(target.Center, 66, new Vector2(0, -18).RotatedByRandom(MathHelper.ToRadians(15f)) * Main.rand.NextFloat(0.1f, 1.9f));
|
||||
Dust dust = Dust.NewDustPerfect(target.Center, DustID.RainbowTorch, new Vector2(0, -18).RotatedByRandom(MathHelper.ToRadians(15f)) * Main.rand.NextFloat(0.1f, 1.9f));
|
||||
dust.noGravity = true;
|
||||
dust.scale = Main.rand.NextFloat(0.7f, 1.6f);
|
||||
Dust dust2 = Dust.NewDustPerfect(target.Center, 66, new Vector2(0, -7).RotatedByRandom(MathHelper.ToRadians(35f)) * Main.rand.NextFloat(0.1f, 1.9f));
|
||||
Dust dust2 = Dust.NewDustPerfect(target.Center, DustID.RainbowTorch, new Vector2(0, -7).RotatedByRandom(MathHelper.ToRadians(35f)) * Main.rand.NextFloat(0.1f, 1.9f));
|
||||
dust2.noGravity = true;
|
||||
dust2.scale = Main.rand.NextFloat(0.7f, 1.6f);
|
||||
}
|
||||
|
||||
@@ -125,7 +125,7 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
}
|
||||
for (int i = 0; i <= 10; i++)
|
||||
{
|
||||
Dust dust = Dust.NewDustPerfect(nuzzlePos, 303, velocity.RotatedByRandom(MathHelper.ToRadians(7f)) * Main.rand.NextFloat(0.05f, 0.4f), 0, default, Main.rand.NextFloat(0.9f, 1.2f));
|
||||
Dust dust = Dust.NewDustPerfect(nuzzlePos, DustID.SteampunkSteam, velocity.RotatedByRandom(MathHelper.ToRadians(7f)) * Main.rand.NextFloat(0.05f, 0.4f), 0, default, Main.rand.NextFloat(0.9f, 1.2f));
|
||||
dust.noGravity = true;
|
||||
dust.alpha = 150;
|
||||
}
|
||||
|
||||
@@ -39,7 +39,7 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
|
||||
for (int i = 0; i <= 18; i++)
|
||||
{
|
||||
Dust dust = Dust.NewDustPerfect(position + velocity * 3f, 160, velocity.RotatedByRandom(MathHelper.ToRadians(19f)) * Main.rand.NextFloat(0.8f, 3.8f), Scale: Main.rand.NextFloat(1.2f, 1.6f));
|
||||
Dust dust = Dust.NewDustPerfect(position + velocity * 3f, DustID.MagnetSphere, velocity.RotatedByRandom(MathHelper.ToRadians(19f)) * Main.rand.NextFloat(0.8f, 3.8f), Scale: Main.rand.NextFloat(1.2f, 1.6f));
|
||||
dust.noGravity = true;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -103,7 +103,7 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
int randomColor = Main.rand.Next(1, 3 + 1);
|
||||
Color color = randomColor == 1 ? Color.LightBlue : randomColor == 2 ? Color.LightPink : Color.Khaki;
|
||||
|
||||
Dust dust2 = Dust.NewDustPerfect(itemPosition + velocity.RotatedBy(-0.6 * player.direction) + velocity * 1.35f, 278, velocity.RotatedByRandom(0.25) * Main.rand.NextFloat(0.1f, 0.9f));
|
||||
Dust dust2 = Dust.NewDustPerfect(itemPosition + velocity.RotatedBy(-0.6 * player.direction) + velocity * 1.35f, DustID.FireworksRGB, velocity.RotatedByRandom(0.25) * Main.rand.NextFloat(0.1f, 0.9f));
|
||||
dust2.noGravity = true;
|
||||
dust2.scale = Main.rand.NextFloat(0.3f, 0.45f);
|
||||
dust2.color = color;
|
||||
|
||||
@@ -97,7 +97,7 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
Trail = !Trail;
|
||||
for (int i = 0; i <= 2; i++)
|
||||
{
|
||||
Dust dust = Dust.NewDustPerfect(position + velocity * 3f + new Vector2(0, -3), 158, velocity.RotatedBy(0.25f * player.direction).RotatedByRandom(0.35f) * Main.rand.NextFloat(0.5f, 2.5f), 0, default, Main.rand.NextFloat(1.6f, 2f));
|
||||
Dust dust = Dust.NewDustPerfect(position + velocity * 3f + new Vector2(0, -3), DustID.OrangeTorch, velocity.RotatedBy(0.25f * player.direction).RotatedByRandom(0.35f) * Main.rand.NextFloat(0.5f, 2.5f), 0, default, Main.rand.NextFloat(1.6f, 2f));
|
||||
dust.noGravity = true;
|
||||
}
|
||||
CritSpark spark = new CritSpark(position + velocity * 3f + new Vector2(0, -3), velocity.RotatedBy(0.25f * player.direction).RotatedByRandom(0.25f) * Main.rand.NextFloat(0.2f, 1.8f), Main.rand.NextBool() ? Color.DarkOrange : Color.OrangeRed, Color.OrangeRed, 0.9f, 18, 2f, 1.9f);
|
||||
|
||||
@@ -74,7 +74,7 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
Particle smoke = new HeavySmokeParticle(spawnPosition, smokeVel, Color.White, Main.rand.Next(40, 60 + 1), Main.rand.NextFloat(0.2f, 0.45f), 0.5f, Main.rand.NextFloat(-0.2f, 0.2f), Main.rand.NextBool(), required: true);
|
||||
GeneralParticleHandler.SpawnParticle(smoke);
|
||||
|
||||
Dust dust = Dust.NewDustPerfect(spawnPosition, 303, smokeVel.RotatedByRandom(0.15f), 80, default, Main.rand.NextFloat(0.25f, 1f));
|
||||
Dust dust = Dust.NewDustPerfect(spawnPosition, DustID.SteampunkSteam, smokeVel.RotatedByRandom(0.15f), 80, default, Main.rand.NextFloat(0.25f, 1f));
|
||||
dust.noGravity = false;
|
||||
dust.color = Color.White;
|
||||
}
|
||||
|
||||
@@ -64,7 +64,7 @@ namespace CalamityMod.Items.Weapons.Summon
|
||||
head.originalDamage = Item.damage;
|
||||
for (int i = 0; i < 72; i++)
|
||||
{
|
||||
Dust dust = Dust.NewDustPerfect(Main.projectile[bodyIndex].Center, 113);
|
||||
Dust dust = Dust.NewDustPerfect(Main.projectile[bodyIndex].Center, DustID.MushroomSpray);
|
||||
dust.velocity = (MathHelper.TwoPi * Vector2.Dot((i / 72f * MathHelper.TwoPi).ToRotationVector2(), player.velocity.SafeNormalize(Vector2.UnitY).RotatedBy(i / 72f * -MathHelper.TwoPi))).ToRotationVector2();
|
||||
dust.velocity = dust.velocity.RotatedBy(i / 36f * MathHelper.TwoPi) * 8f;
|
||||
dust.noGravity = true;
|
||||
|
||||
@@ -86,9 +86,9 @@ namespace CalamityMod.Items.Weapons.Summon
|
||||
if (!visuals)
|
||||
return false;
|
||||
|
||||
Dust warningDust = Dust.NewDustPerfect(pos.ToVector2() * 16f + Vector2.One * 8f, 127, Scale: 1.2f);
|
||||
Dust warningDust = Dust.NewDustPerfect(pos.ToVector2() * 16f + Vector2.One * 8f, DustID.Flare, Scale: 1.2f);
|
||||
|
||||
warningDust = Dust.NewDustPerfect(pos.ToVector2() * 16f + Vector2.One * 8f, 114, Vector2.Zero, Scale: 1.4f);
|
||||
warningDust = Dust.NewDustPerfect(pos.ToVector2() * 16f + Vector2.One * 8f, DustID.CrimsonSpray, Vector2.Zero, Scale: 1.4f);
|
||||
warningDust.noGravity = true;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -58,7 +58,7 @@ namespace CalamityMod.Items.Weapons.Summon
|
||||
for (int i = 0; i < 36; i++)
|
||||
{
|
||||
float angle = MathHelper.TwoPi / 36f * i + Main.rand.NextFloat(MathHelper.TwoPi / 36f);
|
||||
Dust dust = Dust.NewDustPerfect(position + angle.ToRotationVector2() * ItemUseDustMaxRadius, 247);
|
||||
Dust dust = Dust.NewDustPerfect(position + angle.ToRotationVector2() * ItemUseDustMaxRadius, DustID.PlatinumCoin);
|
||||
dust.velocity = Vector2.Normalize(angle.ToRotationVector2()) * 2.5f;
|
||||
dust.noGravity = true;
|
||||
dust.scale = 0.8f;
|
||||
|
||||
@@ -89,7 +89,7 @@ namespace CalamityMod.Items.Weapons.Summon
|
||||
{
|
||||
Vector2 dustPos = Player.position + (Player.height * Main.rand.NextFloat(0.7f, 1f) + Player.gfxOffY) * Vector2.UnitY + Vector2.UnitX * Main.rand.NextFloat() * Player.width;
|
||||
|
||||
Dust chust = Dust.NewDustPerfect(dustPos, 274, -Vector2.UnitY * Main.rand.NextFloat(1.4f, 7f) + Player.velocity, Alpha: 100, Scale: Main.rand.NextFloat(1.2f, 1.8f));
|
||||
Dust chust = Dust.NewDustPerfect(dustPos, DustID.ApprenticeStorm, -Vector2.UnitY * Main.rand.NextFloat(1.4f, 7f) + Player.velocity, Alpha: 100, Scale: Main.rand.NextFloat(1.2f, 1.8f));
|
||||
chust.noGravity = true;
|
||||
chust.noLight = true;
|
||||
}
|
||||
|
||||
@@ -177,7 +177,7 @@ namespace CalamityMod.NPCs.AcidRain
|
||||
{
|
||||
for (int i = 0; i < 4; i++)
|
||||
{
|
||||
Dust rock = Dust.NewDustPerfect(NPC.Center + Main.rand.NextVector2Circular(75f, 75f), 1);
|
||||
Dust rock = Dust.NewDustPerfect(NPC.Center + Main.rand.NextVector2Circular(75f, 75f), DustID.Stone);
|
||||
rock.color = Color.Yellow;
|
||||
rock.velocity = (NPC.Center - rock.position) * Main.rand.NextFloat(0.06f, 0.09f);
|
||||
rock.scale = Main.rand.NextFloat(1f, 1.3f);
|
||||
@@ -400,7 +400,7 @@ namespace CalamityMod.NPCs.AcidRain
|
||||
// Create some charge dust.
|
||||
if (AttackTimer > digReapperTime && AttackTimer < digReapperTime + chargeupTelegraphTime)
|
||||
{
|
||||
Dust chargeupDust = Dust.NewDustPerfect(NPC.Center, 267);
|
||||
Dust chargeupDust = Dust.NewDustPerfect(NPC.Center, DustID.RainbowMk2);
|
||||
chargeupDust.position -= Vector2.UnitY.RotatedByRandom(MathHelper.TwoPi) * NPC.height * 0.4f;
|
||||
chargeupDust.velocity = -Vector2.UnitY.RotatedByRandom(0.31f) * Main.rand.NextFloat(2f, 6f);
|
||||
chargeupDust.color = Color.Lerp(Color.Green, Color.Yellow, Main.rand.NextFloat());
|
||||
@@ -415,7 +415,7 @@ namespace CalamityMod.NPCs.AcidRain
|
||||
SoundEngine.PlaySound(SoundID.Zombie104, NPC.Center);
|
||||
for (int i = 0; i < 40; i++)
|
||||
{
|
||||
Dust burstDust = Dust.NewDustPerfect(NPC.Center + Main.rand.NextVector2Circular(75f, 75f), 267);
|
||||
Dust burstDust = Dust.NewDustPerfect(NPC.Center + Main.rand.NextVector2Circular(75f, 75f), DustID.RainbowMk2);
|
||||
burstDust.velocity = Main.rand.NextVector2Unit() * Main.rand.NextFloat(2f, 6f);
|
||||
burstDust.color = Color.Lerp(Color.Green, Color.Yellow, Main.rand.NextFloat());
|
||||
burstDust.scale = Main.rand.NextFloat(1.1f, 1.45f);
|
||||
|
||||
@@ -65,7 +65,7 @@ namespace CalamityMod.NPCs.Astral
|
||||
{
|
||||
for (int j = y - 1; j <= y + 1; j++)
|
||||
{
|
||||
if (Main.tile[i, j] != null && Main.tile[i, j].WallType > 0)
|
||||
if (Main.tile[i, j] != null && Main.tile[i, j].WallType > WallID.None)
|
||||
{
|
||||
transform = true;
|
||||
}
|
||||
|
||||
@@ -6437,7 +6437,7 @@ namespace CalamityMod.NPCs
|
||||
player.inventory[item].stack--;
|
||||
if (player.inventory[item].stack <= 0)
|
||||
{
|
||||
player.inventory[item].SetDefaults(0, false);
|
||||
player.inventory[item].SetDefaults(ItemID.None, false);
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -2337,7 +2337,7 @@ namespace CalamityMod.NPCs.DevourerofGods
|
||||
{
|
||||
for (int j = 0; j < 20; j++)
|
||||
{
|
||||
Dust cosmicBurst = Dust.NewDustPerfect(n.Center + Main.rand.NextVector2Circular(25f, 25f), 234);
|
||||
Dust cosmicBurst = Dust.NewDustPerfect(n.Center + Main.rand.NextVector2Circular(25f, 25f), DustID.BoneTorch);
|
||||
cosmicBurst.scale = 1.7f;
|
||||
cosmicBurst.velocity = Main.rand.NextVector2Circular(9f, 9f);
|
||||
cosmicBurst.noGravity = true;
|
||||
|
||||
@@ -249,7 +249,7 @@ namespace CalamityMod.NPCs.DraedonLabThings
|
||||
}
|
||||
|
||||
// If there are walls to clime on and this NPC wants to climb on some, do so.
|
||||
if (WantsToClimbOnSomeWall && CalamityUtils.ParanoidTileRetrieval((int)NPC.Center.X / 16, (int)NPC.Center.Y / 16).WallType > 0)
|
||||
if (WantsToClimbOnSomeWall && CalamityUtils.ParanoidTileRetrieval((int)NPC.Center.X / 16, (int)NPC.Center.Y / 16).WallType > WallID.None)
|
||||
{
|
||||
CurrentState = BehaviorState.WalkOnWalls;
|
||||
StuckCount = 0f;
|
||||
|
||||
@@ -1736,7 +1736,7 @@ namespace CalamityMod.NPCs.ExoMechs.Apollo
|
||||
public override void HitEffect(NPC.HitInfo hit)
|
||||
{
|
||||
for (int k = 0; k < 3; k++)
|
||||
Dust.NewDust(NPC.position, NPC.width, NPC.height, 107, 0f, 0f, 100, new Color(0, 255, 255), 1f);
|
||||
Dust.NewDust(NPC.position, NPC.width, NPC.height, DustID.Terra, 0f, 0f, 100, new Color(0, 255, 255), 1f);
|
||||
|
||||
if (NPC.soundDelay == 0)
|
||||
{
|
||||
@@ -1748,14 +1748,14 @@ namespace CalamityMod.NPCs.ExoMechs.Apollo
|
||||
{
|
||||
for (int num193 = 0; num193 < 2; num193++)
|
||||
{
|
||||
Dust.NewDust(NPC.position, NPC.width, NPC.height, 107, 0f, 0f, 100, new Color(0, 255, 255), 1.5f);
|
||||
Dust.NewDust(NPC.position, NPC.width, NPC.height, DustID.Terra, 0f, 0f, 100, new Color(0, 255, 255), 1.5f);
|
||||
}
|
||||
for (int i = 0; i < 20; i++)
|
||||
{
|
||||
int plasmaDust = Dust.NewDust(NPC.position, NPC.width, NPC.height, 107, 0f, 0f, 0, new Color(0, 255, 255), 2.5f);
|
||||
int plasmaDust = Dust.NewDust(NPC.position, NPC.width, NPC.height, DustID.Terra, 0f, 0f, 0, new Color(0, 255, 255), 2.5f);
|
||||
Main.dust[plasmaDust].noGravity = true;
|
||||
Main.dust[plasmaDust].velocity *= 3f;
|
||||
plasmaDust = Dust.NewDust(NPC.position, NPC.width, NPC.height, 107, 0f, 0f, 100, new Color(0, 255, 255), 1.5f);
|
||||
plasmaDust = Dust.NewDust(NPC.position, NPC.width, NPC.height, DustID.Terra, 0f, 0f, 100, new Color(0, 255, 255), 1.5f);
|
||||
Main.dust[plasmaDust].velocity *= 2f;
|
||||
Main.dust[plasmaDust].noGravity = true;
|
||||
}
|
||||
|
||||
@@ -1667,7 +1667,7 @@ namespace CalamityMod.NPCs.ExoMechs.Ares
|
||||
public override void HitEffect(NPC.HitInfo hit)
|
||||
{
|
||||
for (int k = 0; k < 3; k++)
|
||||
Dust.NewDust(NPC.position, NPC.width, NPC.height, 107, 0f, 0f, 100, new Color(0, 255, 255), 1f);
|
||||
Dust.NewDust(NPC.position, NPC.width, NPC.height, DustID.Terra, 0f, 0f, 100, new Color(0, 255, 255), 1f);
|
||||
|
||||
if (NPC.soundDelay == 0)
|
||||
{
|
||||
@@ -1679,14 +1679,14 @@ namespace CalamityMod.NPCs.ExoMechs.Ares
|
||||
{
|
||||
for (int i = 0; i < 2; i++)
|
||||
{
|
||||
Dust.NewDust(NPC.position, NPC.width, NPC.height, 107, 0f, 0f, 100, new Color(0, 255, 255), 1.5f);
|
||||
Dust.NewDust(NPC.position, NPC.width, NPC.height, DustID.Terra, 0f, 0f, 100, new Color(0, 255, 255), 1.5f);
|
||||
}
|
||||
for (int j = 0; j < 20; j++)
|
||||
{
|
||||
int plasmaDust = Dust.NewDust(NPC.position, NPC.width, NPC.height, 107, 0f, 0f, 0, new Color(0, 255, 255), 2.5f);
|
||||
int plasmaDust = Dust.NewDust(NPC.position, NPC.width, NPC.height, DustID.Terra, 0f, 0f, 0, new Color(0, 255, 255), 2.5f);
|
||||
Main.dust[plasmaDust].noGravity = true;
|
||||
Main.dust[plasmaDust].velocity *= 3f;
|
||||
plasmaDust = Dust.NewDust(NPC.position, NPC.width, NPC.height, 107, 0f, 0f, 100, new Color(0, 255, 255), 1.5f);
|
||||
plasmaDust = Dust.NewDust(NPC.position, NPC.width, NPC.height, DustID.Terra, 0f, 0f, 100, new Color(0, 255, 255), 1.5f);
|
||||
Main.dust[plasmaDust].velocity *= 2f;
|
||||
Main.dust[plasmaDust].noGravity = true;
|
||||
}
|
||||
|
||||
@@ -1552,7 +1552,7 @@ namespace CalamityMod.NPCs.ExoMechs.Artemis
|
||||
public override void HitEffect(NPC.HitInfo hit)
|
||||
{
|
||||
for (int k = 0; k < 3; k++)
|
||||
Dust.NewDust(NPC.position, NPC.width, NPC.height, 107, 0f, 0f, 100, new Color(0, 255, 255), 1f);
|
||||
Dust.NewDust(NPC.position, NPC.width, NPC.height, DustID.Terra, 0f, 0f, 100, new Color(0, 255, 255), 1f);
|
||||
|
||||
if (NPC.soundDelay == 0)
|
||||
{
|
||||
@@ -1564,14 +1564,14 @@ namespace CalamityMod.NPCs.ExoMechs.Artemis
|
||||
{
|
||||
for (int i = 0; i < 2; i++)
|
||||
{
|
||||
Dust.NewDust(NPC.position, NPC.width, NPC.height, 107, 0f, 0f, 100, new Color(0, 255, 255), 1.5f);
|
||||
Dust.NewDust(NPC.position, NPC.width, NPC.height, DustID.Terra, 0f, 0f, 100, new Color(0, 255, 255), 1.5f);
|
||||
}
|
||||
for (int j = 0; j < 20; j++)
|
||||
{
|
||||
int plasmaDust = Dust.NewDust(NPC.position, NPC.width, NPC.height, 107, 0f, 0f, 0, new Color(0, 255, 255), 2.5f);
|
||||
int plasmaDust = Dust.NewDust(NPC.position, NPC.width, NPC.height, DustID.Terra, 0f, 0f, 0, new Color(0, 255, 255), 2.5f);
|
||||
Main.dust[plasmaDust].noGravity = true;
|
||||
Main.dust[plasmaDust].velocity *= 3f;
|
||||
plasmaDust = Dust.NewDust(NPC.position, NPC.width, NPC.height, 107, 0f, 0f, 100, new Color(0, 255, 255), 1.5f);
|
||||
plasmaDust = Dust.NewDust(NPC.position, NPC.width, NPC.height, DustID.Terra, 0f, 0f, 100, new Color(0, 255, 255), 1.5f);
|
||||
Main.dust[plasmaDust].velocity *= 2f;
|
||||
Main.dust[plasmaDust].noGravity = true;
|
||||
}
|
||||
|
||||
@@ -214,7 +214,7 @@ namespace CalamityMod.NPCs.NormalNPCs
|
||||
{
|
||||
int doorCheckX = (int)((NPC.position.X + (float)(NPC.width / 2) + (float)(15 * NPC.direction)) / 16f);
|
||||
int doorCheckY = (int)((NPC.position.Y + (float)NPC.height - 15f) / 16f);
|
||||
if ((Main.tile[doorCheckX, doorCheckY - 1].HasUnactuatedTile && (Main.tile[doorCheckX, doorCheckY - 1].TileType == 10 || Main.tile[doorCheckX, doorCheckY - 1].TileType == 388)) & unusedFlag)
|
||||
if ((Main.tile[doorCheckX, doorCheckY - 1].HasUnactuatedTile && (Main.tile[doorCheckX, doorCheckY - 1].TileType == TileID.ClosedDoor || Main.tile[doorCheckX, doorCheckY - 1].TileType == TileID.TallGateClosed)) & unusedFlag)
|
||||
{
|
||||
NPC.ai[2] += 1f;
|
||||
NPC.ai[3] = 0f;
|
||||
@@ -222,7 +222,7 @@ namespace CalamityMod.NPCs.NormalNPCs
|
||||
{
|
||||
NPC.velocity.X = 0.5f * (float)-(float)NPC.direction;
|
||||
int doorOpenInc = 5;
|
||||
if (Main.tile[doorCheckX, doorCheckY - 1].TileType == 388)
|
||||
if (Main.tile[doorCheckX, doorCheckY - 1].TileType == TileID.TallGateClosed)
|
||||
{
|
||||
doorOpenInc = 2;
|
||||
}
|
||||
@@ -237,7 +237,7 @@ namespace CalamityMod.NPCs.NormalNPCs
|
||||
WorldGen.KillTile(doorCheckX, doorCheckY - 1, true, false, false);
|
||||
if ((Main.netMode != NetmodeID.MultiplayerClient || !letMeIn) && letMeIn && Main.netMode != NetmodeID.MultiplayerClient)
|
||||
{
|
||||
if (Main.tile[doorCheckX, doorCheckY - 1].TileType == 10)
|
||||
if (Main.tile[doorCheckX, doorCheckY - 1].TileType == TileID.ClosedDoor)
|
||||
{
|
||||
bool canOpenDoor = WorldGen.OpenDoor(doorCheckX, doorCheckY - 1, NPC.direction);
|
||||
if (!canOpenDoor)
|
||||
@@ -250,7 +250,7 @@ namespace CalamityMod.NPCs.NormalNPCs
|
||||
NetMessage.SendData(MessageID.ToggleDoorState, -1, -1, null, 0, (float)doorCheckX, (float)(doorCheckY - 1), (float)NPC.direction, 0, 0, 0);
|
||||
}
|
||||
}
|
||||
if (Main.tile[doorCheckX, doorCheckY - 1].TileType == 388)
|
||||
if (Main.tile[doorCheckX, doorCheckY - 1].TileType == TileID.TallGateClosed)
|
||||
{
|
||||
bool canOpenTallGate = WorldGen.ShiftTallGate(doorCheckX, doorCheckY - 1, false);
|
||||
if (!canOpenTallGate)
|
||||
|
||||
@@ -236,7 +236,7 @@ namespace CalamityMod.NPCs.NormalNPCs
|
||||
else if (AITimer >= TimeBetweenBurst / 2f && AITimer < TimeBetweenBurst)
|
||||
{
|
||||
Vector2 randPos = Main.rand.NextVector2CircularEdge(100f, 100f);
|
||||
Dust telegraphDust = Dust.NewDustPerfect(NPC.Center + randPos, 172, NPC.DirectionFrom(NPC.Center + NPC.velocity + randPos) * Main.rand.NextFloat(5f, 7f), 0, default, 1.5f);
|
||||
Dust telegraphDust = Dust.NewDustPerfect(NPC.Center + randPos, DustID.DungeonWater, NPC.DirectionFrom(NPC.Center + NPC.velocity + randPos) * Main.rand.NextFloat(5f, 7f), 0, default, 1.5f);
|
||||
telegraphDust.noGravity = true;
|
||||
NPC.netUpdate = true;
|
||||
}
|
||||
|
||||
@@ -264,7 +264,7 @@ namespace CalamityMod.NPCs.NormalNPCs
|
||||
{
|
||||
int doorCheckX = (int)((NPC.position.X + (float)(NPC.width / 2) + (float)(15 * NPC.direction)) / 16f);
|
||||
int doorCheckY = (int)((NPC.position.Y + (float)NPC.height - 15f) / 16f);
|
||||
if ((Main.tile[doorCheckX, doorCheckY - 1].HasUnactuatedTile && (Main.tile[doorCheckX, doorCheckY - 1].TileType == 10 || Main.tile[doorCheckX, doorCheckY - 1].TileType == 388)) & unusedFlag)
|
||||
if ((Main.tile[doorCheckX, doorCheckY - 1].HasUnactuatedTile && (Main.tile[doorCheckX, doorCheckY - 1].TileType == TileID.ClosedDoor || Main.tile[doorCheckX, doorCheckY - 1].TileType == TileID.TallGateClosed)) & unusedFlag)
|
||||
{
|
||||
NPC.ai[2] += 1f;
|
||||
NPC.ai[3] = 0f;
|
||||
@@ -272,7 +272,7 @@ namespace CalamityMod.NPCs.NormalNPCs
|
||||
{
|
||||
NPC.velocity.X = 0.5f * (float)-(float)NPC.direction;
|
||||
int doorOpenInc = 5;
|
||||
if (Main.tile[doorCheckX, doorCheckY - 1].TileType == 388)
|
||||
if (Main.tile[doorCheckX, doorCheckY - 1].TileType == TileID.TallGateClosed)
|
||||
{
|
||||
doorOpenInc = 2;
|
||||
}
|
||||
@@ -287,7 +287,7 @@ namespace CalamityMod.NPCs.NormalNPCs
|
||||
WorldGen.KillTile(doorCheckX, doorCheckY - 1, true, false, false);
|
||||
if ((Main.netMode != NetmodeID.MultiplayerClient || !letMeIn) && letMeIn && Main.netMode != NetmodeID.MultiplayerClient)
|
||||
{
|
||||
if (Main.tile[doorCheckX, doorCheckY - 1].TileType == 10)
|
||||
if (Main.tile[doorCheckX, doorCheckY - 1].TileType == TileID.ClosedDoor)
|
||||
{
|
||||
bool canOpenDoor = WorldGen.OpenDoor(doorCheckX, doorCheckY - 1, NPC.direction);
|
||||
if (!canOpenDoor)
|
||||
@@ -300,7 +300,7 @@ namespace CalamityMod.NPCs.NormalNPCs
|
||||
NetMessage.SendData(MessageID.ToggleDoorState, -1, -1, null, 0, (float)doorCheckX, (float)(doorCheckY - 1), (float)NPC.direction, 0, 0, 0);
|
||||
}
|
||||
}
|
||||
if (Main.tile[doorCheckX, doorCheckY - 1].TileType == 388)
|
||||
if (Main.tile[doorCheckX, doorCheckY - 1].TileType == TileID.TallGateClosed)
|
||||
{
|
||||
bool canOpenTallGate = WorldGen.ShiftTallGate(doorCheckX, doorCheckY - 1, false);
|
||||
if (!canOpenTallGate)
|
||||
|
||||
@@ -153,7 +153,7 @@ namespace CalamityMod.NPCs.NormalNPCs
|
||||
for (int i = 0; i < dustCount; i++)
|
||||
{
|
||||
float angle = MathHelper.TwoPi * i / dustCount;
|
||||
Dust dust = Dust.NewDustPerfect(NPC.Center, 229);
|
||||
Dust dust = Dust.NewDustPerfect(NPC.Center, DustID.Vortex);
|
||||
dust.position = NPC.Center + angle.ToRotationVector2() * ChargeRadius;
|
||||
dust.scale = 0.7f;
|
||||
dust.noGravity = true;
|
||||
|
||||
@@ -207,7 +207,7 @@ namespace CalamityMod.NPCs.NormalNPCs
|
||||
// Generate idle dust
|
||||
if (!Main.dedServ)
|
||||
{
|
||||
Dust dust = Dust.NewDustPerfect(NPC.Bottom, 229);
|
||||
Dust dust = Dust.NewDustPerfect(NPC.Bottom, DustID.Vortex);
|
||||
dust.color = Color.Green;
|
||||
dust.scale = 0.675f;
|
||||
}
|
||||
|
||||
@@ -175,7 +175,7 @@ namespace CalamityMod.NPCs.NormalNPCs
|
||||
{
|
||||
for (int i = 0; i < 2; i++)
|
||||
{
|
||||
Dust.NewDustPerfect(NPC.Center + Main.rand.NextVector2Circular(8f, 8f), 226).scale = 0.7f;
|
||||
Dust.NewDustPerfect(NPC.Center + Main.rand.NextVector2Circular(8f, 8f), DustID.Electric).scale = 0.7f;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -32,7 +32,7 @@ namespace CalamityMod.NPCs.Other
|
||||
NPC.noTileCollide = true;
|
||||
NPC.knockBackResist = 0f;
|
||||
NPC.netAlways = true;
|
||||
NPC.aiStyle = 0;
|
||||
NPC.aiStyle = NPCAIStyleID.FaceClosestPlayer;
|
||||
NPC.Calamity().DoesNotDisappearInBossRush = true;
|
||||
NPC.Calamity().VulnerableToHeat = false;
|
||||
NPC.Calamity().VulnerableToCold = true;
|
||||
|
||||
@@ -97,7 +97,7 @@ namespace CalamityMod.NPCs.Other
|
||||
{
|
||||
for (int i = 0; i < 3; i++)
|
||||
{
|
||||
Dust magic = Dust.NewDustPerfect(NPC.Center + Main.rand.NextVector2Circular(12f, 12f), 264);
|
||||
Dust magic = Dust.NewDustPerfect(NPC.Center + Main.rand.NextVector2Circular(12f, 12f), DustID.PortalBoltTrail);
|
||||
magic.color = Color.Red;
|
||||
magic.velocity = Main.rand.NextVector2Circular(3f, 3f);
|
||||
magic.fadeIn = 0.9f;
|
||||
@@ -109,7 +109,7 @@ namespace CalamityMod.NPCs.Other
|
||||
{
|
||||
for (int i = 0; i < 15; i++)
|
||||
{
|
||||
Dust magic = Dust.NewDustPerfect(NPC.Center + Main.rand.NextVector2Circular(12f, 12f), 264);
|
||||
Dust magic = Dust.NewDustPerfect(NPC.Center + Main.rand.NextVector2Circular(12f, 12f), DustID.PortalBoltTrail);
|
||||
magic.color = Color.Red;
|
||||
magic.velocity = Main.rand.NextVector2Circular(6f, 6f);
|
||||
magic.fadeIn = 1.25f;
|
||||
|
||||
@@ -263,7 +263,7 @@ namespace CalamityMod.NPCs.Polterghast
|
||||
int randTileY = playerTileY + Main.rand.Next(-randPlayerRadius, randPlayerRadius + 1);
|
||||
try
|
||||
{
|
||||
if (WorldGen.SolidTile(randTileX, randTileY) || Main.tile[randTileX, randTileY].WallType > 0 || chargePhase)
|
||||
if (WorldGen.SolidTile(randTileX, randTileY) || Main.tile[randTileX, randTileY].WallType > WallID.None || chargePhase)
|
||||
{
|
||||
canMoveToTile = true;
|
||||
NPC.ai[0] = randTileX;
|
||||
|
||||
@@ -883,7 +883,7 @@ namespace CalamityMod.NPCs.SlimeGod
|
||||
dustColor.A = 150;
|
||||
|
||||
for (int k = 0; k < 5; k++)
|
||||
Dust.NewDust(NPC.position, NPC.width, NPC.height, 4, hit.HitDirection, -1f, 0, dustColor, 1f);
|
||||
Dust.NewDust(NPC.position, NPC.width, NPC.height, DustID.TintableDust, hit.HitDirection, -1f, 0, dustColor, 1f);
|
||||
|
||||
if (NPC.life <= 0)
|
||||
{
|
||||
|
||||
@@ -254,7 +254,7 @@ namespace CalamityMod.NPCs.SunkenSea
|
||||
{
|
||||
for (int k = 0; k < 5; k++)
|
||||
{
|
||||
Dust.NewDust(NPC.position, NPC.width, NPC.height, 68, hit.HitDirection, -1f, 0, default, 1f);
|
||||
Dust.NewDust(NPC.position, NPC.width, NPC.height, DustID.BlueCrystalShard, hit.HitDirection, -1f, 0, default, 1f);
|
||||
}
|
||||
CalamityUtils.SpawnGores(NPC, "AlphaSeaMinnow", 2);
|
||||
}
|
||||
|
||||
@@ -150,7 +150,7 @@ namespace CalamityMod.NPCs.SunkenSea
|
||||
{
|
||||
if (Main.rand.NextBool())
|
||||
{
|
||||
Dust dust = Dust.NewDustDirect(NPC.position, NPC.width, NPC.height, 204, 0f, 0f, 150, default(Color), 0.3f);
|
||||
Dust dust = Dust.NewDustDirect(NPC.position, NPC.width, NPC.height, DustID.TreasureSparkle, 0f, 0f, 150, default(Color), 0.3f);
|
||||
dust.fadeIn = 0.75f;
|
||||
dust.velocity *= 0.1f;
|
||||
dust.noLight = true;
|
||||
|
||||
@@ -229,7 +229,7 @@ namespace CalamityMod.NPCs.SunkenSea
|
||||
// Also emit some particle effects as an indicator.
|
||||
if (InHidingSpot)
|
||||
{
|
||||
Dust sparkle = Dust.NewDustDirect(TileCoordsToHideIn.ToWorldCoordinates(0, 0), 16, 16, 261);
|
||||
Dust sparkle = Dust.NewDustDirect(TileCoordsToHideIn.ToWorldCoordinates(0, 0), 16, 16, DustID.AncientLight);
|
||||
sparkle.color = Color.Orange;
|
||||
sparkle.velocity = Main.rand.NextVector2Circular(4f, 4f);
|
||||
sparkle.noGravity = true;
|
||||
|
||||
@@ -361,7 +361,7 @@ namespace CalamityMod.NPCs.SunkenSea
|
||||
{
|
||||
Vector2 velOffset = RandomVelocity(50f, 20f, 70f, 0.04f);
|
||||
velOffset *= Main.rand.NextFloat(15, 20) * fade;
|
||||
Dust dust = Dust.NewDustPerfect(NPC.Center + velOffset * 2.5f, 267, -velOffset * Main.rand.NextFloat(0.08f, 0.12f) * 1.5f, 0, default, Main.rand.NextFloat(0.8f, 0.95f));
|
||||
Dust dust = Dust.NewDustPerfect(NPC.Center + velOffset * 2.5f, DustID.RainbowMk2, -velOffset * Main.rand.NextFloat(0.08f, 0.12f) * 1.5f, 0, default, Main.rand.NextFloat(0.8f, 0.95f));
|
||||
dust.noGravity = true;
|
||||
dust.color = Color.Aqua;
|
||||
}
|
||||
@@ -491,13 +491,13 @@ namespace CalamityMod.NPCs.SunkenSea
|
||||
{
|
||||
for (int i = 0; i < 10; i++)
|
||||
{
|
||||
Dust dust = Dust.NewDustPerfect(NPC.Center, 278, new Vector2(8, 8).RotatedByRandom(100) * Main.rand.NextFloat(0.2f, 1f), 0, default, Main.rand.NextFloat(0.9f, 1.1f));
|
||||
Dust dust = Dust.NewDustPerfect(NPC.Center, DustID.FireworksRGB, new Vector2(8, 8).RotatedByRandom(100) * Main.rand.NextFloat(0.2f, 1f), 0, default, Main.rand.NextFloat(0.9f, 1.1f));
|
||||
dust.noGravity = false;
|
||||
dust.color = Main.rand.NextBool() ? Color.OrangeRed : Color.Orange;
|
||||
}
|
||||
for (int i = 0; i < 18; i++)
|
||||
{
|
||||
Dust dust = Dust.NewDustPerfect(NPC.Center, 267, new Vector2(4, 4).RotatedByRandom(100) * Main.rand.NextFloat(0.2f, 1f), 0, default, Main.rand.NextFloat(0.9f, 1.1f));
|
||||
Dust dust = Dust.NewDustPerfect(NPC.Center, DustID.RainbowMk2, new Vector2(4, 4).RotatedByRandom(100) * Main.rand.NextFloat(0.2f, 1f), 0, default, Main.rand.NextFloat(0.9f, 1.1f));
|
||||
dust.noGravity = true;
|
||||
dust.color = Main.rand.NextBool() ? Color.OrangeRed : Color.Orange;
|
||||
}
|
||||
|
||||
@@ -523,7 +523,7 @@ namespace CalamityMod.NPCs.SupremeCalamitas
|
||||
if (NPC.dontTakeDamage && !hasDoneDeathAnim) // Dust visuals for shield when immune
|
||||
{
|
||||
Vector2 sustVel = new Vector2(-78 * Main.rand.NextFloat(0.95f, 1.05f), 0).RotatedBy(rotateToPlayer + MathHelper.PiOver2).RotatedByRandom(1.4);
|
||||
Dust sust = Dust.NewDustPerfect(NPC.Center + sustVel, 269, sustVel * Main.rand.NextFloat(0.001f, 0.03f));
|
||||
Dust sust = Dust.NewDustPerfect(NPC.Center + sustVel, DustID.Sandnado, sustVel * Main.rand.NextFloat(0.001f, 0.03f));
|
||||
sust.noGravity = true;
|
||||
sust.scale = Main.rand.NextFloat(0.5f, 0.9f);
|
||||
sust.alpha = 200;
|
||||
@@ -565,7 +565,7 @@ namespace CalamityMod.NPCs.SupremeCalamitas
|
||||
// Emit dust off the skull at the position of its eye socket.
|
||||
for (float num6 = 1f; num6 < 16f; num6 += 1f)
|
||||
{
|
||||
Dust dust = Dust.NewDustPerfect(NPC.Center, 182);
|
||||
Dust dust = Dust.NewDustPerfect(NPC.Center, DustID.TheDestroyer);
|
||||
dust.position = Vector2.Lerp(NPC.position, NPC.oldPosition, num6 / 16f) + NPC.Size * 0.5f;
|
||||
dust.position += shieldRotation.ToRotationVector2() * 42f;
|
||||
dust.position += (shieldRotation - MathHelper.PiOver2).ToRotationVector2() * (float)Math.Cos(NPC.velocity.ToRotation()) * -4f;
|
||||
@@ -1299,7 +1299,7 @@ namespace CalamityMod.NPCs.SupremeCalamitas
|
||||
fust.scale = Main.rand.NextFloat(0.3f, 0.8f);
|
||||
if (Main.rand.NextBool())
|
||||
{
|
||||
Dust sust = Dust.NewDustPerfect(NPC.Center + velOffset, 269, velOffset * Main.rand.NextFloat(0.01f, 0.1f));
|
||||
Dust sust = Dust.NewDustPerfect(NPC.Center + velOffset, DustID.Sandnado, velOffset * Main.rand.NextFloat(0.01f, 0.1f));
|
||||
sust.noGravity = true;
|
||||
sust.scale = Main.rand.NextFloat(0.2f, 0.6f);
|
||||
sust.alpha = 200;
|
||||
@@ -3192,7 +3192,7 @@ namespace CalamityMod.NPCs.SupremeCalamitas
|
||||
SparkParticle spark5 = new SparkParticle(NPC.Center - offset - NPC.velocity.SafeNormalize(Vector2.UnitY) * 15f, -NPC.velocity * 0.85f, false, 10, 1.9f * MathHelper.Clamp(Utils.GetLerpValue(120, 0, dashVisualCounter), 0.5f, 1.1f), Main.rand.NextBool() ? Color.Red : Color.Lerp(Color.Red, Color.Magenta, 0.5f));
|
||||
GeneralParticleHandler.SpawnParticle(spark5);
|
||||
|
||||
Dust dashDust = Dust.NewDustPerfect(NPC.Center + Main.rand.NextVector2Circular(NPC.width, NPC.height), 182);
|
||||
Dust dashDust = Dust.NewDustPerfect(NPC.Center + Main.rand.NextVector2Circular(NPC.width, NPC.height), DustID.TheDestroyer);
|
||||
dashDust.noGravity = true;
|
||||
dashDust.velocity = -NPC.velocity.RotatedByRandom(0.15f) * Main.rand.NextFloat(0.9f, 1.2f);
|
||||
dashDust.scale = Main.rand.NextFloat(0.6f, 1.4f);
|
||||
@@ -3229,7 +3229,7 @@ namespace CalamityMod.NPCs.SupremeCalamitas
|
||||
{
|
||||
Vector2 leftDustPosition = Vector2.CatmullRom(armPosition + Vector2.UnitY * 1000f, armPosition, heartSpawnPosition, heartSpawnPosition + Vector2.UnitY * 1000f, castCompletion);
|
||||
|
||||
Dust castMagicDust = Dust.NewDustPerfect(leftDustPosition, 267);
|
||||
Dust castMagicDust = Dust.NewDustPerfect(leftDustPosition, DustID.RainbowMk2);
|
||||
castMagicDust.scale = 1.67f;
|
||||
castMagicDust.velocity = Main.rand.NextVector2CircularEdge(0.2f, 0.2f);
|
||||
castMagicDust.fadeIn = 0.67f;
|
||||
@@ -3386,12 +3386,12 @@ namespace CalamityMod.NPCs.SupremeCalamitas
|
||||
SparkParticle spark2 = new SparkParticle(cataclysmSpawnPosition, new Vector2(5, 5).RotatedByRandom(100) * Main.rand.NextFloat(0.5f, 1.5f), false, 35, Main.rand.NextFloat(1.2f, 1.45f), Main.rand.NextBool() ? new Color(80, 21, 77) : Color.Red);
|
||||
GeneralParticleHandler.SpawnParticle(spark2);
|
||||
|
||||
Dust catastrophedust = Dust.NewDustPerfect(catastropheSpawnPosition, 279, new Vector2(9, 9).RotatedByRandom(100) * Main.rand.NextFloat(0.1f, 1.5f));
|
||||
Dust catastrophedust = Dust.NewDustPerfect(catastropheSpawnPosition, DustID.SilverFlame, new Vector2(9, 9).RotatedByRandom(100) * Main.rand.NextFloat(0.1f, 1.5f));
|
||||
catastrophedust.noGravity = true;
|
||||
catastrophedust.scale = Main.rand.NextFloat(1.5f, 1.85f);
|
||||
catastrophedust.color = Color.DeepSkyBlue;
|
||||
|
||||
Dust cataclysmdust = Dust.NewDustPerfect(cataclysmSpawnPosition, 279, new Vector2(9, 9).RotatedByRandom(100) * Main.rand.NextFloat(0.1f, 1.5f));
|
||||
Dust cataclysmdust = Dust.NewDustPerfect(cataclysmSpawnPosition, DustID.SilverFlame, new Vector2(9, 9).RotatedByRandom(100) * Main.rand.NextFloat(0.1f, 1.5f));
|
||||
cataclysmdust.noGravity = true;
|
||||
cataclysmdust.scale = Main.rand.NextFloat(1.5f, 1.85f);
|
||||
cataclysmdust.color = new Color(80, 21, 77);
|
||||
|
||||
@@ -264,7 +264,7 @@ namespace CalamityMod.NPCs.SupremeCalamitas
|
||||
{
|
||||
for (int i = 0; i < 6; i++)
|
||||
{
|
||||
Dust cataclysmdust = Dust.NewDustPerfect(NPC.Center + Main.rand.NextVector2Circular(NPC.width, NPC.height) - NPC.velocity * 0.5f, 66, -NPC.velocity * Main.rand.NextFloat(0.1f, 0.6f));
|
||||
Dust cataclysmdust = Dust.NewDustPerfect(NPC.Center + Main.rand.NextVector2Circular(NPC.width, NPC.height) - NPC.velocity * 0.5f, DustID.RainbowTorch, -NPC.velocity * Main.rand.NextFloat(0.1f, 0.6f));
|
||||
cataclysmdust.noGravity = true;
|
||||
cataclysmdust.scale = Main.rand.NextFloat(0.7f, 1.3f);
|
||||
cataclysmdust.color = Color.Lerp(Color.Red, Color.Magenta, 0.5f);
|
||||
@@ -375,7 +375,7 @@ namespace CalamityMod.NPCs.SupremeCalamitas
|
||||
for (int i = 0; i < 7; i++)
|
||||
{
|
||||
Vector2 vel = new Vector2(14, 14).RotatedByRandom(100) * Main.rand.NextFloat(0.1f, 2.5f);
|
||||
Dust cataclysmdust = Dust.NewDustPerfect(NPC.Center + vel * 2, 279, vel);
|
||||
Dust cataclysmdust = Dust.NewDustPerfect(NPC.Center + vel * 2, DustID.SilverFlame, vel);
|
||||
cataclysmdust.noGravity = true;
|
||||
cataclysmdust.scale = Main.rand.NextFloat(1.2f, 1.8f);
|
||||
cataclysmdust.color = Color.Red;
|
||||
@@ -552,7 +552,7 @@ namespace CalamityMod.NPCs.SupremeCalamitas
|
||||
for (int i = 0; i < 45; i++)
|
||||
{
|
||||
Vector2 vel = new Vector2(14, 14).RotatedByRandom(100) * Main.rand.NextFloat(0.1f, 2.5f);
|
||||
Dust catastrophedust = Dust.NewDustPerfect(NPC.Center + vel * 2, 279, vel);
|
||||
Dust catastrophedust = Dust.NewDustPerfect(NPC.Center + vel * 2, DustID.SilverFlame, vel);
|
||||
catastrophedust.noGravity = true;
|
||||
catastrophedust.scale = Main.rand.NextFloat(1.2f, 1.8f);
|
||||
catastrophedust.color = Color.DeepSkyBlue;
|
||||
|
||||
@@ -258,7 +258,7 @@ namespace CalamityMod.NPCs.SupremeCalamitas
|
||||
{
|
||||
for (int i = 0; i < 6; i++)
|
||||
{
|
||||
Dust catastrophedust = Dust.NewDustPerfect(NPC.Center + Main.rand.NextVector2Circular(NPC.width, NPC.height) - NPC.velocity * 0.5f, 66, -NPC.velocity * Main.rand.NextFloat(0.1f, 0.6f));
|
||||
Dust catastrophedust = Dust.NewDustPerfect(NPC.Center + Main.rand.NextVector2Circular(NPC.width, NPC.height) - NPC.velocity * 0.5f, DustID.RainbowTorch, -NPC.velocity * Main.rand.NextFloat(0.1f, 0.6f));
|
||||
catastrophedust.noGravity = true;
|
||||
catastrophedust.scale = Main.rand.NextFloat(0.7f, 1.3f);
|
||||
catastrophedust.color = Color.Cyan;
|
||||
@@ -286,7 +286,7 @@ namespace CalamityMod.NPCs.SupremeCalamitas
|
||||
for (int i = 0; i < 30; i++)
|
||||
{
|
||||
Vector2 vel = new Vector2(7, 7).RotatedByRandom(100) * Main.rand.NextFloat(0.1f, 2.5f);
|
||||
Dust catastrophedust = Dust.NewDustPerfect(NPC.Center + vel * 2, 279, vel);
|
||||
Dust catastrophedust = Dust.NewDustPerfect(NPC.Center + vel * 2, DustID.SilverFlame, vel);
|
||||
catastrophedust.noGravity = true;
|
||||
catastrophedust.scale = Main.rand.NextFloat(1.2f, 1.8f);
|
||||
catastrophedust.color = Color.DeepSkyBlue;
|
||||
@@ -308,7 +308,7 @@ namespace CalamityMod.NPCs.SupremeCalamitas
|
||||
for (int i = 0; i < 30; i++)
|
||||
{
|
||||
Vector2 vel = new Vector2(7, 7).RotatedByRandom(100) * Main.rand.NextFloat(0.1f, 2.5f);
|
||||
Dust catastrophedust = Dust.NewDustPerfect(NPC.Center + vel * 2, 279, vel);
|
||||
Dust catastrophedust = Dust.NewDustPerfect(NPC.Center + vel * 2, DustID.SilverFlame, vel);
|
||||
catastrophedust.noGravity = true;
|
||||
catastrophedust.scale = Main.rand.NextFloat(1.2f, 1.8f);
|
||||
catastrophedust.color = Color.DeepSkyBlue;
|
||||
@@ -420,7 +420,7 @@ namespace CalamityMod.NPCs.SupremeCalamitas
|
||||
for (int i = 0; i < 7; i++)
|
||||
{
|
||||
Vector2 vel = new Vector2(14, 14).RotatedByRandom(100) * Main.rand.NextFloat(0.1f, 2.5f);
|
||||
Dust catastrophedust = Dust.NewDustPerfect(NPC.Center + vel * 2, 279, vel);
|
||||
Dust catastrophedust = Dust.NewDustPerfect(NPC.Center + vel * 2, DustID.SilverFlame, vel);
|
||||
catastrophedust.noGravity = true;
|
||||
catastrophedust.scale = Main.rand.NextFloat(1.2f, 1.8f);
|
||||
catastrophedust.color = Color.DeepSkyBlue;
|
||||
@@ -588,7 +588,7 @@ namespace CalamityMod.NPCs.SupremeCalamitas
|
||||
for (int i = 0; i < 45; i++)
|
||||
{
|
||||
Vector2 vel = new Vector2(14, 14).RotatedByRandom(100) * Main.rand.NextFloat(0.1f, 2.5f);
|
||||
Dust cataclysmdust = Dust.NewDustPerfect(NPC.Center + vel * 2, 279, vel);
|
||||
Dust cataclysmdust = Dust.NewDustPerfect(NPC.Center + vel * 2, DustID.SilverFlame, vel);
|
||||
cataclysmdust.noGravity = true;
|
||||
cataclysmdust.scale = Main.rand.NextFloat(1.2f, 1.8f);
|
||||
cataclysmdust.color = Color.Red;
|
||||
|
||||
@@ -634,7 +634,7 @@ namespace CalamityMod.NPCs.VanillaNPCAIOverrides.Bosses
|
||||
Vector2 largeRandDustRadius = Main.rand.NextVector2Circular(80f, 80f);
|
||||
Vector2 largeRandDustRecoil = largeRandDustRadius * -1f * 0.05f;
|
||||
Vector2 smallRandDustRadius = Main.rand.NextVector2Circular(20f, 20f);
|
||||
Dust dust = Dust.NewDustPerfect(NPC.Center + largeRandDustRecoil + largeRandDustRadius + smallRandDustRadius, 228, largeRandDustRecoil);
|
||||
Dust dust = Dust.NewDustPerfect(NPC.Center + largeRandDustRecoil + largeRandDustRadius + smallRandDustRadius, DustID.GoldFlame, largeRandDustRecoil);
|
||||
dust.fadeIn = 1.5f;
|
||||
dust.scale = 0.5f;
|
||||
if (Main.getGoodWorld)
|
||||
@@ -702,7 +702,7 @@ namespace CalamityMod.NPCs.VanillaNPCAIOverrides.Bosses
|
||||
{
|
||||
Vector2 halfVelocityDust = NPC.velocity * 0.5f;
|
||||
Vector2 randDustRadius = Main.rand.NextVector2Circular(20f, 20f);
|
||||
Dust.NewDustPerfect(NPC.Center + halfVelocityDust + randDustRadius, 306, halfVelocityDust, 0, Main.OurFavoriteColor).scale = 2f;
|
||||
Dust.NewDustPerfect(NPC.Center + halfVelocityDust + randDustRadius, DustID.SparkForLightDisc, halfVelocityDust, 0, Main.OurFavoriteColor).scale = 2f;
|
||||
}
|
||||
|
||||
if (Math.Abs(NPC.velocity.X) > Math.Abs(NPC.velocity.Y))
|
||||
@@ -1360,11 +1360,11 @@ namespace CalamityMod.NPCs.VanillaNPCAIOverrides.Bosses
|
||||
NPC.position += NPC.netOffset;
|
||||
int randDustOffset = Main.rand.Next(2) * 2 - 1;
|
||||
Vector2 randDustPos = NPC.Bottom + new Vector2((float)(randDustOffset * 22) * NPC.scale, -22f * NPC.scale);
|
||||
Dust getGoodDust = Dust.NewDustPerfect(randDustPos, 228, (MathHelper.PiOver2 + -MathHelper.PiOver2 * (float)randDustOffset + Main.rand.NextFloatDirection() * MathHelper.PiOver4).ToRotationVector2() * (2f + Main.rand.NextFloat()));
|
||||
Dust getGoodDust = Dust.NewDustPerfect(randDustPos, DustID.GoldFlame, (MathHelper.PiOver2 + -MathHelper.PiOver2 * (float)randDustOffset + Main.rand.NextFloatDirection() * MathHelper.PiOver4).ToRotationVector2() * (2f + Main.rand.NextFloat()));
|
||||
Dust dust = getGoodDust;
|
||||
dust.velocity += NPC.velocity;
|
||||
getGoodDust.noGravity = true;
|
||||
getGoodDust = Dust.NewDustPerfect(NPC.Bottom + new Vector2(Main.rand.NextFloatDirection() * 6f * NPC.scale, (Main.rand.NextFloat() * -4f - 8f) * NPC.scale), 228, Vector2.UnitY * (2f + Main.rand.NextFloat()));
|
||||
getGoodDust = Dust.NewDustPerfect(NPC.Bottom + new Vector2(Main.rand.NextFloatDirection() * 6f * NPC.scale, (Main.rand.NextFloat() * -4f - 8f) * NPC.scale), DustID.GoldFlame, Vector2.UnitY * (2f + Main.rand.NextFloat()));
|
||||
getGoodDust.fadeIn = 0f;
|
||||
getGoodDust.scale = 0.7f + Main.rand.NextFloat() * 0.5f;
|
||||
getGoodDust.noGravity = true;
|
||||
|
||||
@@ -1041,7 +1041,7 @@ namespace CalamityMod.NPCs.VanillaNPCAIOverrides.Bosses
|
||||
|
||||
try
|
||||
{
|
||||
if (WorldGen.SolidTile(hookTileX, hookTileY) || (Main.tile[hookTileX, hookTileY].WallType > 0 && (hookMoveTries > 500 || lifeRatio < 0.5f)))
|
||||
if (WorldGen.SolidTile(hookTileX, hookTileY) || (Main.tile[hookTileX, hookTileY].WallType > WallID.None && (hookMoveTries > 500 || lifeRatio < 0.5f)))
|
||||
{
|
||||
hookCanMove = true;
|
||||
NPC.ai[0] = hookTileX;
|
||||
|
||||
@@ -428,7 +428,7 @@ namespace CalamityMod.NPCs.VanillaNPCAIOverrides.MiniBosses
|
||||
|
||||
attackTimer++;
|
||||
if (attackTimer == eggLayTime)
|
||||
NPC.NewNPC(NPC.GetSource_FromAI(), (int)spotToLayEgg.X, (int)spotToLayEgg.Y + 20, 478, NPC.whoAmI, 0f, 0f, 0f, 0f, 255);
|
||||
NPC.NewNPC(NPC.GetSource_FromAI(), (int)spotToLayEgg.X, (int)spotToLayEgg.Y + 20, NPCID.MothronEgg, NPC.whoAmI, 0f, 0f, 0f, 0f, 255);
|
||||
else if (attackTimer == eggLayTime + waitTime)
|
||||
{
|
||||
aiState = (int)MothronAIState.NewAISelection;
|
||||
|
||||
@@ -166,7 +166,7 @@ namespace CalamityMod.NPCs.VanillaNPCAIOverrides.MiniBosses
|
||||
{
|
||||
NPC.spriteDirection = -(int)NPC.ai[0];
|
||||
|
||||
if (!Main.npc[(int)NPC.ai[1]].active || Main.npc[(int)NPC.ai[1]].aiStyle != 58)
|
||||
if (!Main.npc[(int)NPC.ai[1]].active || Main.npc[(int)NPC.ai[1]].aiStyle != NPCAIStyleID.Pumpking)
|
||||
{
|
||||
NPC.ai[2] += 10f;
|
||||
if (NPC.ai[2] > 50f || !Main.dedServ)
|
||||
|
||||
@@ -237,7 +237,7 @@ public static partial class RevengeanceAndDeathAI
|
||||
// Emit feather dust from center when about to shoot
|
||||
if (NPC.ai[0] > HarpyFeatherGateValue - HarpyFeatherTelegraphTime)
|
||||
{
|
||||
Dust dust = Dust.NewDustDirect(NPC.Center + Main.rand.NextVector2CircularEdge(5f, 5f), 1, 1, 172, 0f, 0f, 0, default, 1.5f);
|
||||
Dust dust = Dust.NewDustDirect(NPC.Center + Main.rand.NextVector2CircularEdge(5f, 5f), 1, 1, DustID.DungeonWater, 0f, 0f, 0, default, 1.5f);
|
||||
dust.noGravity = true;
|
||||
dust.velocity *= 0f;
|
||||
}
|
||||
@@ -247,7 +247,7 @@ public static partial class RevengeanceAndDeathAI
|
||||
// Emit shadowflame dust from center when about to shoot
|
||||
if (NPC.ai[0] > DemonScytheGateValue - DemonScytheTelegraphTime)
|
||||
{
|
||||
Dust dust = Dust.NewDustDirect(NPC.position, NPC.width, NPC.height, 27, 0f, 0f, 100, default, 3f);
|
||||
Dust dust = Dust.NewDustDirect(NPC.position, NPC.width, NPC.height, DustID.Shadowflame, 0f, 0f, 100, default, 3f);
|
||||
dust.noGravity = true;
|
||||
dust.velocity *= 0f;
|
||||
}
|
||||
@@ -257,7 +257,7 @@ public static partial class RevengeanceAndDeathAI
|
||||
// Emit shadowflame dust from center when about to shoot
|
||||
if (NPC.ai[0] > RedDevilTridentGateValue - RedDevilTridentTelegraphTime)
|
||||
{
|
||||
Dust dust = Dust.NewDustDirect(NPC.position, NPC.width, NPC.height, 27, 0f, 0f, 100, default, 3f);
|
||||
Dust dust = Dust.NewDustDirect(NPC.position, NPC.width, NPC.height, DustID.Shadowflame, 0f, 0f, 100, default, 3f);
|
||||
dust.noGravity = true;
|
||||
dust.velocity *= 0f;
|
||||
}
|
||||
|
||||
@@ -173,7 +173,7 @@ public static partial class RevengeanceAndDeathAI
|
||||
{
|
||||
for (int y = tileCoordsY - 1; y <= tileCoordsY + 1; y++)
|
||||
{
|
||||
if (Main.tile[x, y].WallType > 0)
|
||||
if (Main.tile[x, y].WallType > WallID.None)
|
||||
{
|
||||
climbWalls = true;
|
||||
}
|
||||
@@ -219,7 +219,7 @@ public static partial class RevengeanceAndDeathAI
|
||||
int npcType = NPC.type;
|
||||
if (NPC.ModNPC != null)
|
||||
{
|
||||
if (NPC.ModNPC.AIType != 0)
|
||||
if (NPC.ModNPC.AIType != NPCID.None)
|
||||
npcType = NPC.ModNPC.AIType;
|
||||
}
|
||||
|
||||
@@ -1204,7 +1204,7 @@ PrepareToShoot:
|
||||
{
|
||||
for (int y = centerTileY - 1; y <= centerTileY + 1; y++)
|
||||
{
|
||||
if (Main.tile[x, y] != null && Main.tile[x, y].WallType > 0)
|
||||
if (Main.tile[x, y] != null && Main.tile[x, y].WallType > WallID.None)
|
||||
{
|
||||
spiderAI = true;
|
||||
break;
|
||||
@@ -2390,7 +2390,7 @@ PrepareToShoot:
|
||||
// Emit demon dust from eye when about to fire
|
||||
if (NPC.ai[2] > (CalamityWorld.death ? EyezorLaserGateValue_Death : CalamityWorld.revenge ? EyezorLaserGateValue_Rev : EyezorLaserGateValue) - EyezorLaserTelegraphTime)
|
||||
{
|
||||
Dust dust = Dust.NewDustDirect(eyeLocation, 1, 1, 27, 0f, 0f, 100, default, 1.5f);
|
||||
Dust dust = Dust.NewDustDirect(eyeLocation, 1, 1, DustID.Shadowflame, 0f, 0f, 100, default, 1.5f);
|
||||
dust.noGravity = true;
|
||||
dust.velocity *= 0f;
|
||||
}
|
||||
|
||||
@@ -650,7 +650,7 @@ public static partial class RevengeanceAndDeathAI
|
||||
if (NPC.localAI[0] > CorruptorVileSpitGateValue - CorruptorVileSpitTelegraphTime)
|
||||
{
|
||||
Vector2 dustCenter = NPC.Center + NPC.SafeDirectionTo(Main.player[NPC.target].Center, -Vector2.UnitY) * 25f + Main.rand.NextVector2CircularEdge(3f, 3f);
|
||||
Dust dust = Dust.NewDustDirect(dustCenter, 1, 1, 18, NPC.velocity.X * 0.1f, NPC.velocity.Y * 0.1f, 80, default, 1.3f);
|
||||
Dust dust = Dust.NewDustDirect(dustCenter, 1, 1, DustID.CorruptGibs, NPC.velocity.X * 0.1f, NPC.velocity.Y * 0.1f, 80, default, 1.3f);
|
||||
dust.noGravity = true;
|
||||
dust.velocity *= 0.3f;
|
||||
}
|
||||
|
||||
@@ -228,7 +228,7 @@ public static partial class RevengeanceAndDeathAI
|
||||
{
|
||||
for (int j = npcY - 1; j <= npcY + 1; j++)
|
||||
{
|
||||
if (Main.tile[i, j].WallType > 0)
|
||||
if (Main.tile[i, j].WallType > WallID.None)
|
||||
{
|
||||
climbingWall = true;
|
||||
}
|
||||
|
||||
@@ -33,7 +33,7 @@ public static partial class RevengeanceAndDeathAI
|
||||
int turtleTileX = (int)((position.X + (float)(NPC.width / 2) + (float)((NPC.width / 2 + 1) * turtleFaceDirection)) / 16f);
|
||||
int turtleTileY = (int)((position.Y + (float)NPC.height - 1f) / 16f);
|
||||
|
||||
if ((float)(turtleTileX * 16) < position.X + (float)NPC.width && (float)(turtleTileX * 16 + 16) > position.X && ((Main.tile[turtleTileX, turtleTileY].HasUnactuatedTile && !Main.tile[turtleTileX, turtleTileY].TopSlope && !Main.tile[turtleTileX, turtleTileY - 1].TopSlope && ((Main.tileSolid[(int)Main.tile[turtleTileX, turtleTileY].TileType] && !Main.tileSolidTop[(int)Main.tile[turtleTileX, turtleTileY].TileType]) || (Main.tileSolidTop[(int)Main.tile[turtleTileX, turtleTileY].TileType] && (!Main.tileSolid[(int)Main.tile[turtleTileX, turtleTileY - 1].TileType] || !Main.tile[turtleTileX, turtleTileY - 1].HasUnactuatedTile) && Main.tile[turtleTileX, turtleTileY].TileType != 16 && Main.tile[turtleTileX, turtleTileY].TileType != 18 && Main.tile[turtleTileX, turtleTileY].TileType != 134))) || (Main.tile[turtleTileX, turtleTileY - 1].IsHalfBlock && Main.tile[turtleTileX, turtleTileY - 1].HasUnactuatedTile)) && (!Main.tile[turtleTileX, turtleTileY - 1].HasUnactuatedTile || !Main.tileSolid[(int)Main.tile[turtleTileX, turtleTileY - 1].TileType] || Main.tileSolidTop[(int)Main.tile[turtleTileX, turtleTileY - 1].TileType] || (Main.tile[turtleTileX, turtleTileY - 1].IsHalfBlock && (!Main.tile[turtleTileX, turtleTileY - 4].HasUnactuatedTile || !Main.tileSolid[(int)Main.tile[turtleTileX, turtleTileY - 4].TileType] || Main.tileSolidTop[(int)Main.tile[turtleTileX, turtleTileY - 4].TileType]))) && (!Main.tile[turtleTileX, turtleTileY - 2].HasUnactuatedTile || !Main.tileSolid[(int)Main.tile[turtleTileX, turtleTileY - 2].TileType] || Main.tileSolidTop[(int)Main.tile[turtleTileX, turtleTileY - 2].TileType]) && (!Main.tile[turtleTileX, turtleTileY - 3].HasUnactuatedTile || !Main.tileSolid[(int)Main.tile[turtleTileX, turtleTileY - 3].TileType] || Main.tileSolidTop[(int)Main.tile[turtleTileX, turtleTileY - 3].TileType]) && (!Main.tile[turtleTileX - turtleFaceDirection, turtleTileY - 3].HasUnactuatedTile || !Main.tileSolid[(int)Main.tile[turtleTileX - turtleFaceDirection, turtleTileY - 3].TileType] || Main.tileSolidTop[(int)Main.tile[turtleTileX - turtleFaceDirection, turtleTileY - 3].TileType]))
|
||||
if ((float)(turtleTileX * 16) < position.X + (float)NPC.width && (float)(turtleTileX * 16 + 16) > position.X && ((Main.tile[turtleTileX, turtleTileY].HasUnactuatedTile && !Main.tile[turtleTileX, turtleTileY].TopSlope && !Main.tile[turtleTileX, turtleTileY - 1].TopSlope && ((Main.tileSolid[(int)Main.tile[turtleTileX, turtleTileY].TileType] && !Main.tileSolidTop[(int)Main.tile[turtleTileX, turtleTileY].TileType]) || (Main.tileSolidTop[(int)Main.tile[turtleTileX, turtleTileY].TileType] && (!Main.tileSolid[(int)Main.tile[turtleTileX, turtleTileY - 1].TileType] || !Main.tile[turtleTileX, turtleTileY - 1].HasUnactuatedTile) && Main.tile[turtleTileX, turtleTileY].TileType != TileID.Anvils && Main.tile[turtleTileX, turtleTileY].TileType != TileID.WorkBenches && Main.tile[turtleTileX, turtleTileY].TileType != TileID.MythrilAnvil))) || (Main.tile[turtleTileX, turtleTileY - 1].IsHalfBlock && Main.tile[turtleTileX, turtleTileY - 1].HasUnactuatedTile)) && (!Main.tile[turtleTileX, turtleTileY - 1].HasUnactuatedTile || !Main.tileSolid[(int)Main.tile[turtleTileX, turtleTileY - 1].TileType] || Main.tileSolidTop[(int)Main.tile[turtleTileX, turtleTileY - 1].TileType] || (Main.tile[turtleTileX, turtleTileY - 1].IsHalfBlock && (!Main.tile[turtleTileX, turtleTileY - 4].HasUnactuatedTile || !Main.tileSolid[(int)Main.tile[turtleTileX, turtleTileY - 4].TileType] || Main.tileSolidTop[(int)Main.tile[turtleTileX, turtleTileY - 4].TileType]))) && (!Main.tile[turtleTileX, turtleTileY - 2].HasUnactuatedTile || !Main.tileSolid[(int)Main.tile[turtleTileX, turtleTileY - 2].TileType] || Main.tileSolidTop[(int)Main.tile[turtleTileX, turtleTileY - 2].TileType]) && (!Main.tile[turtleTileX, turtleTileY - 3].HasUnactuatedTile || !Main.tileSolid[(int)Main.tile[turtleTileX, turtleTileY - 3].TileType] || Main.tileSolidTop[(int)Main.tile[turtleTileX, turtleTileY - 3].TileType]) && (!Main.tile[turtleTileX - turtleFaceDirection, turtleTileY - 3].HasUnactuatedTile || !Main.tileSolid[(int)Main.tile[turtleTileX - turtleFaceDirection, turtleTileY - 3].TileType] || Main.tileSolidTop[(int)Main.tile[turtleTileX - turtleFaceDirection, turtleTileY - 3].TileType]))
|
||||
{
|
||||
float tilePixelPosition = (float)(turtleTileY * 16);
|
||||
if (Main.tile[turtleTileX, turtleTileY].IsHalfBlock)
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
using System;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Particles
|
||||
@@ -56,7 +57,7 @@ namespace CalamityMod.Particles
|
||||
if (Main.rand.NextBool(7))
|
||||
{
|
||||
float velocityMultiplier = MathHelper.Lerp(0.05f, 1f, MathHelper.Clamp((distanceToOwner - 10f) / 40f, 0f, 1f));
|
||||
Dust chust = Dust.NewDustPerfect(Position, 15, Velocity * Main.rand.NextFloat(0.7f, 1.2f) * velocityMultiplier, Alpha: 100, Scale: Main.rand.NextFloat(1.2f, 1.8f));
|
||||
Dust chust = Dust.NewDustPerfect(Position, DustID.MagicMirror, Velocity * Main.rand.NextFloat(0.7f, 1.2f) * velocityMultiplier, Alpha: 100, Scale: Main.rand.NextFloat(1.2f, 1.8f));
|
||||
chust.noGravity = true;
|
||||
chust.noLight = true;
|
||||
}
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Particles
|
||||
@@ -73,7 +74,7 @@ namespace CalamityMod.Particles
|
||||
{
|
||||
Vector2 dustPosition = Position + Main.rand.NextVector2Circular(8f, 8f);
|
||||
|
||||
Dust dust = Dust.NewDustPerfect(dustPosition, 6, Vector2.UnitY.RotatedByRandom(MathHelper.PiOver2) * Main.rand.NextFloat(-1f, -5f), 0, Color.White, 1.2f);
|
||||
Dust dust = Dust.NewDustPerfect(dustPosition, DustID.Torch, Vector2.UnitY.RotatedByRandom(MathHelper.PiOver2) * Main.rand.NextFloat(-1f, -5f), 0, Color.White, 1.2f);
|
||||
dust.noGravity = true;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -93,7 +93,7 @@ namespace CalamityMod.Projectiles.Boss
|
||||
float scale = Main.rand.NextFloat(0.5f, 1.6f);
|
||||
|
||||
// Spawn dust
|
||||
Dust dust = Dust.NewDustPerfect(Projectile.Center, 107, -dustVel, 0, default, scale);
|
||||
Dust dust = Dust.NewDustPerfect(Projectile.Center, DustID.Terra, -dustVel, 0, default, scale);
|
||||
dust.noGravity = true;
|
||||
}
|
||||
|
||||
|
||||
@@ -38,7 +38,7 @@ namespace CalamityMod.Projectiles.Boss
|
||||
{
|
||||
Vector2 cinderPos = Projectile.Center + Main.rand.NextVector2Circular(60f, 60f) * Utils.Remap(Time, 0f, Lifetime, 0.5f, 1f);
|
||||
float cinderSize = Utils.GetLerpValue(6f, 12f, Time, true);
|
||||
Dust cinder = Dust.NewDustDirect(cinderPos, 4, 4, 75, Projectile.velocity.X * 0.25f, Projectile.velocity.Y * 0.25f);
|
||||
Dust cinder = Dust.NewDustDirect(cinderPos, 4, 4, DustID.CursedTorch, Projectile.velocity.X * 0.25f, Projectile.velocity.Y * 0.25f);
|
||||
if (Main.rand.NextBool(3))
|
||||
{
|
||||
cinder.scale *= 2f;
|
||||
|
||||
@@ -88,14 +88,14 @@ namespace CalamityMod.Projectiles.Boss
|
||||
{
|
||||
for (int i = 0; i < 20; i++)
|
||||
{
|
||||
Dust dust = Dust.NewDustPerfect(Projectile.Center + Vector2.UnitY * offset.Y, 261);
|
||||
Dust dust = Dust.NewDustPerfect(Projectile.Center + Vector2.UnitY * offset.Y, DustID.AncientLight);
|
||||
dust.color = Utils.SelectRandom(Main.rand, Color.Cyan, Color.OrangeRed);
|
||||
dust.scale = 1.15f;
|
||||
dust.velocity = Main.rand.NextVector2CircularEdge(3f, 3f) * Main.rand.NextFloat(0.7f, 1.4f);
|
||||
dust.noGravity = true;
|
||||
|
||||
float angle = MathHelper.TwoPi * i / 20f;
|
||||
dust = Dust.NewDustPerfect(Projectile.Center + Vector2.UnitY * offset.Y, 261);
|
||||
dust = Dust.NewDustPerfect(Projectile.Center + Vector2.UnitY * offset.Y, DustID.AncientLight);
|
||||
dust.color = Utils.SelectRandom(Main.rand, Color.Cyan, Color.OrangeRed);
|
||||
dust.scale = 1.15f;
|
||||
dust.velocity = angle.ToRotationVector2() * 7f;
|
||||
@@ -157,13 +157,13 @@ namespace CalamityMod.Projectiles.Boss
|
||||
// Generate dust at the star position. This gives them a trail effect.
|
||||
if (!Main.dedServ)
|
||||
{
|
||||
Dust dust2 = Dust.NewDustPerfect(Projectile.Center + offset, 261);
|
||||
Dust dust2 = Dust.NewDustPerfect(Projectile.Center + offset, DustID.AncientLight);
|
||||
dust2.color = Color.Cyan;
|
||||
dust2.scale = 1.15f;
|
||||
dust2.velocity = Vector2.Zero;
|
||||
dust2.noGravity = true;
|
||||
|
||||
dust2 = Dust.NewDustPerfect(Projectile.Center + offset * new Vector2(-1f, 1f), 261);
|
||||
dust2 = Dust.NewDustPerfect(Projectile.Center + offset * new Vector2(-1f, 1f), DustID.AncientLight);
|
||||
dust2.color = Color.OrangeRed;
|
||||
dust2.scale = 1.15f;
|
||||
dust2.velocity = Vector2.Zero;
|
||||
|
||||
@@ -44,7 +44,7 @@ namespace CalamityMod.Projectiles.Boss
|
||||
SoundEngine.PlaySound(TeslaCannon.FireSound, Projectile.Center);
|
||||
for (int i = 0; i < 36; i++)
|
||||
{
|
||||
Dust exoDust = Dust.NewDustPerfect(Projectile.BottomRight, 267);
|
||||
Dust exoDust = Dust.NewDustPerfect(Projectile.BottomRight, DustID.RainbowMk2);
|
||||
exoDust.color = CalamityUtils.MulticolorLerp(i / 36f, CalamityUtils.ExoPalette);
|
||||
exoDust.velocity = (MathHelper.TwoPi * i / 36f).ToRotationVector2() * new Vector2(3f, 1.45f) - Vector2.UnitY * 2f;
|
||||
exoDust.scale = 2.8f;
|
||||
@@ -54,7 +54,7 @@ namespace CalamityMod.Projectiles.Boss
|
||||
|
||||
for (int i = 0; i < 10; i++)
|
||||
{
|
||||
Dust exoDust = Dust.NewDustPerfect(Projectile.BottomRight, 267);
|
||||
Dust exoDust = Dust.NewDustPerfect(Projectile.BottomRight, DustID.RainbowMk2);
|
||||
exoDust.color = CalamityUtils.MulticolorLerp(Main.rand.NextFloat(), CalamityUtils.ExoPalette);
|
||||
exoDust.velocity = Main.rand.NextVector2Circular(2f, 2f);
|
||||
exoDust.scale = 4f;
|
||||
|
||||
@@ -84,7 +84,7 @@ namespace CalamityMod.Projectiles.Boss
|
||||
float xArea = MathHelper.Lerp(400f, 1150f, Time / 300f);
|
||||
Vector2 dustSpawnPosition = waterTop.ToWorldCoordinates() + Vector2.UnitY * 25f;
|
||||
dustSpawnPosition.X += Main.rand.NextFloatDirection() * xArea * 0.35f;
|
||||
Dust bubble = Dust.NewDustPerfect(dustSpawnPosition, 267, Vector2.UnitY * -12f);
|
||||
Dust bubble = Dust.NewDustPerfect(dustSpawnPosition, DustID.RainbowMk2, Vector2.UnitY * -12f);
|
||||
bubble.noGravity = true;
|
||||
bubble.scale = 1.9f;
|
||||
bubble.color = Color.CornflowerBlue;
|
||||
|
||||
@@ -192,7 +192,7 @@ namespace CalamityMod.Projectiles.Boss
|
||||
// spawn too far from the blade.
|
||||
spawnPosition += Main.rand.NextVector2CircularEdge(9f, 35f).RotatedBy(Projectile.velocity.ToRotation() + MathHelper.PiOver2);
|
||||
|
||||
Dust rainbowSpark = Dust.NewDustPerfect(spawnPosition, 261);
|
||||
Dust rainbowSpark = Dust.NewDustPerfect(spawnPosition, DustID.AncientLight);
|
||||
rainbowSpark.velocity = Projectile.velocity * 3f + Main.rand.NextVector2CircularEdge(1.5f, 1.5f);
|
||||
rainbowSpark.noGravity = true;
|
||||
rainbowSpark.color = Color.HotPink;
|
||||
|
||||
@@ -77,7 +77,7 @@ namespace CalamityMod.Projectiles.Boss
|
||||
if (Main.rand.NextBool())
|
||||
{
|
||||
float variance = Main.rand.NextFloat(-25f, 25f);
|
||||
Dust brimstone = Dust.NewDustPerfect(Projectile.Center + new Vector2(variance, 20), 267);
|
||||
Dust brimstone = Dust.NewDustPerfect(Projectile.Center + new Vector2(variance, 20), DustID.RainbowMk2);
|
||||
brimstone.scale = Main.rand.NextFloat(0.35f, 1.2f);
|
||||
brimstone.color = Main.rand.NextBool() ? Color.Red : new Color(121, 21, 77);
|
||||
brimstone.fadeIn = 0.7f;
|
||||
|
||||
@@ -81,7 +81,7 @@ namespace CalamityMod.Projectiles.Boss
|
||||
{
|
||||
Vector2 velocity = spinningPoint.RotatedBy(radians * k).RotatedBy(-0.45f * rotRando);
|
||||
|
||||
Dust cataclysmdust = Dust.NewDustPerfect(Projectile.Center + velocity * (b == 0 ? 7 : 5), 279, velocity * (b == 0 ? 9 : 7));
|
||||
Dust cataclysmdust = Dust.NewDustPerfect(Projectile.Center + velocity * (b == 0 ? 7 : 5), DustID.SilverFlame, velocity * (b == 0 ? 9 : 7));
|
||||
cataclysmdust.noGravity = true;
|
||||
cataclysmdust.scale = Main.rand.NextFloat(1.3f, 1.9f);
|
||||
cataclysmdust.color = Color.Red;
|
||||
@@ -91,7 +91,7 @@ namespace CalamityMod.Projectiles.Boss
|
||||
}
|
||||
|
||||
Vector2 vel = new Vector2(14, 14).RotatedByRandom(100) * Main.rand.NextFloat(0.1f, 2.5f);
|
||||
Dust cataclysmdust2 = Dust.NewDustPerfect(Projectile.Center + vel * 2, 279, vel);
|
||||
Dust cataclysmdust2 = Dust.NewDustPerfect(Projectile.Center + vel * 2, DustID.SilverFlame, vel);
|
||||
cataclysmdust2.noGravity = true;
|
||||
cataclysmdust2.scale = Main.rand.NextFloat(0.9f, 1.2f);
|
||||
cataclysmdust2.color = Color.Red;
|
||||
@@ -176,7 +176,7 @@ namespace CalamityMod.Projectiles.Boss
|
||||
{
|
||||
Vector2 velocity = spinningPoint.RotatedBy(radians * k).RotatedBy(-0.45f * rotRando);
|
||||
|
||||
Dust cataclysmdust = Dust.NewDustPerfect(Projectile.Center + velocity * (b == 0 ? 7 : 5), 279, velocity * (b == 0 ? 9 : 7));
|
||||
Dust cataclysmdust = Dust.NewDustPerfect(Projectile.Center + velocity * (b == 0 ? 7 : 5), DustID.SilverFlame, velocity * (b == 0 ? 9 : 7));
|
||||
cataclysmdust.noGravity = true;
|
||||
cataclysmdust.scale = Main.rand.NextFloat(1.3f, 1.9f);
|
||||
cataclysmdust.color = Color.Red;
|
||||
@@ -186,7 +186,7 @@ namespace CalamityMod.Projectiles.Boss
|
||||
}
|
||||
|
||||
Vector2 vel = new Vector2(14, 14).RotatedByRandom(100) * Main.rand.NextFloat(0.1f, 2.5f);
|
||||
Dust cataclysmdust2 = Dust.NewDustPerfect(Projectile.Center + vel * 2, 279, vel);
|
||||
Dust cataclysmdust2 = Dust.NewDustPerfect(Projectile.Center + vel * 2, DustID.SilverFlame, vel);
|
||||
cataclysmdust2.noGravity = true;
|
||||
cataclysmdust2.scale = Main.rand.NextFloat(0.9f, 1.2f);
|
||||
cataclysmdust2.color = Color.Red;
|
||||
@@ -245,7 +245,7 @@ namespace CalamityMod.Projectiles.Boss
|
||||
{
|
||||
Vector2 velocity = new Vector2(7, 7).RotatedByRandom(100) * Main.rand.NextFloat(0.8f, 1.2f);
|
||||
|
||||
Dust dust = Dust.NewDustPerfect(Projectile.Center + velocity, 66, velocity * Main.rand.NextFloat(0.2f, 1f));
|
||||
Dust dust = Dust.NewDustPerfect(Projectile.Center + velocity, DustID.RainbowTorch, velocity * Main.rand.NextFloat(0.2f, 1f));
|
||||
dust.noGravity = true;
|
||||
dust.scale = Main.rand.NextFloat(1.3f, 1.9f);
|
||||
dust.color = Color.Lerp(Color.Red, Color.Magenta, 0.5f);
|
||||
|
||||
@@ -75,7 +75,7 @@ namespace CalamityMod.Projectiles.Boss
|
||||
Projectile.Opacity = 0f;
|
||||
if (Main.rand.NextBool())
|
||||
{
|
||||
Dust catastrophedust = Dust.NewDustPerfect(Projectile.Center, 66, -Projectile.velocity * Main.rand.NextFloat(0.1f, 1.5f));
|
||||
Dust catastrophedust = Dust.NewDustPerfect(Projectile.Center, DustID.RainbowTorch, -Projectile.velocity * Main.rand.NextFloat(0.1f, 1.5f));
|
||||
catastrophedust.noGravity = true;
|
||||
catastrophedust.scale = Main.rand.NextFloat(0.5f, 0.7f);
|
||||
catastrophedust.color = Color.DeepSkyBlue;
|
||||
@@ -100,7 +100,7 @@ namespace CalamityMod.Projectiles.Boss
|
||||
Projectile.velocity *= 1.015f;
|
||||
if (Main.rand.NextBool(3))
|
||||
{
|
||||
Dust catastrophedust = Dust.NewDustPerfect(Projectile.Center + Main.rand.NextVector2Circular(50, 50) - Projectile.velocity.SafeNormalize(Vector2.UnitY) * 8.5f, 66, -Projectile.velocity * Main.rand.NextFloat(0.2f, 1.2f));
|
||||
Dust catastrophedust = Dust.NewDustPerfect(Projectile.Center + Main.rand.NextVector2Circular(50, 50) - Projectile.velocity.SafeNormalize(Vector2.UnitY) * 8.5f, DustID.RainbowTorch, -Projectile.velocity * Main.rand.NextFloat(0.2f, 1.2f));
|
||||
catastrophedust.noGravity = true;
|
||||
catastrophedust.scale = Main.rand.NextFloat(0.5f, 0.7f);
|
||||
catastrophedust.color = Color.DeepSkyBlue;
|
||||
@@ -131,7 +131,7 @@ namespace CalamityMod.Projectiles.Boss
|
||||
for (int i = 0; i < 3; i++)
|
||||
{
|
||||
Vector2 vel = new Vector2(14, 14).RotatedByRandom(100) * Main.rand.NextFloat(0.1f, 2.5f);
|
||||
Dust catastrophedust = Dust.NewDustPerfect(Projectile.Center + vel * 2, 279, vel);
|
||||
Dust catastrophedust = Dust.NewDustPerfect(Projectile.Center + vel * 2, DustID.SilverFlame, vel);
|
||||
catastrophedust.noGravity = true;
|
||||
catastrophedust.scale = Main.rand.NextFloat(1.2f, 1.8f);
|
||||
catastrophedust.color = Color.DeepSkyBlue;
|
||||
@@ -163,7 +163,7 @@ namespace CalamityMod.Projectiles.Boss
|
||||
for (int i = 0; i < 3; i++)
|
||||
{
|
||||
Vector2 vel = new Vector2(14, 14).RotatedByRandom(100) * Main.rand.NextFloat(0.1f, 2.5f);
|
||||
Dust catastrophedust = Dust.NewDustPerfect(Projectile.Center + vel * 2, 279, vel);
|
||||
Dust catastrophedust = Dust.NewDustPerfect(Projectile.Center + vel * 2, DustID.SilverFlame, vel);
|
||||
catastrophedust.noGravity = true;
|
||||
catastrophedust.scale = Main.rand.NextFloat(1.2f, 1.8f);
|
||||
catastrophedust.color = Color.DeepSkyBlue;
|
||||
@@ -179,7 +179,7 @@ namespace CalamityMod.Projectiles.Boss
|
||||
{
|
||||
Vector2 velocity = new Vector2(7, 7).RotatedByRandom(100) * Main.rand.NextFloat(0.8f, 1.2f);
|
||||
|
||||
Dust dust = Dust.NewDustPerfect(Projectile.Center + velocity, 66, velocity * Main.rand.NextFloat(0.2f, 1f));
|
||||
Dust dust = Dust.NewDustPerfect(Projectile.Center + velocity, DustID.RainbowTorch, velocity * Main.rand.NextFloat(0.2f, 1f));
|
||||
dust.noGravity = true;
|
||||
dust.scale = Main.rand.NextFloat(1.3f, 1.9f);
|
||||
dust.color = Color.Cyan;
|
||||
|
||||
@@ -39,11 +39,11 @@ namespace CalamityMod.Projectiles.DraedonsArsenal
|
||||
float sine = (float)Math.Sin(Projectile.timeLeft * 0.375f / MathHelper.Pi);
|
||||
|
||||
Vector2 offset = Projectile.velocity.SafeNormalize(Vector2.UnitX).RotatedBy(MathHelper.PiOver2) * sine * 16f;
|
||||
Dust dust = Dust.NewDustPerfect(Projectile.Center + offset, 267, Vector2.Zero);
|
||||
Dust dust = Dust.NewDustPerfect(Projectile.Center + offset, DustID.RainbowMk2, Vector2.Zero);
|
||||
dust.color = Color.Cyan;
|
||||
dust.noGravity = true;
|
||||
|
||||
dust = Dust.NewDustPerfect(Projectile.Center - offset, 267, Vector2.Zero);
|
||||
dust = Dust.NewDustPerfect(Projectile.Center - offset, DustID.RainbowMk2, Vector2.Zero);
|
||||
dust.color = Color.Cyan;
|
||||
dust.noGravity = true;
|
||||
|
||||
@@ -77,7 +77,7 @@ namespace CalamityMod.Projectiles.DraedonsArsenal
|
||||
for (int i = 0; i < 18; i++)
|
||||
{
|
||||
Vector2 vel = new Vector2(10, 10).RotatedByRandom(100) * Main.rand.NextFloat(0.8f, 1.2f);
|
||||
Dust dust = Dust.NewDustPerfect(Projectile.Center + vel * 1.5f, 226, vel * Main.rand.NextFloat(0.1f, 1.2f) + new Vector2(0, -2));
|
||||
Dust dust = Dust.NewDustPerfect(Projectile.Center + vel * 1.5f, DustID.Electric, vel * Main.rand.NextFloat(0.1f, 1.2f) + new Vector2(0, -2));
|
||||
dust.noGravity = false;
|
||||
dust.scale = Main.rand.NextFloat(0.65f, 1.2f);
|
||||
}
|
||||
|
||||
@@ -6,6 +6,7 @@ using Microsoft.Xna.Framework.Graphics;
|
||||
using ReLogic.Content;
|
||||
using Terraria;
|
||||
using Terraria.Enums;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Projectiles.DraedonsArsenal
|
||||
@@ -61,7 +62,7 @@ namespace CalamityMod.Projectiles.DraedonsArsenal
|
||||
float dustProgressAlongBeam = beamLength * Main.rand.NextFloat(0f, 0.8f);
|
||||
Vector2 dustPosition = Projectile.Center + dustProgressAlongBeam * beamVector + beamVector.RotatedBy(MathHelper.PiOver2) * Main.rand.NextFloat(-6f, 6f) * Projectile.scale;
|
||||
|
||||
Dust dust = Dust.NewDustPerfect(dustPosition, 187, beamVector * Main.rand.NextFloat(5f, 26f), 0, Color.OrangeRed, 2.2f);
|
||||
Dust dust = Dust.NewDustPerfect(dustPosition, DustID.BlueFlare, beamVector * Main.rand.NextFloat(5f, 26f), 0, Color.OrangeRed, 2.2f);
|
||||
dust.noGravity = true;
|
||||
}
|
||||
|
||||
@@ -89,7 +90,7 @@ namespace CalamityMod.Projectiles.DraedonsArsenal
|
||||
{
|
||||
for (int i = 0; i <= 8; i++)
|
||||
{
|
||||
Dust dust = Dust.NewDustPerfect(target.Center, 218, (Projectile.velocity * 30).RotatedByRandom(MathHelper.ToRadians(25f)) * Main.rand.NextFloat(0.1f, 0.8f), 0, default, Main.rand.NextFloat(1.2f, 1.6f));
|
||||
Dust dust = Dust.NewDustPerfect(target.Center, DustID.Rain_BloodMoon, (Projectile.velocity * 30).RotatedByRandom(MathHelper.ToRadians(25f)) * Main.rand.NextFloat(0.1f, 0.8f), 0, default, Main.rand.NextFloat(1.2f, 1.6f));
|
||||
dust.noGravity = true;
|
||||
}
|
||||
|
||||
|
||||
@@ -62,11 +62,11 @@ namespace CalamityMod.Projectiles.DraedonsArsenal
|
||||
float pulse = (float)Math.Sin(Time / 110f + MathHelper.TwoPi / 3f * i);
|
||||
Vector2 offset = angle.ToRotationVector2().RotatedBy(MathHelper.TwoPi / 3f * i) * pulse * 6f;
|
||||
|
||||
Dust dust = Dust.NewDustPerfect(Projectile.Center + offset, 234);
|
||||
Dust dust = Dust.NewDustPerfect(Projectile.Center + offset, DustID.BoneTorch);
|
||||
dust.velocity = Vector2.Zero;
|
||||
dust.noGravity = true;
|
||||
|
||||
dust = Dust.NewDustPerfect(Projectile.Center + offset, 234);
|
||||
dust = Dust.NewDustPerfect(Projectile.Center + offset, DustID.BoneTorch);
|
||||
dust.velocity = Vector2.Zero;
|
||||
dust.noGravity = true;
|
||||
}
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Projectiles.DraedonsArsenal
|
||||
@@ -21,7 +22,7 @@ namespace CalamityMod.Projectiles.DraedonsArsenal
|
||||
{
|
||||
for (int i = 0; i < 2; i++)
|
||||
{
|
||||
Dust dust = Dust.NewDustPerfect(Projectile.Center + Main.rand.NextVector2Circular(4f, 4f), 107);
|
||||
Dust dust = Dust.NewDustPerfect(Projectile.Center + Main.rand.NextVector2Circular(4f, 4f), DustID.Terra);
|
||||
dust.scale = Main.rand.NextFloat(1.1f, 1.3f);
|
||||
dust.noGravity = true;
|
||||
}
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
using System;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Projectiles.DraedonsArsenal
|
||||
@@ -47,7 +48,7 @@ namespace CalamityMod.Projectiles.DraedonsArsenal
|
||||
{
|
||||
for (int i = 0; i < 60; i++)
|
||||
{
|
||||
Dust dust = Dust.NewDustPerfect(Target.Center, 261);
|
||||
Dust dust = Dust.NewDustPerfect(Target.Center, DustID.AncientLight);
|
||||
dust.color = Utils.SelectRandom(Main.rand, Color.Yellow, Color.YellowGreen);
|
||||
dust.velocity = Main.rand.NextVector2Circular(20f, 20f);
|
||||
dust.scale = 2f;
|
||||
@@ -65,7 +66,7 @@ namespace CalamityMod.Projectiles.DraedonsArsenal
|
||||
Vector2 offset = Target.Size.RotatedBy(offsetAngle) * 0.5f;
|
||||
offset += (arcIndex * MathHelper.TwoPi / 6f + Time / 20f).ToRotationVector2() * 6f * arcIndex;
|
||||
|
||||
Dust dust = Dust.NewDustPerfect(Target.Center + offset, 261);
|
||||
Dust dust = Dust.NewDustPerfect(Target.Center + offset, DustID.AncientLight);
|
||||
dust.color = Utils.SelectRandom(Main.rand, Color.Yellow, Color.YellowGreen);
|
||||
dust.velocity = Vector2.Zero;
|
||||
dust.scale = scale;
|
||||
|
||||
@@ -77,7 +77,7 @@ namespace CalamityMod.Projectiles.DraedonsArsenal
|
||||
Vector2 offset = Main.rand.NextVector2CircularEdge(energyRadius, energyRadius) * 3f;
|
||||
|
||||
float dustHue = Main.rand.NextFloat(0.15f, 0.3f);
|
||||
Dust dust = Dust.NewDustPerfect(Projectile.Center + offset, 261);
|
||||
Dust dust = Dust.NewDustPerfect(Projectile.Center + offset, DustID.AncientLight);
|
||||
dust.velocity = Projectile.DirectionFrom(dust.position) * energyRadius / 3f;
|
||||
dust.color = Main.hslToRgb(dustHue, Main.rand.NextFloat(0.9f, 1f), Main.rand.NextFloat(0.5f, 0.66f));
|
||||
dust.noGravity = true;
|
||||
@@ -98,7 +98,7 @@ namespace CalamityMod.Projectiles.DraedonsArsenal
|
||||
offset.Y *= yOffsetFactor;
|
||||
|
||||
float dustHue = Main.rand.NextFloat(0.15f, 0.3f);
|
||||
Dust dust = Dust.NewDustPerfect(Projectile.Center + offset, 261);
|
||||
Dust dust = Dust.NewDustPerfect(Projectile.Center + offset, DustID.AncientLight);
|
||||
dust.velocity = Main.rand.NextVector2Circular(energySphereSpeedMax, energySphereSpeedMax);
|
||||
dust.velocity += Projectile.velocity;
|
||||
dust.color = Main.hslToRgb(dustHue, Main.rand.NextFloat(0.9f, 1f), Main.rand.NextFloat(0.5f, 0.66f));
|
||||
@@ -116,7 +116,7 @@ namespace CalamityMod.Projectiles.DraedonsArsenal
|
||||
offset.Y *= yOffsetFactor;
|
||||
|
||||
float dustHue = Main.rand.NextFloat(0.15f, 0.3f);
|
||||
Dust dust = Dust.NewDustPerfect(Projectile.Center + offset, 261);
|
||||
Dust dust = Dust.NewDustPerfect(Projectile.Center + offset, DustID.AncientLight);
|
||||
dust.velocity = Vector2.Zero;
|
||||
dust.color = Main.hslToRgb(dustHue, Main.rand.NextFloat(0.9f, 1f), Main.rand.NextFloat(0.5f, 0.66f));
|
||||
dust.scale = 0.5f;
|
||||
|
||||
@@ -113,7 +113,7 @@ namespace CalamityMod.Projectiles.DraedonsArsenal
|
||||
spawnPosition.Normalize();
|
||||
spawnPosition *= Projectile.Size;
|
||||
spawnPosition += Projectile.Center;
|
||||
Dust dust = Dust.NewDustPerfect(spawnPosition, 226);
|
||||
Dust dust = Dust.NewDustPerfect(spawnPosition, DustID.Electric);
|
||||
dust.velocity = Projectile.velocity.SafeNormalize(Vector2.Zero) * Main.rand.NextFloat(2f, 3.6f);
|
||||
dust.velocity += Owner.velocity * 0.4f;
|
||||
}
|
||||
@@ -143,7 +143,7 @@ namespace CalamityMod.Projectiles.DraedonsArsenal
|
||||
for (float increment = 0f; increment <= 1f; increment += 0.05f)
|
||||
{
|
||||
Vector2 spawnPosition = Vector2.Lerp(target.Center, n.Center, increment);
|
||||
Dust dust = Dust.NewDustPerfect(spawnPosition, 226);
|
||||
Dust dust = Dust.NewDustPerfect(spawnPosition, DustID.Electric);
|
||||
dust.velocity = Vector2.Zero;
|
||||
dust.scale = 1.6f;
|
||||
dust.noGravity = true;
|
||||
|
||||
@@ -86,7 +86,7 @@ namespace CalamityMod.Projectiles.DraedonsArsenal
|
||||
Vector2 laserSpawnPosition = Projectile.Center + Projectile.velocity * (LaserLength - 14f);
|
||||
for (int i = 0; i < 3; i++)
|
||||
{
|
||||
Dust dust = Dust.NewDustPerfect(laserSpawnPosition + Main.rand.NextVector2Circular(8f, 8f), 261);
|
||||
Dust dust = Dust.NewDustPerfect(laserSpawnPosition + Main.rand.NextVector2Circular(8f, 8f), DustID.AncientLight);
|
||||
dust.velocity = Main.rand.NextVector2CircularEdge(9f, 9f) * Main.rand.NextFloat(0.3f, 1f);
|
||||
dust.color = Color.Lerp(Color.Crimson, Color.Red, Main.rand.NextFloat());
|
||||
dust.noGravity = true;
|
||||
|
||||
@@ -88,7 +88,7 @@ namespace CalamityMod.Projectiles.DraedonsArsenal
|
||||
{
|
||||
float angle = MathHelper.TwoPi / 45f * i;
|
||||
Vector2 velocity = angle.ToRotationVector2() * 4f;
|
||||
Dust dust = Dust.NewDustPerfect(Projectile.Center + velocity * 2.75f, 261, velocity);
|
||||
Dust dust = Dust.NewDustPerfect(Projectile.Center + velocity * 2.75f, DustID.AncientLight, velocity);
|
||||
dust.noGravity = true;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -111,7 +111,7 @@ namespace CalamityMod.Projectiles.DraedonsArsenal
|
||||
return;
|
||||
for (int i = 0; i < 4; i++)
|
||||
{
|
||||
Dust dust = Dust.NewDustPerfect(Projectile.Center + Main.rand.NextVector2Circular(52f, 52f), 261);
|
||||
Dust dust = Dust.NewDustPerfect(Projectile.Center + Main.rand.NextVector2Circular(52f, 52f), DustID.AncientLight);
|
||||
dust.velocity = Vector2.Zero;
|
||||
dust.noGravity = true;
|
||||
}
|
||||
|
||||
Loaded 100 of 626 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user