Merge branch '1.4.4' into fls-rework
No files matched your search
@@ -36,9 +36,9 @@ namespace CalamityMod.Buffs.DamageOverTime
|
||||
|
||||
if (Main.rand.NextBool(4) && drawInfo.shadow == 0f)
|
||||
{
|
||||
DirectionalPulseRing pulse = new DirectionalPulseRing(Player.Calamity().RandomDebuffVisualSpot, Vector2.Zero, Main.rand.NextBool(2) ? Color.DarkTurquoise : Color.Coral, new Vector2(1, 1), 0, 0.08f, 0f, 20);
|
||||
DirectionalPulseRing pulse = new DirectionalPulseRing(Player.Calamity().RandomDebuffVisualSpot, Vector2.Zero, Main.rand.NextBool() ? Color.DarkTurquoise : Color.Coral, new Vector2(1, 1), 0, 0.08f, 0f, 20);
|
||||
GeneralParticleHandler.SpawnParticle(pulse);
|
||||
Particle orb = new GenericBloom(Player.Calamity().RandomDebuffVisualSpot, Vector2.Zero, Main.rand.NextBool(2) ? Color.DarkTurquoise : Color.Coral, 0.055f, 8);
|
||||
Particle orb = new GenericBloom(Player.Calamity().RandomDebuffVisualSpot, Vector2.Zero, Main.rand.NextBool() ? Color.DarkTurquoise : Color.Coral, 0.055f, 8);
|
||||
GeneralParticleHandler.SpawnParticle(orb);
|
||||
}
|
||||
}
|
||||
@@ -49,9 +49,9 @@ 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));
|
||||
Vector2 npcSize2 = npc.Center + new Vector2(Main.rand.NextFloat(-npc.width / 2, npc.width / 2), Main.rand.NextFloat(-npc.height / 2, npc.height / 2));
|
||||
DirectionalPulseRing pulse = new DirectionalPulseRing(npcSize, Vector2.Zero, Main.rand.NextBool(2) ? Color.DarkTurquoise : Color.Coral, new Vector2(1, 1), 0, 0.1f + (0.0000007f * npc.width * npc.height), 0f, 20);
|
||||
DirectionalPulseRing pulse = new DirectionalPulseRing(npcSize, Vector2.Zero, Main.rand.NextBool() ? Color.DarkTurquoise : Color.Coral, new Vector2(1, 1), 0, 0.1f + (0.0000007f * npc.width * npc.height), 0f, 20);
|
||||
GeneralParticleHandler.SpawnParticle(pulse);
|
||||
Particle orb = new GenericBloom(npcSize2, Vector2.Zero, Main.rand.NextBool(2) ? Color.DarkTurquoise : Color.Coral, 0.065f + (0.0000007f * npc.width * npc.height), 8);
|
||||
Particle orb = new GenericBloom(npcSize2, Vector2.Zero, Main.rand.NextBool() ? Color.DarkTurquoise : Color.Coral, 0.065f + (0.0000007f * npc.width * npc.height), 8);
|
||||
GeneralParticleHandler.SpawnParticle(orb);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -42,7 +42,7 @@ namespace CalamityMod.Buffs.DamageOverTime
|
||||
dust.noGravity = true;
|
||||
for (int i = 0; i < 3; i++)
|
||||
{
|
||||
Dust dust2 = Dust.NewDustPerfect(Player.Center + new Vector2(Main.rand.NextFloat(-10f, 10f), 19), Main.rand.NextBool(2) ? 90 : ModContent.DustType<BrimstoneFlame>(), new Vector2(Main.rand.NextFloat(-4f, 4f), Main.rand.NextFloat(-1f, -3f)) + Player.velocity, 0, default, hasDebuffResistance ? 0.4f : 1.4f);
|
||||
Dust dust2 = Dust.NewDustPerfect(Player.Center + new Vector2(Main.rand.NextFloat(-10f, 10f), 19), Main.rand.NextBool() ? 90 : ModContent.DustType<BrimstoneFlame>(), new Vector2(Main.rand.NextFloat(-4f, 4f), Main.rand.NextFloat(-1f, -3f)) + Player.velocity, 0, default, hasDebuffResistance ? 0.4f : 1.4f);
|
||||
dust2.noGravity = true;
|
||||
}
|
||||
}
|
||||
@@ -58,7 +58,7 @@ namespace CalamityMod.Buffs.DamageOverTime
|
||||
dust.scale = 1.6f;
|
||||
for (int i = 0; i < 3; i++)
|
||||
{
|
||||
Dust dust2 = Dust.NewDustDirect(npc.position + new Vector2(Main.rand.NextFloat(-10f, 10f), npc.height / 2), npc.width, npc.height, Main.rand.NextBool(2) ? 90 : ModContent.DustType<BrimstoneFlame>());
|
||||
Dust dust2 = Dust.NewDustDirect(npc.position + new Vector2(Main.rand.NextFloat(-10f, 10f), npc.height / 2), npc.width, npc.height, Main.rand.NextBool() ? 90 : ModContent.DustType<BrimstoneFlame>());
|
||||
dust2.noGravity = true;
|
||||
dust2.velocity = new Vector2(Main.rand.NextFloat(-4f, 4f), Main.rand.NextFloat(-1f, -3f)) + npc.velocity;
|
||||
dust2.scale = 1.4f;
|
||||
|
||||
@@ -43,7 +43,7 @@ namespace CalamityMod.Buffs.DamageOverTime
|
||||
|
||||
internal static void DrawEffects(NPC npc, ref Color drawColor)
|
||||
{
|
||||
if (Main.rand.NextBool(2))
|
||||
if (Main.rand.NextBool())
|
||||
{
|
||||
Vector2 npcSize = npc.Center + new Vector2(Main.rand.NextFloat(-npc.width / 2, npc.width / 2), Main.rand.NextFloat(-npc.height / 2, npc.height / 2));
|
||||
SparkParticle spark = new SparkParticle(npcSize, new Vector2(0, Main.rand.NextFloat(-5f, 5f)), false, Main.rand.Next(11, 13), Main.rand.NextFloat(0.2f, 0.5f), Main.rand.NextBool(7) ? Color.Aqua : Color.Fuchsia);
|
||||
|
||||
@@ -37,7 +37,7 @@ namespace CalamityMod.Buffs.DamageOverTime
|
||||
if (Main.rand.NextBool(hasDebuffResistance ? 4 : 2) && drawInfo.shadow == 0f)
|
||||
{
|
||||
Vector2 Vect = new Vector2(0f, Main.rand.NextBool(4) ? -5f : -9f).RotatedByRandom(MathHelper.ToRadians(25f)) * Main.rand.NextFloat(0.1f, 1.9f);
|
||||
CritSpark spark = new CritSpark(Player.Calamity().RandomDebuffVisualSpot, Vect, Main.rand.NextBool(2) ? Color.Coral : Color.OrangeRed, Color.Orange, (hasDebuffResistance ? 0.4f : 0.8f), 15, 2f, 1.9f);
|
||||
CritSpark spark = new CritSpark(Player.Calamity().RandomDebuffVisualSpot, Vect, Main.rand.NextBool() ? Color.Coral : Color.OrangeRed, Color.Orange, (hasDebuffResistance ? 0.4f : 0.8f), 15, 2f, 1.9f);
|
||||
GeneralParticleHandler.SpawnParticle(spark);
|
||||
}
|
||||
|
||||
@@ -58,7 +58,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));
|
||||
Vector2 Vect = new Vector2(0f, Main.rand.NextBool(4) ? -5f : -9f).RotatedByRandom(MathHelper.ToRadians(25f)) * Main.rand.NextFloat(0.1f, 1.9f);
|
||||
CritSpark spark = new CritSpark(npcSize, Vect, Main.rand.NextBool(2) ? Color.Coral : Color.OrangeRed, Color.Orange, 0.8f, 15, 2f, 1.9f);
|
||||
CritSpark spark = new CritSpark(npcSize, Vect, Main.rand.NextBool() ? Color.Coral : Color.OrangeRed, Color.Orange, 0.8f, 15, 2f, 1.9f);
|
||||
GeneralParticleHandler.SpawnParticle(spark);
|
||||
}
|
||||
|
||||
|
||||
@@ -37,7 +37,7 @@ namespace CalamityMod.Buffs.DamageOverTime
|
||||
if (Main.rand.NextBool(hasDebuffResistance ? 4 : 2) && drawInfo.shadow == 0f)
|
||||
{
|
||||
Vector2 Vect = new Vector2(0f, Main.rand.NextBool(4) ? -5f : -9f).RotatedByRandom(MathHelper.ToRadians(25f)) * Main.rand.NextFloat(0.1f, 1.9f);
|
||||
CritSpark spark = new CritSpark(Player.Calamity().RandomDebuffVisualSpot, Vect, Main.rand.NextBool(2) ? Color.Cyan : Color.DarkBlue, Color.DodgerBlue, (hasDebuffResistance ? 0.4f : 0.8f), 15, 2f, 1.9f);
|
||||
CritSpark spark = new CritSpark(Player.Calamity().RandomDebuffVisualSpot, Vect, Main.rand.NextBool() ? Color.Cyan : Color.DarkBlue, Color.DodgerBlue, (hasDebuffResistance ? 0.4f : 0.8f), 15, 2f, 1.9f);
|
||||
GeneralParticleHandler.SpawnParticle(spark);
|
||||
}
|
||||
for (int i = 0; i < (hasDebuffResistance ? 1 : 2); i++)
|
||||
@@ -57,7 +57,7 @@ namespace CalamityMod.Buffs.DamageOverTime
|
||||
if (Main.rand.NextBool(3))
|
||||
{
|
||||
Vector2 Vect = new Vector2(0f, Main.rand.NextBool(4) ? -5f : -9f).RotatedByRandom(MathHelper.ToRadians(25f)) * Main.rand.NextFloat(0.1f, 1.9f);
|
||||
CritSpark spark = new CritSpark(npcSize, Vect, Main.rand.NextBool(2) ? Color.Cyan : Color.DarkBlue, Color.DodgerBlue, 0.8f, 15, 2f, 1.9f);
|
||||
CritSpark spark = new CritSpark(npcSize, Vect, Main.rand.NextBool() ? Color.Cyan : Color.DarkBlue, Color.DodgerBlue, 0.8f, 15, 2f, 1.9f);
|
||||
GeneralParticleHandler.SpawnParticle(spark);
|
||||
}
|
||||
for (int i = 0; i < 2; i++)
|
||||
|
||||
@@ -48,7 +48,7 @@ namespace CalamityMod.Buffs.DamageOverTime
|
||||
}
|
||||
if (Main.rand.NextBool(5))
|
||||
{
|
||||
DirectionalPulseRing pulse = new DirectionalPulseRing(Player.Calamity().RandomDebuffVisualSpot, new Vector2(Main.rand.NextFloat(-1f, 1f), Main.rand.NextFloat(-3f, -4f)), Main.rand.NextBool(2) ? Color.OliveDrab : Color.GreenYellow, new Vector2(0.8f, 1), 0, 0.09f, 0f, 45);
|
||||
DirectionalPulseRing pulse = new DirectionalPulseRing(Player.Calamity().RandomDebuffVisualSpot, new Vector2(Main.rand.NextFloat(-1f, 1f), Main.rand.NextFloat(-3f, -4f)), Main.rand.NextBool() ? Color.OliveDrab : Color.GreenYellow, new Vector2(0.8f, 1), 0, 0.09f, 0f, 45);
|
||||
GeneralParticleHandler.SpawnParticle(pulse);
|
||||
}
|
||||
}
|
||||
@@ -56,7 +56,7 @@ namespace CalamityMod.Buffs.DamageOverTime
|
||||
|
||||
internal static void DrawEffects(NPC npc, ref Color drawColor)
|
||||
{
|
||||
if (Main.rand.NextBool(2))
|
||||
if (Main.rand.NextBool())
|
||||
{
|
||||
Vector2 npcSize = npc.Center + new Vector2(Main.rand.NextFloat(-npc.width / 2, npc.width / 2), Main.rand.NextFloat(-npc.height / 2, npc.height / 2));
|
||||
int dust = Dust.NewDust(npc.position - new Vector2(2f), npc.width + 4, npc.height + 4, 298, npc.velocity.X * 0.4f, npc.velocity.Y * 0.4f, 100, default, 1.2f + +(0.000003f * npc.width * npc.height));
|
||||
@@ -69,9 +69,9 @@ namespace CalamityMod.Buffs.DamageOverTime
|
||||
Main.dust[dust].noGravity = false;
|
||||
Main.dust[dust].scale *= 0.4f;
|
||||
}
|
||||
if (Main.rand.NextBool(2))
|
||||
if (Main.rand.NextBool())
|
||||
{
|
||||
DirectionalPulseRing pulse = new DirectionalPulseRing(npcSize, new Vector2(Main.rand.NextFloat(-1f, 1f), Main.rand.NextFloat(-4.5f, -6f)), Main.rand.NextBool(2) ? Color.OliveDrab : Color.GreenYellow, new Vector2(0.8f, 1), 0, 0.12f + (0.0000007f * npc.width * npc.height), 0f, 45);
|
||||
DirectionalPulseRing pulse = new DirectionalPulseRing(npcSize, new Vector2(Main.rand.NextFloat(-1f, 1f), Main.rand.NextFloat(-4.5f, -6f)), Main.rand.NextBool() ? Color.OliveDrab : Color.GreenYellow, new Vector2(0.8f, 1), 0, 0.12f + (0.0000007f * npc.width * npc.height), 0f, 45);
|
||||
GeneralParticleHandler.SpawnParticle(pulse);
|
||||
}
|
||||
}
|
||||
|
||||
|
Before Width: | Height: | Size: 607 B After Width: | Height: | Size: 682 B |
@@ -54,10 +54,10 @@ namespace CalamityMod.Buffs.StatBuffs
|
||||
modPlayer.ragePulseTimer++;
|
||||
int dustID = modPlayer.heartOfDarkness ? 240 : 114;
|
||||
|
||||
if (modPlayer.shatteredCommunity && Main.rand.NextBool(2))
|
||||
if (modPlayer.shatteredCommunity && Main.rand.NextBool())
|
||||
dustID = 112; //special dust visual for Shattered Community
|
||||
|
||||
if (modPlayer.heartOfDarkness && !modPlayer.shatteredCommunity && Main.rand.NextBool(2))
|
||||
if (modPlayer.heartOfDarkness && !modPlayer.shatteredCommunity && Main.rand.NextBool())
|
||||
dustID = 90; //special dust visual for Heart of Darkness
|
||||
|
||||
if (modPlayer.ragePulseTimer == 60)
|
||||
|
||||
@@ -1070,6 +1070,8 @@ namespace CalamityMod.CalPlayer
|
||||
public bool abyssalDivingSuitPower;
|
||||
public bool profanedCrystal;
|
||||
public int profanedCrystalStatePrevious;
|
||||
public bool profanedCrystalPrevious;
|
||||
public int profanedCrystalAnim;
|
||||
public bool profanedCrystalForce;
|
||||
public bool profanedCrystalBuffs;
|
||||
public bool profanedCrystalHide;
|
||||
@@ -2087,6 +2089,7 @@ namespace CalamityMod.CalPlayer
|
||||
aquaticHeart = aquaticHeartHide = aquaticHeartForce = aquaticHeartPower = false;
|
||||
|
||||
profanedCrystalStatePrevious = pscState;
|
||||
profanedCrystalPrevious = profanedCrystal;
|
||||
profanedCrystal = profanedCrystalBuffs = profanedCrystalForce = profanedCrystalHide = false;
|
||||
pscState = 0;
|
||||
pscLerpColor = Color.White;
|
||||
@@ -2537,6 +2540,7 @@ namespace CalamityMod.CalPlayer
|
||||
blazingCoreSuccessfulParry = 0;
|
||||
flameLickedShellParry = 0;
|
||||
flameLickedShellEmpoweredParry = false;
|
||||
profanedCrystalAnim = -1;
|
||||
#endregion
|
||||
|
||||
#region Shields
|
||||
@@ -3101,7 +3105,7 @@ namespace CalamityMod.CalPlayer
|
||||
for (int i = 0; i < dustPerSegment; ++i)
|
||||
{
|
||||
bool electricity = Main.rand.NextBool(4);
|
||||
int dustID = electricity ? (Main.rand.NextBool(2) ? 132 : 131) : ModContent.DustType<AdrenDust>();
|
||||
int dustID = electricity ? (Main.rand.NextBool() ? 132 : 131) : ModContent.DustType<AdrenDust>();
|
||||
|
||||
float interpolant = i + 0.5f;
|
||||
float spreadSpeed = Main.rand.NextFloat(0.5f, maxDustVelSpread);
|
||||
@@ -3284,7 +3288,7 @@ namespace CalamityMod.CalPlayer
|
||||
Main.dust[idx].velocity *= 2f;
|
||||
Main.dust[idx].scale *= 1.2f;
|
||||
}
|
||||
if (Main.rand.NextBool(2))
|
||||
if (Main.rand.NextBool())
|
||||
{
|
||||
Main.dust[idx].fadeIn = Main.rand.NextFloat(0.75f, 1f);
|
||||
Main.dust[idx].scale = Main.rand.NextFloat(0.25f, 0.75f);
|
||||
@@ -3653,7 +3657,6 @@ namespace CalamityMod.CalPlayer
|
||||
(lunicCorpsLegs ? 0.1f : 0f) +
|
||||
(shadowSpeed ? 0.5f : 0f) +
|
||||
(stressPills ? 0.05f : 0f) +
|
||||
(aeroStone && Player.equippedWings != null && Player.wingTime == 0f ? 0.5f : 0f) +
|
||||
((abyssalDivingSuit && Player.IsUnderwater()) ? 0.05f : 0f) +
|
||||
(aquaticHeartWaterBuff ? 0.15f : 0f) +
|
||||
((frostFlare && Player.statLife < (int)(Player.statLifeMax2 * 0.25)) ? 0.15f : 0f) +
|
||||
@@ -4793,7 +4796,7 @@ namespace CalamityMod.CalPlayer
|
||||
#endregion
|
||||
|
||||
#region Misc Stuff
|
||||
private static int musicModDisplayDelay = -1;
|
||||
private static int startMessageDisplayDelay = -1;
|
||||
|
||||
// Triggers effects that must occur when the player enters the world. This sends a bunch of packets in multiplayer.
|
||||
// It also starts the speedrun timer if applicable.
|
||||
@@ -4807,16 +4810,10 @@ namespace CalamityMod.CalPlayer
|
||||
if (CalamityConfig.Instance.SpeedrunTimer)
|
||||
CalamityMod.SpeedrunTimer.Restart();
|
||||
|
||||
if (CalamityConfig.Instance.WikiStatusMessage)
|
||||
// Set a random delay between 12 and 20 seconds. When this delay hits zero, the music mod and wiki reminder messages display
|
||||
if ((CalamityMod.Instance.musicMod is null && CalamityConfig.Instance.MusicModReminderMessage) || CalamityConfig.Instance.WikiStatusMessage)
|
||||
{
|
||||
CalamityUtils.DisplayLocalizedText("Mods.CalamityMod.Misc.WikiStatus1");
|
||||
CalamityUtils.DisplayLocalizedText("Mods.CalamityMod.Misc.WikiStatus2");
|
||||
}
|
||||
|
||||
// Set a random delay between 12 and 20 seconds. When this delay hits zero, the music mod reminder message displays
|
||||
if (CalamityMod.Instance.musicMod is null && CalamityConfig.Instance.MusicModReminderMessage)
|
||||
{
|
||||
musicModDisplayDelay = Main.rand.Next(CalamityUtils.SecondsToFrames(12), CalamityUtils.SecondsToFrames(20) + 1);
|
||||
startMessageDisplayDelay = Main.rand.Next(CalamityUtils.SecondsToFrames(12), CalamityUtils.SecondsToFrames(20) + 1);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4857,7 +4854,7 @@ namespace CalamityMod.CalPlayer
|
||||
public override void OnConsumeMana(Item item, int manaConsumed)
|
||||
{
|
||||
CalamityPlayer modPlayer = Player.Calamity();
|
||||
if (Main.rand.NextBool(2) && modPlayer.lifeManaEnchant)
|
||||
if (Main.rand.NextBool() && modPlayer.lifeManaEnchant)
|
||||
{
|
||||
if (Main.myPlayer == Player.whoAmI)
|
||||
{
|
||||
|
||||
@@ -125,7 +125,7 @@ namespace CalamityMod.CalPlayer
|
||||
{
|
||||
if (!Player.StandingStill() && !Player.mount.Active)
|
||||
{
|
||||
if (Main.rand.NextBool(2) && drawInfo.shadow == 0f)
|
||||
if (Main.rand.NextBool() && drawInfo.shadow == 0f)
|
||||
{
|
||||
int dust = Dust.NewDust(drawInfo.Position - new Vector2(2f), Player.width + 4, Player.height + 4, 229, Player.velocity.X * 0.4f, Player.velocity.Y * 0.4f, 100, default, 1f);
|
||||
Main.dust[dust].noGravity = true;
|
||||
@@ -140,7 +140,7 @@ namespace CalamityMod.CalPlayer
|
||||
{
|
||||
if (!Player.StandingStill() && !Player.mount.Active)
|
||||
{
|
||||
if (Main.rand.NextBool(2) && drawInfo.shadow == 0f)
|
||||
if (Main.rand.NextBool() && drawInfo.shadow == 0f)
|
||||
{
|
||||
int dust = Dust.NewDust(drawInfo.Position - new Vector2(2f), Player.width + 4, Player.height + 4, 246, Player.velocity.X * 0.4f, Player.velocity.Y * 0.4f, 100, default, 1f);
|
||||
Main.dust[dust].noGravity = true;
|
||||
@@ -160,7 +160,7 @@ namespace CalamityMod.CalPlayer
|
||||
Lighting.AddLight((int)Player.Center.X / 16, (int)Player.Center.Y / 16, 100 / 235f, 1 / 235f, 250 / 235f);
|
||||
if (!Player.StandingStill() && !Player.mount.Active)
|
||||
{
|
||||
if (Main.rand.NextBool(2) && drawInfo.shadow == 0f)
|
||||
if (Main.rand.NextBool() && drawInfo.shadow == 0f)
|
||||
{
|
||||
int dust = Dust.NewDust(drawInfo.Position - new Vector2(2f), Player.width + 4, Player.height + 4, 27, Player.velocity.X * 0.4f, Player.velocity.Y * 0.4f, 100, default, 1.5f);
|
||||
Main.dust[dust].noGravity = true;
|
||||
@@ -191,7 +191,7 @@ namespace CalamityMod.CalPlayer
|
||||
{
|
||||
if (Main.rand.NextBool(8) && drawInfo.shadow == 0f)
|
||||
{
|
||||
int de_dust2 = Dust.NewDust(drawInfo.Position - new Vector2(2f), Player.width + 4, Player.height + 4, Main.rand.NextBool(2) ? 204 : 213, Player.velocity.X * 0.4f, Player.velocity.Y * 0.4f, 100, default, 1.5f);
|
||||
int de_dust2 = Dust.NewDust(drawInfo.Position - new Vector2(2f), Player.width + 4, Player.height + 4, Main.rand.NextBool() ? 204 : 213, Player.velocity.X * 0.4f, Player.velocity.Y * 0.4f, 100, default, 1.5f);
|
||||
Main.dust[de_dust2].noGravity = true;
|
||||
Main.dust[de_dust2].velocity *= 0.5f;
|
||||
drawInfo.DustCache.Add(de_dust2);
|
||||
|
||||
@@ -92,7 +92,7 @@ namespace CalamityMod.CalPlayer
|
||||
dust.velocity *= 0.4f;
|
||||
dust.scale *= 1f + Main.rand.Next(40) * 0.01f;
|
||||
dust.shader = GameShaders.Armor.GetSecondaryShader(Player.ArmorSetDye(), Player);
|
||||
if (Main.rand.NextBool(2))
|
||||
if (Main.rand.NextBool())
|
||||
{
|
||||
dust.scale *= 1f + Main.rand.Next(40) * 0.01f;
|
||||
dust.noGravity = true;
|
||||
@@ -126,7 +126,7 @@ namespace CalamityMod.CalPlayer
|
||||
dust.velocity *= 0.4f;
|
||||
dust.scale *= 1f + Main.rand.Next(40) * 0.01f;
|
||||
dust.shader = GameShaders.Armor.GetSecondaryShader(Player.cNeck, Player);
|
||||
if (Main.rand.NextBool(2))
|
||||
if (Main.rand.NextBool())
|
||||
{
|
||||
dust.scale *= 1f + Main.rand.Next(40) * 0.01f;
|
||||
dust.noGravity = true;
|
||||
@@ -241,7 +241,7 @@ namespace CalamityMod.CalPlayer
|
||||
dust.scale *= 1f + Main.rand.Next(40) * 0.01f;
|
||||
// Change this accordingly if we have a proper equipped sprite.
|
||||
dust.shader = GameShaders.Armor.GetSecondaryShader(Player.cBody, Player);
|
||||
if (Main.rand.NextBool(2))
|
||||
if (Main.rand.NextBool())
|
||||
dust.scale *= 1f + Main.rand.Next(40) * 0.01f;
|
||||
}
|
||||
|
||||
@@ -2098,7 +2098,7 @@ namespace CalamityMod.CalPlayer
|
||||
{
|
||||
int dust = Dust.NewDust(Player.position, Player.width, Player.height, 31, 0f, 0f, 100, default, 2f);
|
||||
Main.dust[dust].velocity *= 3f;
|
||||
if (Main.rand.NextBool(2))
|
||||
if (Main.rand.NextBool())
|
||||
{
|
||||
Main.dust[dust].scale = 0.5f;
|
||||
Main.dust[dust].fadeIn = 1f + Main.rand.Next(10) * 0.1f;
|
||||
@@ -2125,7 +2125,7 @@ namespace CalamityMod.CalPlayer
|
||||
{
|
||||
int ice = Dust.NewDust(Player.position, Player.width, Player.height, 67, 0f, 0f, 100, default, 2f);
|
||||
Main.dust[ice].velocity *= 3f;
|
||||
if (Main.rand.NextBool(2))
|
||||
if (Main.rand.NextBool())
|
||||
{
|
||||
Main.dust[ice].scale = 0.5f;
|
||||
Main.dust[ice].fadeIn = 1f + (float)Main.rand.Next(10) * 0.1f;
|
||||
|
||||
@@ -679,7 +679,7 @@ namespace CalamityMod.CalPlayer
|
||||
if (phantomicHeartRegen <= 720 && phantomicHeartRegen >= 600)
|
||||
{
|
||||
Player.lifeRegen += 2;
|
||||
if (Main.rand.NextBool(2))
|
||||
if (Main.rand.NextBool())
|
||||
{
|
||||
int regen = Dust.NewDust(Player.position, Player.width, Player.height, 5, 0f, 0f, 200, new Color(99, 54, 84), 2f);
|
||||
Main.dust[regen].noGravity = true;
|
||||
@@ -788,7 +788,7 @@ namespace CalamityMod.CalPlayer
|
||||
if (Player.lifeRegen > 0 && Player.statLife < actualMaxLife)
|
||||
{
|
||||
int dustType = shadeRegen ? 173 : cFreeze ? 67 : honeyDewWorking ? DustID.Honey2 : photosynthesis ? 244 : aAmpoule ? 228 : purity ? 187 : -1;
|
||||
bool dustSpawnRolled = Main.rand.Next(30000) < Player.lifeRegenTime || purity ? Main.rand.NextBool(2) : aAmpoule ? Main.rand.NextBool(4) : Main.rand.NextBool(30);
|
||||
bool dustSpawnRolled = Main.rand.Next(30000) < Player.lifeRegenTime || purity ? Main.rand.NextBool() : aAmpoule ? Main.rand.NextBool(4) : Main.rand.NextBool(30);
|
||||
if (dustType != -1 && dustSpawnRolled)
|
||||
{
|
||||
int regen = Dust.NewDust(Player.position, Player.width, Player.height, dustType, 0f, 0f, purity || aAmpoule ? 80 : 200, default, purity || aAmpoule ? 0.5f : 1f);
|
||||
@@ -832,7 +832,7 @@ namespace CalamityMod.CalPlayer
|
||||
// Normally 1.25 while resting and 0.5 while not
|
||||
Player.lifeRegen += (int)(baseRegenRate * 0.75f);
|
||||
|
||||
if (Main.rand.Next(30000) < Player.lifeRegenTime || Main.rand.NextBool(2))
|
||||
if (Main.rand.Next(30000) < Player.lifeRegenTime || Main.rand.NextBool())
|
||||
{
|
||||
int regen = Dust.NewDust(Player.position, Player.width, Player.height, 12, 0f, 0f, 200, Color.OrangeRed, 1f);
|
||||
Main.dust[regen].noGravity = true;
|
||||
|
||||
@@ -246,7 +246,7 @@ namespace CalamityMod.CalPlayer
|
||||
float rot = MathHelper.ToRadians(i * rotFactor);
|
||||
Vector2 offset = new Vector2(Player.velocity.X * Player.direction * 0.7f + 6f, 0).RotatedBy(rot * Main.rand.NextFloat(4f, 5f));
|
||||
Vector2 velOffset = Vector2.Zero;
|
||||
Dust dust = Dust.NewDustPerfect(Player.Center + offset + Player.velocity, Main.rand.NextBool(2) ? 160 : 307, new Vector2(velOffset.X, velOffset.Y));
|
||||
Dust dust = Dust.NewDustPerfect(Player.Center + offset + Player.velocity, Main.rand.NextBool() ? 160 : 307, new Vector2(velOffset.X, velOffset.Y));
|
||||
dust.noGravity = true;
|
||||
dust.velocity = velOffset;
|
||||
dust.alpha = 100;
|
||||
@@ -256,10 +256,10 @@ namespace CalamityMod.CalPlayer
|
||||
{
|
||||
float sparkscale = (Player.velocity.X * Player.direction * 0.07f);
|
||||
Vector2 SparkVelocity1 = Player.velocity.RotatedBy(Player.direction * 2, default) * 0.1f - Player.velocity / 2f;
|
||||
SparkParticle spark = new SparkParticle(Player.Center + Player.velocity.RotatedBy(2f * Player.direction) * 1.5f, SparkVelocity1, false, Main.rand.Next(11, 13), sparkscale, Main.rand.NextBool(2) ? Color.DarkTurquoise : Color.DodgerBlue);
|
||||
SparkParticle spark = new SparkParticle(Player.Center + Player.velocity.RotatedBy(2f * Player.direction) * 1.5f, SparkVelocity1, false, Main.rand.Next(11, 13), sparkscale, Main.rand.NextBool() ? Color.DarkTurquoise : Color.DodgerBlue);
|
||||
GeneralParticleHandler.SpawnParticle(spark);
|
||||
Vector2 SparkVelocity2 = Player.velocity.RotatedBy(Player.direction * -2, default) * 0.1f - Player.velocity / 2f;
|
||||
SparkParticle spark2 = new SparkParticle(Player.Center + Player.velocity.RotatedBy(-2f * Player.direction) * 1.5f, SparkVelocity2, false, Main.rand.Next(11, 13), sparkscale, Main.rand.NextBool(2) ? Color.DarkTurquoise : Color.DodgerBlue);
|
||||
SparkParticle spark2 = new SparkParticle(Player.Center + Player.velocity.RotatedBy(-2f * Player.direction) * 1.5f, SparkVelocity2, false, Main.rand.Next(11, 13), sparkscale, Main.rand.NextBool() ? Color.DarkTurquoise : Color.DodgerBlue);
|
||||
GeneralParticleHandler.SpawnParticle(spark2);
|
||||
}
|
||||
if (Player.miscCounter % 4 == 0 && Player.velocity != Vector2.Zero) //every other frame spawn the hitbox
|
||||
@@ -287,7 +287,7 @@ namespace CalamityMod.CalPlayer
|
||||
float rot = MathHelper.ToRadians(i * rotFactor);
|
||||
Vector2 offset = new Vector2(Player.velocity.X * Player.direction * 0.7f + 8f, 0).RotatedBy(rot * Main.rand.NextFloat(4f, 5f));
|
||||
Vector2 velOffset = Vector2.Zero;
|
||||
Dust dust = Dust.NewDustPerfect(Player.Center + offset + Player.velocity, Main.rand.NextBool(2) ? 35 : 127, new Vector2(velOffset.X, velOffset.Y));
|
||||
Dust dust = Dust.NewDustPerfect(Player.Center + offset + Player.velocity, Main.rand.NextBool() ? 35 : 127, new Vector2(velOffset.X, velOffset.Y));
|
||||
dust.noGravity = true;
|
||||
dust.velocity = velOffset;
|
||||
dust.alpha = 100;
|
||||
@@ -295,10 +295,10 @@ namespace CalamityMod.CalPlayer
|
||||
}
|
||||
float sparkscale = (Player.velocity.X * Player.direction * 0.08f);
|
||||
Vector2 SparkVelocity1 = Player.velocity.RotatedBy(Player.direction * -3, default) * 0.1f - Player.velocity / 2f;
|
||||
SparkParticle spark = new SparkParticle(Player.Center + Player.velocity.RotatedBy(2f * Player.direction) * 1.5f, SparkVelocity1, false, Main.rand.Next(11, 13), sparkscale, Main.rand.NextBool(2) ? Color.DarkOrange : Color.OrangeRed);
|
||||
SparkParticle spark = new SparkParticle(Player.Center + Player.velocity.RotatedBy(2f * Player.direction) * 1.5f, SparkVelocity1, false, Main.rand.Next(11, 13), sparkscale, Main.rand.NextBool() ? Color.DarkOrange : Color.OrangeRed);
|
||||
GeneralParticleHandler.SpawnParticle(spark);
|
||||
Vector2 SparkVelocity2 = Player.velocity.RotatedBy(Player.direction * 3, default) * 0.1f - Player.velocity / 2f;
|
||||
SparkParticle spark2 = new SparkParticle(Player.Center + Player.velocity.RotatedBy(-2f * Player.direction) * 1.5f, SparkVelocity2, false, Main.rand.Next(11, 13), sparkscale, Main.rand.NextBool(2) ? Color.DarkOrange : Color.OrangeRed);
|
||||
SparkParticle spark2 = new SparkParticle(Player.Center + Player.velocity.RotatedBy(-2f * Player.direction) * 1.5f, SparkVelocity2, false, Main.rand.Next(11, 13), sparkscale, Main.rand.NextBool() ? Color.DarkOrange : Color.OrangeRed);
|
||||
GeneralParticleHandler.SpawnParticle(spark2);
|
||||
|
||||
if (Player.miscCounter % 5 == 0 && Player.velocity != Vector2.Zero) //every other frame spawn the hitbox
|
||||
@@ -1556,7 +1556,7 @@ namespace CalamityMod.CalPlayer
|
||||
Main.dust[green].noGravity = true;
|
||||
Main.dust[green].scale *= 1f + (float)Main.rand.Next(40) * 0.01f;
|
||||
Main.dust[green].shader = GameShaders.Armor.GetSecondaryShader(Player.ArmorSetDye(), Player);
|
||||
if (Main.rand.NextBool(2))
|
||||
if (Main.rand.NextBool())
|
||||
Main.dust[green].scale *= 1f + (float)Main.rand.Next(40) * 0.01f;
|
||||
}
|
||||
}
|
||||
@@ -1587,7 +1587,7 @@ namespace CalamityMod.CalPlayer
|
||||
dust.noGravity = true;
|
||||
dust.scale *= 1f + (float)Main.rand.Next(40) * 0.01f;
|
||||
dust.shader = GameShaders.Armor.GetSecondaryShader(Player.ArmorSetDye(), Player);
|
||||
if (Main.rand.NextBool(2))
|
||||
if (Main.rand.NextBool())
|
||||
dust.scale *= 1f + (float)Main.rand.Next(40) * 0.01f;
|
||||
}
|
||||
}
|
||||
@@ -1658,7 +1658,7 @@ namespace CalamityMod.CalPlayer
|
||||
dust.noGravity = true;
|
||||
dust.scale *= 1f + (float)Main.rand.Next(40) * 0.01f;
|
||||
dust.shader = GameShaders.Armor.GetSecondaryShader(Player.ArmorSetDye(), Player);
|
||||
if (Main.rand.NextBool(2))
|
||||
if (Main.rand.NextBool())
|
||||
dust.scale *= 1f + (float)Main.rand.Next(40) * 0.01f;
|
||||
}
|
||||
}
|
||||
@@ -2503,9 +2503,12 @@ namespace CalamityMod.CalPlayer
|
||||
if (baroclaw)
|
||||
Player.GetDamage<GenericDamageClass>() += 0.1f;
|
||||
|
||||
if (aeroStone)
|
||||
if (aeroStone && !Player.slowFall)
|
||||
{
|
||||
Player.moveSpeed += (Player.equippedWings != null && Player.wingTime == 0f ? 0.25f : 0f);
|
||||
if (!Player.controlJump && Player.miscCounter % 5 == 0)
|
||||
{
|
||||
Player.wingTime += 1;
|
||||
}
|
||||
}
|
||||
|
||||
if (gShell)
|
||||
@@ -4096,12 +4099,22 @@ namespace CalamityMod.CalPlayer
|
||||
if (Player.whoAmI != Main.myPlayer || Main.netMode == NetmodeID.Server)
|
||||
return;
|
||||
|
||||
if (musicModDisplayDelay >= 0)
|
||||
if (startMessageDisplayDelay >= 0)
|
||||
{
|
||||
if (musicModDisplayDelay == 0)
|
||||
CalamityUtils.DisplayLocalizedText("Mods.CalamityMod.Misc.MusicModReminder");
|
||||
if (startMessageDisplayDelay == 0)
|
||||
{
|
||||
if (CalamityConfig.Instance.WikiStatusMessage)
|
||||
{
|
||||
CalamityUtils.DisplayLocalizedText("Mods.CalamityMod.Misc.WikiStatus1");
|
||||
CalamityUtils.DisplayLocalizedText("Mods.CalamityMod.Misc.WikiStatus2");
|
||||
}
|
||||
if (CalamityMod.Instance.musicMod is null && CalamityConfig.Instance.MusicModReminderMessage)
|
||||
{
|
||||
CalamityUtils.DisplayLocalizedText("Mods.CalamityMod.Misc.MusicModReminder");
|
||||
}
|
||||
}
|
||||
|
||||
--musicModDisplayDelay;
|
||||
--startMessageDisplayDelay;
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
@@ -129,23 +129,13 @@ namespace CalamityMod.CalPlayer
|
||||
target.AddBuff(BuffType<WhisperingDeath>(), 120);
|
||||
break;
|
||||
|
||||
case ItemID.FieryGreatsword:
|
||||
case ItemID.MoltenPickaxe:
|
||||
case ItemID.MoltenHamaxe:
|
||||
target.AddBuff(BuffID.OnFire, 120);
|
||||
break;
|
||||
|
||||
case ItemID.BladeofGrass:
|
||||
target.AddBuff(BuffID.Poisoned, 210);
|
||||
break;
|
||||
|
||||
case ItemID.BeeKeeper:
|
||||
target.AddBuff(BuffID.Poisoned, 240);
|
||||
break;
|
||||
|
||||
case ItemID.IceSickle:
|
||||
case ItemID.Frostbrand:
|
||||
target.AddBuff(BuffID.Frostburn, 300);
|
||||
target.AddBuff(BuffID.Frostburn2, 300);
|
||||
break;
|
||||
|
||||
case ItemID.IceBlade:
|
||||
@@ -162,7 +152,7 @@ namespace CalamityMod.CalPlayer
|
||||
{
|
||||
if (Main.rand.NextBool(4))
|
||||
target.AddBuff(BuffID.OnFire3, 360);
|
||||
else if (Main.rand.NextBool(2))
|
||||
else if (Main.rand.NextBool())
|
||||
target.AddBuff(BuffID.OnFire3, 240);
|
||||
else
|
||||
target.AddBuff(BuffID.OnFire3, 120);
|
||||
@@ -255,21 +245,6 @@ namespace CalamityMod.CalPlayer
|
||||
target.AddBuff(BuffID.OnFire3, 180);
|
||||
break;
|
||||
|
||||
case ProjectileID.Flamelash:
|
||||
target.AddBuff(BuffID.OnFire, 300);
|
||||
break;
|
||||
|
||||
case ProjectileID.BallofFire:
|
||||
target.AddBuff(BuffID.OnFire, 180);
|
||||
break;
|
||||
|
||||
case ProjectileID.Cascade:
|
||||
case ProjectileID.Sunfury:
|
||||
case ProjectileID.Flamarang:
|
||||
case ProjectileID.FireArrow:
|
||||
target.AddBuff(BuffID.OnFire, 120);
|
||||
break;
|
||||
|
||||
case ProjectileID.GolemFist:
|
||||
target.AddBuff(BuffType<ArmorCrunch>(), 180);
|
||||
break;
|
||||
@@ -278,21 +253,12 @@ namespace CalamityMod.CalPlayer
|
||||
target.AddBuff(BuffType<WhisperingDeath>(), 60);
|
||||
break;
|
||||
|
||||
case ProjectileID.PoisonedKnife:
|
||||
target.AddBuff(BuffID.Poisoned, 300);
|
||||
break;
|
||||
|
||||
case ProjectileID.ThornChakram:
|
||||
target.AddBuff(BuffID.Poisoned, 210);
|
||||
break;
|
||||
|
||||
case ProjectileID.Bee:
|
||||
case ProjectileID.GiantBee:
|
||||
target.AddBuff(BuffID.Poisoned, 120);
|
||||
break;
|
||||
|
||||
case ProjectileID.Wasp:
|
||||
target.AddBuff(BuffID.Poisoned, 120);
|
||||
target.AddBuff(BuffID.Venom, 60);
|
||||
break;
|
||||
|
||||
@@ -300,42 +266,32 @@ namespace CalamityMod.CalPlayer
|
||||
target.AddBuff(BuffType<Crumbling>(), 300);
|
||||
break;
|
||||
|
||||
case ProjectileID.FrostBlastFriendly:
|
||||
case ProjectileID.NorthPoleWeapon:
|
||||
target.AddBuff(BuffID.Frostburn, 300);
|
||||
break;
|
||||
|
||||
case ProjectileID.FrostBoltStaff:
|
||||
case ProjectileID.IceSickle:
|
||||
case ProjectileID.FrostBoltSword:
|
||||
case ProjectileID.FrostArrow:
|
||||
case ProjectileID.FrostArrow: // Ice Bow
|
||||
case ProjectileID.NorthPoleSpear:
|
||||
case ProjectileID.Amarok:
|
||||
target.AddBuff(BuffID.Frostburn, 180);
|
||||
target.AddBuff(BuffID.Frostburn2, 180);
|
||||
break;
|
||||
|
||||
case ProjectileID.Blizzard:
|
||||
case ProjectileID.Blizzard: // Blizzard Staff
|
||||
case ProjectileID.NorthPoleSnowflake:
|
||||
target.AddBuff(BuffID.Frostburn, 120);
|
||||
target.AddBuff(BuffID.Frostburn2, 120);
|
||||
break;
|
||||
|
||||
case ProjectileID.IceBolt:
|
||||
case ProjectileID.IceBolt: // Ice Blade
|
||||
case ProjectileID.FrostDaggerfish:
|
||||
case ProjectileID.FrostburnArrow:
|
||||
target.AddBuff(BuffID.Frostburn, 60);
|
||||
break;
|
||||
|
||||
case ProjectileID.IceBoomerang:
|
||||
if (Main.rand.NextBool())
|
||||
target.AddBuff(BuffID.Frostburn, 60);
|
||||
break;
|
||||
}
|
||||
|
||||
if ((proj.arrow && Player.hasMoltenQuiver) || hellfireTreads)
|
||||
{
|
||||
if (Main.rand.NextBool(4))
|
||||
target.AddBuff(BuffID.OnFire3, 360);
|
||||
else if (Main.rand.NextBool(2))
|
||||
else if (Main.rand.NextBool())
|
||||
target.AddBuff(BuffID.OnFire3, 240);
|
||||
else
|
||||
target.AddBuff(BuffID.OnFire3, 120);
|
||||
@@ -895,7 +851,7 @@ namespace CalamityMod.CalPlayer
|
||||
for (int dustexplode = 0; dustexplode < 360; dustexplode++)
|
||||
{
|
||||
Vector2 dustd = new Vector2(17f, 17f).RotatedBy(MathHelper.ToRadians(dustexplode));
|
||||
int d = Dust.NewDust(proj.Center, proj.width, proj.height, Main.rand.NextBool(2) ? DustType<AstralBlue>() : DustType<AstralOrange>(), dustd.X, dustd.Y, 100, default, 1f);
|
||||
int d = Dust.NewDust(proj.Center, proj.width, proj.height, Main.rand.NextBool() ? DustType<AstralBlue>() : DustType<AstralOrange>(), dustd.X, dustd.Y, 100, default, 1f);
|
||||
Main.dust[d].noGravity = true;
|
||||
Main.dust[d].position = proj.Center;
|
||||
Main.dust[d].velocity *= 0.1f;
|
||||
@@ -907,7 +863,7 @@ namespace CalamityMod.CalPlayer
|
||||
{
|
||||
for (int i = 0; i < 3; i++)
|
||||
{
|
||||
if (Main.rand.NextBool(2))
|
||||
if (Main.rand.NextBool())
|
||||
{
|
||||
int type = -1;
|
||||
switch (Main.rand.Next(15))
|
||||
@@ -1096,7 +1052,7 @@ namespace CalamityMod.CalPlayer
|
||||
}
|
||||
}
|
||||
if (voidOfExtinction)
|
||||
CalamityUtils.Inflict246DebuffsNPC(target, BuffType<BrimstoneFlames>());
|
||||
//CalamityUtils.Inflict246DebuffsNPC(target, BuffType<BrimstoneFlames>());
|
||||
if (frostFlare)
|
||||
CalamityUtils.Inflict246DebuffsNPC(target, BuffID.Frostburn2);
|
||||
if (omegaBlueChestplate)
|
||||
@@ -1216,7 +1172,7 @@ namespace CalamityMod.CalPlayer
|
||||
|
||||
if ((target.damage > 5 || target.boss) && !target.SpawnedFromStatue)
|
||||
{
|
||||
if (bloodflareThrowing && proj.CountsAsClass<ThrowingDamageClass>() && crit && Main.rand.NextBool(2))
|
||||
if (bloodflareThrowing && proj.CountsAsClass<ThrowingDamageClass>() && crit && Main.rand.NextBool())
|
||||
{
|
||||
float projHitMult = 0.03f;
|
||||
projHitMult -= proj.numHits * 0.015f;
|
||||
@@ -1249,7 +1205,7 @@ namespace CalamityMod.CalPlayer
|
||||
{
|
||||
if (manaOverloader && otherHealTypes)
|
||||
{
|
||||
if (Main.rand.NextBool(2))
|
||||
if (Main.rand.NextBool())
|
||||
{
|
||||
float healMult = 0.2f;
|
||||
healMult -= proj.numHits * 0.05f;
|
||||
|
||||
@@ -46,7 +46,7 @@ namespace CalamityMod.CalPlayer.Dashes
|
||||
holyFireDashDust.scale *= Main.rand.NextFloat(1f, 1.2f);
|
||||
holyFireDashDust.shader = GameShaders.Armor.GetSecondaryShader(player.cShield, player);
|
||||
holyFireDashDust.noGravity = true;
|
||||
if (Main.rand.NextBool(2))
|
||||
if (Main.rand.NextBool())
|
||||
holyFireDashDust.fadeIn = 0.5f;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -39,7 +39,7 @@ namespace CalamityMod.CalPlayer.Dashes
|
||||
iceDashDust.scale *= Main.rand.NextFloat(1f, 1.2f);
|
||||
iceDashDust.shader = GameShaders.Armor.GetSecondaryShader(player.cShield, player);
|
||||
iceDashDust.noGravity = true;
|
||||
if (Main.rand.NextBool(2))
|
||||
if (Main.rand.NextBool())
|
||||
iceDashDust.fadeIn = 0.5f;
|
||||
}
|
||||
|
||||
|
||||
@@ -46,7 +46,7 @@ namespace CalamityMod.CalPlayer.Dashes
|
||||
holyFireDashDust.scale *= Main.rand.NextFloat(1f, 1.2f);
|
||||
holyFireDashDust.shader = GameShaders.Armor.GetSecondaryShader(player.cShield, player);
|
||||
holyFireDashDust.noGravity = true;
|
||||
if (Main.rand.NextBool(2))
|
||||
if (Main.rand.NextBool())
|
||||
holyFireDashDust.fadeIn = 0.5f;
|
||||
}
|
||||
|
||||
|
||||
@@ -44,7 +44,7 @@ namespace CalamityMod.CalPlayer.Dashes
|
||||
plagueDashDust.scale *= Main.rand.NextFloat(1f, 1.2f);
|
||||
plagueDashDust.shader = GameShaders.Armor.GetSecondaryShader(player.ArmorSetDye(), player);
|
||||
plagueDashDust.noGravity = true;
|
||||
if (Main.rand.NextBool(2))
|
||||
if (Main.rand.NextBool())
|
||||
plagueDashDust.fadeIn = 0.5f;
|
||||
}
|
||||
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
using CalamityMod.Balancing;
|
||||
using CalamityMod.Items.Fishing;
|
||||
using CalamityMod.Items.Materials;
|
||||
using CalamityMod.Items.TreasureBags.MiscGrabBags;
|
||||
using CalamityMod.NPCs.AcidRain;
|
||||
using CalamityMod.NPCs.NormalNPCs;
|
||||
using Microsoft.Xna.Framework;
|
||||
@@ -288,37 +290,391 @@ namespace CalamityMod.ILEditing
|
||||
orig(self, angler, questItemType);
|
||||
|
||||
EntitySource_Gift source = new EntitySource_Gift(angler);
|
||||
int questsDone = self.anglerQuestsFinished + Main.rand.Next(101);
|
||||
int questsDone = self.anglerQuestsFinished;
|
||||
float rarityReduction = 1f;
|
||||
rarityReduction = (questsDone <= 50) ? (rarityReduction - questsDone * 0.01f) : ((questsDone <= 100) ? (0.5f - (questsDone - 50) * 0.005f) : ((questsDone > 150) ? 0.15f : (0.25f - (questsDone - 100) * 0.002f)));
|
||||
rarityReduction *= 0.9f;
|
||||
rarityReduction *= (float)(self.currentShoppingSettings.PriceAdjustment + 1.0) / 2f;
|
||||
|
||||
if (rarityReduction < 0.1f)
|
||||
rarityReduction = 0.1f;
|
||||
|
||||
List<Item> rewardItems = new List<Item>();
|
||||
|
||||
GetItemSettings anglerRewardSettings = GetItemSettings.NPCEntityToPlayerInventorySettings;
|
||||
|
||||
Item item = new Item();
|
||||
item.SetDefaults(ItemID.MasterBait);
|
||||
item.stack += 5;
|
||||
if (item.stack > 0)
|
||||
rewardItems.Add(item);
|
||||
|
||||
Item item2 = self.GetItem(self.whoAmI, item, GetItemSettings.NPCEntityToPlayerInventorySettings);
|
||||
if (item2.stack > 0)
|
||||
rewardItems.Add(item2);
|
||||
// GUARANTEED REWARDS
|
||||
|
||||
item = new Item();
|
||||
item.SetDefaults(ItemID.GoldCoin);
|
||||
item.stack = 10;
|
||||
// BAIT
|
||||
switch (questsDone)
|
||||
{
|
||||
case 0:
|
||||
case 1:
|
||||
case 2:
|
||||
case 3:
|
||||
case 4:
|
||||
item = new Item();
|
||||
item.SetDefaults(ItemID.Stinkbug);
|
||||
item.stack = Main.rand.Next(2, 6);
|
||||
break;
|
||||
|
||||
case 5:
|
||||
case 6:
|
||||
case 7:
|
||||
case 8:
|
||||
case 9:
|
||||
item = new Item();
|
||||
item.SetDefaults(ItemID.ApprenticeBait);
|
||||
item.stack = Main.rand.Next(2, 6);
|
||||
break;
|
||||
|
||||
case 10:
|
||||
case 11:
|
||||
case 12:
|
||||
case 13:
|
||||
case 14:
|
||||
case 15:
|
||||
item = new Item();
|
||||
item.SetDefaults(Main.rand.NextBool() ? ItemID.Worm : ItemID.Maggot);
|
||||
item.stack = Main.rand.Next(2, 6);
|
||||
break;
|
||||
|
||||
case 16:
|
||||
case 17:
|
||||
case 18:
|
||||
case 19:
|
||||
case 20:
|
||||
item = new Item();
|
||||
item.SetDefaults(ItemID.JourneymanBait);
|
||||
item.stack = Main.rand.Next(2, 6);
|
||||
break;
|
||||
|
||||
case 21:
|
||||
case 22:
|
||||
case 23:
|
||||
case 24:
|
||||
case 25:
|
||||
case 26:
|
||||
item = new Item();
|
||||
item.SetDefaults(Main.rand.NextBool() ? ItemID.EnchantedNightcrawler : ItemID.Buggy);
|
||||
item.stack = Main.rand.Next(2, 6);
|
||||
break;
|
||||
|
||||
case 27:
|
||||
case 28:
|
||||
case 29:
|
||||
case 30:
|
||||
item = new Item();
|
||||
item.SetDefaults(ItemID.MasterBait);
|
||||
item.stack = Main.rand.Next(2, 6);
|
||||
break;
|
||||
|
||||
default:
|
||||
//item = new Item();
|
||||
//item.SetDefaults(ModContent.ItemType<GrandMarquisBait>());
|
||||
//item.stack = Main.rand.Next(2, 6);
|
||||
break;
|
||||
}
|
||||
|
||||
item.position = self.Center;
|
||||
Item item2 = self.GetItem(self.whoAmI, item, anglerRewardSettings);
|
||||
rewardItems.Add(item2);
|
||||
|
||||
// COINS
|
||||
switch (questsDone)
|
||||
{
|
||||
case 0:
|
||||
case 1:
|
||||
case 2:
|
||||
case 3:
|
||||
case 4:
|
||||
item = new Item();
|
||||
item.SetDefaults(ItemID.GoldCoin);
|
||||
break;
|
||||
|
||||
case 5:
|
||||
case 6:
|
||||
case 7:
|
||||
case 8:
|
||||
case 9:
|
||||
item = new Item();
|
||||
item.SetDefaults(ItemID.GoldCoin);
|
||||
item.stack = 2;
|
||||
item = new Item();
|
||||
item.SetDefaults(ItemID.SilverCoin);
|
||||
item.stack = 50;
|
||||
break;
|
||||
|
||||
case 10:
|
||||
case 11:
|
||||
case 12:
|
||||
case 13:
|
||||
case 14:
|
||||
item = new Item();
|
||||
item.SetDefaults(ItemID.GoldCoin);
|
||||
item.stack = 4;
|
||||
break;
|
||||
|
||||
case 15:
|
||||
case 16:
|
||||
case 17:
|
||||
case 18:
|
||||
case 19:
|
||||
item = new Item();
|
||||
item.SetDefaults(ItemID.GoldCoin);
|
||||
item.stack = 6;
|
||||
break;
|
||||
|
||||
case 20:
|
||||
case 21:
|
||||
case 22:
|
||||
case 23:
|
||||
case 24:
|
||||
case 25:
|
||||
case 26:
|
||||
case 27:
|
||||
case 28:
|
||||
case 29:
|
||||
item = new Item();
|
||||
item.SetDefaults(ItemID.GoldCoin);
|
||||
item.stack = 8;
|
||||
break;
|
||||
|
||||
default:
|
||||
item = new Item();
|
||||
item.SetDefaults(ItemID.GoldCoin);
|
||||
item.stack = 10;
|
||||
break;
|
||||
}
|
||||
|
||||
item.position = self.Center;
|
||||
item2 = self.GetItem(self.whoAmI, item, anglerRewardSettings);
|
||||
if (item2.stack > 0)
|
||||
rewardItems.Add(item2);
|
||||
|
||||
rewardItems.Add(item2);
|
||||
|
||||
// PRIMARY ITEMS
|
||||
switch (questsDone)
|
||||
{
|
||||
case 0:
|
||||
case 1:
|
||||
item = new Item();
|
||||
item.SetDefaults(ModContent.ItemType<Spadefish>());
|
||||
rewardItems.Add(item);
|
||||
break;
|
||||
|
||||
case 2:
|
||||
item = new Item();
|
||||
item.SetDefaults(ModContent.ItemType<StuffedFish>());
|
||||
item.stack = Main.rand.Next(4, 10);
|
||||
rewardItems.Add(item);
|
||||
break;
|
||||
|
||||
case 3:
|
||||
item = new Item();
|
||||
item.SetDefaults(ItemID.HighTestFishingLine);
|
||||
rewardItems.Add(item);
|
||||
break;
|
||||
|
||||
case 4:
|
||||
item = new Item();
|
||||
item.SetDefaults(ItemID.FishHook);
|
||||
rewardItems.Add(item);
|
||||
break;
|
||||
|
||||
case 5:
|
||||
item = new Item();
|
||||
item.SetDefaults(ItemID.FuzzyCarrot);
|
||||
rewardItems.Add(item);
|
||||
break;
|
||||
|
||||
case 6:
|
||||
item = new Item();
|
||||
item.SetDefaults(ItemID.FishermansGuide);
|
||||
rewardItems.Add(item);
|
||||
break;
|
||||
|
||||
case 7:
|
||||
item = new Item();
|
||||
item.SetDefaults(ItemID.FishCostumeMask);
|
||||
rewardItems.Add(item);
|
||||
item = new Item();
|
||||
item.SetDefaults(ItemID.FishCostumeShirt);
|
||||
rewardItems.Add(item);
|
||||
item = new Item();
|
||||
item.SetDefaults(ItemID.FishCostumeFinskirt);
|
||||
rewardItems.Add(item);
|
||||
item = new Item();
|
||||
item.SetDefaults(ModContent.ItemType<SandyAnglingKit>());
|
||||
rewardItems.Add(item);
|
||||
break;
|
||||
|
||||
case 8:
|
||||
item = new Item();
|
||||
item.SetDefaults(ItemID.FishMinecart);
|
||||
rewardItems.Add(item);
|
||||
break;
|
||||
|
||||
case 9:
|
||||
item = new Item();
|
||||
item.SetDefaults(ItemID.SailfishBoots);
|
||||
rewardItems.Add(item);
|
||||
break;
|
||||
|
||||
case 10:
|
||||
item = new Item();
|
||||
item.SetDefaults(ItemID.AnglerHat);
|
||||
rewardItems.Add(item);
|
||||
item = new Item();
|
||||
item.SetDefaults(ItemID.AnglerVest);
|
||||
rewardItems.Add(item);
|
||||
item = new Item();
|
||||
item.SetDefaults(ItemID.AnglerPants);
|
||||
rewardItems.Add(item);
|
||||
break;
|
||||
|
||||
case 11:
|
||||
item = new Item();
|
||||
item.SetDefaults(ItemID.WeatherRadio);
|
||||
rewardItems.Add(item);
|
||||
break;
|
||||
|
||||
case 12:
|
||||
item = new Item();
|
||||
item.SetDefaults(ItemID.FishingBobber);
|
||||
rewardItems.Add(item);
|
||||
break;
|
||||
|
||||
case 13:
|
||||
item = new Item();
|
||||
item.SetDefaults(ItemID.SeashellHairpin);
|
||||
rewardItems.Add(item);
|
||||
item = new Item();
|
||||
item.SetDefaults(ItemID.MermaidAdornment);
|
||||
rewardItems.Add(item);
|
||||
item = new Item();
|
||||
item.SetDefaults(ItemID.MermaidTail);
|
||||
rewardItems.Add(item);
|
||||
item = new Item();
|
||||
item.SetDefaults(ModContent.ItemType<SandyAnglingKit>());
|
||||
rewardItems.Add(item);
|
||||
break;
|
||||
|
||||
case 14:
|
||||
item = new Item();
|
||||
item.SetDefaults(ItemID.Sextant);
|
||||
rewardItems.Add(item);
|
||||
break;
|
||||
|
||||
case 15:
|
||||
item = new Item();
|
||||
item.SetDefaults(ItemID.TackleBox);
|
||||
rewardItems.Add(item);
|
||||
break;
|
||||
|
||||
case 16:
|
||||
item = new Item();
|
||||
item.SetDefaults(ItemID.SuperAbsorbantSponge);
|
||||
rewardItems.Add(item);
|
||||
break;
|
||||
|
||||
case 17:
|
||||
item = new Item();
|
||||
item.SetDefaults(ItemID.HoneyAbsorbantSponge);
|
||||
rewardItems.Add(item);
|
||||
break;
|
||||
|
||||
case 18:
|
||||
item = new Item();
|
||||
item.SetDefaults(ItemID.MagicConch);
|
||||
rewardItems.Add(item);
|
||||
break;
|
||||
|
||||
case 19:
|
||||
item = new Item();
|
||||
item.SetDefaults(ItemID.DemonConch);
|
||||
rewardItems.Add(item);
|
||||
break;
|
||||
|
||||
case 20:
|
||||
item = new Item();
|
||||
item.SetDefaults(ItemID.AnglerEarring);
|
||||
rewardItems.Add(item);
|
||||
break;
|
||||
|
||||
case 21:
|
||||
item = new Item();
|
||||
item.SetDefaults(ItemID.LavaFishingHook);
|
||||
rewardItems.Add(item);
|
||||
break;
|
||||
|
||||
case 22:
|
||||
item = new Item();
|
||||
item.SetDefaults(ItemID.HotlineFishingHook);
|
||||
rewardItems.Add(item);
|
||||
break;
|
||||
|
||||
case 23:
|
||||
item = new Item();
|
||||
item.SetDefaults(ItemID.FrogLeg);
|
||||
rewardItems.Add(item);
|
||||
break;
|
||||
|
||||
case 24:
|
||||
item = new Item();
|
||||
item.SetDefaults(ItemID.SuperheatedBlood);
|
||||
rewardItems.Add(item);
|
||||
break;
|
||||
|
||||
case 25:
|
||||
item = new Item();
|
||||
item.SetDefaults(ItemID.BottomlessBucket);
|
||||
rewardItems.Add(item);
|
||||
break;
|
||||
|
||||
case 26:
|
||||
item = new Item();
|
||||
item.SetDefaults(ItemID.Sundial);
|
||||
rewardItems.Add(item);
|
||||
break;
|
||||
|
||||
case 27:
|
||||
item = new Item();
|
||||
item.SetDefaults(ItemID.BottomlessHoneyBucket);
|
||||
rewardItems.Add(item);
|
||||
break;
|
||||
|
||||
case 28:
|
||||
item = new Item();
|
||||
item.SetDefaults(ItemID.GoldenBugNet);
|
||||
rewardItems.Add(item);
|
||||
break;
|
||||
|
||||
case 29:
|
||||
item = new Item();
|
||||
item.SetDefaults(ItemID.BottomlessLavaBucket);
|
||||
rewardItems.Add(item);
|
||||
break;
|
||||
|
||||
case 30:
|
||||
item = new Item();
|
||||
item.SetDefaults(ItemID.GoldenFishingRod);
|
||||
rewardItems.Add(item);
|
||||
break;
|
||||
}
|
||||
|
||||
// RANDOM DROPS
|
||||
|
||||
// Angling Kits
|
||||
if (Main.rand.NextBool((int)(12f * rarityReduction)) && questsDone > 30)
|
||||
{
|
||||
item = new Item();
|
||||
item.SetDefaults(Main.hardMode ? ModContent.ItemType<BleachedAnglingKit>() : ModContent.ItemType<SandyAnglingKit>());
|
||||
rewardItems.Add(item);
|
||||
}
|
||||
|
||||
// Golden Fishing Rod
|
||||
if (Main.rand.NextBool((int)(500f * rarityReduction)))
|
||||
if (Main.rand.NextBool((int)(500f * rarityReduction)) && questsDone > 30)
|
||||
{
|
||||
item = new Item();
|
||||
item.SetDefaults(ItemID.GoldenFishingRod);
|
||||
@@ -326,7 +682,7 @@ namespace CalamityMod.ILEditing
|
||||
}
|
||||
|
||||
// Hotline Fishing Hook
|
||||
if (Main.rand.NextBool((int)(200f * rarityReduction)) || self.anglerQuestsFinished == 22)
|
||||
if (Main.rand.NextBool((int)(200f * rarityReduction)) && questsDone > 22)
|
||||
{
|
||||
item = new Item();
|
||||
item.SetDefaults(ItemID.HotlineFishingHook);
|
||||
@@ -334,7 +690,7 @@ namespace CalamityMod.ILEditing
|
||||
}
|
||||
|
||||
// Angler Set
|
||||
if (Main.rand.NextBool((int)(150f * rarityReduction)))
|
||||
if (Main.rand.NextBool((int)(150f * rarityReduction)) && questsDone > 10)
|
||||
{
|
||||
item = new Item();
|
||||
item.SetDefaults(ItemID.AnglerHat);
|
||||
@@ -348,7 +704,7 @@ namespace CalamityMod.ILEditing
|
||||
}
|
||||
|
||||
// Mermaid Set
|
||||
if (Main.rand.NextBool((int)(150f * rarityReduction)) || self.anglerQuestsFinished == 11)
|
||||
if (Main.rand.NextBool((int)(150f * rarityReduction)) && questsDone > 13)
|
||||
{
|
||||
item = new Item();
|
||||
item.SetDefaults(ItemID.SeashellHairpin);
|
||||
@@ -362,7 +718,7 @@ namespace CalamityMod.ILEditing
|
||||
}
|
||||
|
||||
// Fish Set
|
||||
if (Main.rand.NextBool((int)(150f * rarityReduction)) || self.anglerQuestsFinished == 8)
|
||||
if (Main.rand.NextBool((int)(150f * rarityReduction)) && questsDone > 7)
|
||||
{
|
||||
item = new Item();
|
||||
item.SetDefaults(ItemID.FishCostumeMask);
|
||||
@@ -376,7 +732,7 @@ namespace CalamityMod.ILEditing
|
||||
}
|
||||
|
||||
// Fin Wings
|
||||
if (Main.rand.NextBool((int)(140f * rarityReduction)) && Main.hardMode)
|
||||
if (Main.rand.NextBool((int)(140f * rarityReduction)) && Main.hardMode && questsDone > 10)
|
||||
{
|
||||
item = new Item();
|
||||
item.SetDefaults(ItemID.FinWings);
|
||||
@@ -384,7 +740,7 @@ namespace CalamityMod.ILEditing
|
||||
}
|
||||
|
||||
// Bottomless Water Bucket
|
||||
if (Main.rand.NextBool((int)(140f * rarityReduction)))
|
||||
if (Main.rand.NextBool((int)(140f * rarityReduction)) && questsDone > 25)
|
||||
{
|
||||
item = new Item();
|
||||
item.SetDefaults(ItemID.BottomlessBucket);
|
||||
@@ -392,15 +748,39 @@ namespace CalamityMod.ILEditing
|
||||
}
|
||||
|
||||
// Bottomless Honey Bucket
|
||||
/*if (Main.rand.NextBool((int)(140f * rarityReduction)) || self.anglerQuestsFinished == 29)
|
||||
if (Main.rand.NextBool((int)(140f * rarityReduction)) && questsDone > 27)
|
||||
{
|
||||
item = new Item();
|
||||
item.SetDefaults(ItemID.BottomlessHoneyBucket);
|
||||
rewardItems.Add(item);
|
||||
}*/
|
||||
}
|
||||
|
||||
// Bottomless Lava Bucket
|
||||
if (Main.rand.NextBool((int)(140f * rarityReduction)) && questsDone > 29)
|
||||
{
|
||||
item = new Item();
|
||||
item.SetDefaults(ItemID.BottomlessLavaBucket);
|
||||
rewardItems.Add(item);
|
||||
}
|
||||
|
||||
// Magic Conch
|
||||
if (Main.rand.NextBool((int)(140f * rarityReduction)) && questsDone > 18)
|
||||
{
|
||||
item = new Item();
|
||||
item.SetDefaults(ItemID.MagicConch);
|
||||
rewardItems.Add(item);
|
||||
}
|
||||
|
||||
// Demon Conch
|
||||
if (Main.rand.NextBool((int)(140f * rarityReduction)) && questsDone > 19)
|
||||
{
|
||||
item = new Item();
|
||||
item.SetDefaults(ItemID.DemonConch);
|
||||
rewardItems.Add(item);
|
||||
}
|
||||
|
||||
// Super Absorbant Sponge
|
||||
if (Main.rand.NextBool((int)(140f * rarityReduction)) || self.anglerQuestsFinished == 17)
|
||||
if (Main.rand.NextBool((int)(140f * rarityReduction)) && questsDone > 16)
|
||||
{
|
||||
item = new Item();
|
||||
item.SetDefaults(ItemID.SuperAbsorbantSponge);
|
||||
@@ -408,15 +788,15 @@ namespace CalamityMod.ILEditing
|
||||
}
|
||||
|
||||
// Honey Absorbant Sponge
|
||||
/*if (Main.rand.NextBool((int)(140f * rarityReduction)) || self.anglerQuestsFinished == 19)
|
||||
if (Main.rand.NextBool((int)(140f * rarityReduction)) && questsDone > 17)
|
||||
{
|
||||
item = new Item();
|
||||
item.SetDefaults(ItemID.SuperAbsorbantSponge);
|
||||
rewardItems.Add(item);
|
||||
}*/
|
||||
}
|
||||
|
||||
// Golden Bug Net
|
||||
if (Main.rand.NextBool((int)(140f * rarityReduction)) || self.anglerQuestsFinished == 27)
|
||||
if (Main.rand.NextBool((int)(140f * rarityReduction)) && questsDone > 28)
|
||||
{
|
||||
item = new Item();
|
||||
item.SetDefaults(ItemID.GoldenBugNet);
|
||||
@@ -424,7 +804,7 @@ namespace CalamityMod.ILEditing
|
||||
}
|
||||
|
||||
// Fish Hook
|
||||
if (Main.rand.NextBool((int)(120f * rarityReduction)) || self.anglerQuestsFinished == 4)
|
||||
if (Main.rand.NextBool((int)(120f * rarityReduction)) && questsDone > 4)
|
||||
{
|
||||
item = new Item();
|
||||
item.SetDefaults(ItemID.FishHook);
|
||||
@@ -432,15 +812,23 @@ namespace CalamityMod.ILEditing
|
||||
}
|
||||
|
||||
// Minecarp
|
||||
if (Main.rand.NextBool((int)(120f * rarityReduction)) || self.anglerQuestsFinished == 9)
|
||||
if (Main.rand.NextBool((int)(120f * rarityReduction)) && questsDone > 8)
|
||||
{
|
||||
item = new Item();
|
||||
item.SetDefaults(ItemID.FishMinecart);
|
||||
rewardItems.Add(item);
|
||||
}
|
||||
|
||||
// Lava Shark
|
||||
if (Main.rand.NextBool((int)(120f * rarityReduction)) && questsDone > 24)
|
||||
{
|
||||
item = new Item();
|
||||
item.SetDefaults(ItemID.SuperheatedBlood);
|
||||
rewardItems.Add(item);
|
||||
}
|
||||
|
||||
// High Test Fishing Line
|
||||
if (Main.rand.NextBool((int)(80f * rarityReduction)) || self.anglerQuestsFinished == 2)
|
||||
if (Main.rand.NextBool((int)(80f * rarityReduction)) && questsDone > 3)
|
||||
{
|
||||
item = new Item();
|
||||
item.SetDefaults(ItemID.HighTestFishingLine);
|
||||
@@ -448,15 +836,23 @@ namespace CalamityMod.ILEditing
|
||||
}
|
||||
|
||||
// Angler Earring
|
||||
if (Main.rand.NextBool((int)(80f * rarityReduction)) || self.anglerQuestsFinished == 7)
|
||||
if (Main.rand.NextBool((int)(80f * rarityReduction)) && questsDone > 20)
|
||||
{
|
||||
item = new Item();
|
||||
item.SetDefaults(ItemID.AnglerEarring);
|
||||
rewardItems.Add(item);
|
||||
}
|
||||
|
||||
// Lavaproof Fishing Hook
|
||||
if (Main.rand.NextBool((int)(80f * rarityReduction)) && questsDone > 21)
|
||||
{
|
||||
item = new Item();
|
||||
item.SetDefaults(ItemID.LavaFishingHook);
|
||||
rewardItems.Add(item);
|
||||
}
|
||||
|
||||
// Tackle Box
|
||||
if (Main.rand.NextBool((int)(80f * rarityReduction)) || self.anglerQuestsFinished == 12)
|
||||
if (Main.rand.NextBool((int)(80f * rarityReduction)) && questsDone > 15)
|
||||
{
|
||||
item = new Item();
|
||||
item.SetDefaults(ItemID.TackleBox);
|
||||
@@ -464,7 +860,7 @@ namespace CalamityMod.ILEditing
|
||||
}
|
||||
|
||||
// Fisherman's Pocket Guide
|
||||
if (Main.rand.NextBool((int)(60f * rarityReduction)) || self.anglerQuestsFinished == 1)
|
||||
if (Main.rand.NextBool((int)(60f * rarityReduction)) && questsDone > 6)
|
||||
{
|
||||
item = new Item();
|
||||
item.SetDefaults(ItemID.FishermansGuide);
|
||||
@@ -472,7 +868,7 @@ namespace CalamityMod.ILEditing
|
||||
}
|
||||
|
||||
// Weather Radio
|
||||
if (Main.rand.NextBool((int)(60f * rarityReduction)) || self.anglerQuestsFinished == 3)
|
||||
if (Main.rand.NextBool((int)(60f * rarityReduction)) && questsDone > 11)
|
||||
{
|
||||
item = new Item();
|
||||
item.SetDefaults(ItemID.WeatherRadio);
|
||||
@@ -480,7 +876,7 @@ namespace CalamityMod.ILEditing
|
||||
}
|
||||
|
||||
// Sextant
|
||||
if (Main.rand.NextBool((int)(60f * rarityReduction)) || self.anglerQuestsFinished == 6)
|
||||
if (Main.rand.NextBool((int)(60f * rarityReduction)) && questsDone > 14)
|
||||
{
|
||||
item = new Item();
|
||||
item.SetDefaults(ItemID.Sextant);
|
||||
@@ -488,12 +884,12 @@ namespace CalamityMod.ILEditing
|
||||
}
|
||||
|
||||
// Fishing Bobber
|
||||
/*if (Main.rand.NextBool((int)(50f * rarityReduction)) || self.anglerQuestsFinished == 13)
|
||||
if (Main.rand.NextBool((int)(50f * rarityReduction)) && questsDone > 12)
|
||||
{
|
||||
item = new Item();
|
||||
item.SetDefaults(ItemID.FishingBobber);
|
||||
rewardItems.Add(item);
|
||||
}*/
|
||||
}
|
||||
|
||||
PlayerLoader.AnglerQuestReward(self, rarityReduction, rewardItems);
|
||||
|
||||
|
||||
@@ -29,8 +29,8 @@ namespace CalamityMod.Items.Accessories
|
||||
public override void UpdateAccessory(Player player, bool hideVisual)
|
||||
{
|
||||
player.Calamity().aeroStone = true;
|
||||
player.wingTimeMax += 45;
|
||||
|
||||
player.wingTimeMax += 35;
|
||||
|
||||
}
|
||||
|
||||
public override bool PreDrawInInventory(SpriteBatch spriteBatch, Vector2 position, Rectangle frame, Color drawColor, Color itemColor, Vector2 origin, float scale)
|
||||
|
||||
@@ -58,7 +58,7 @@ namespace CalamityMod.Items.Accessories
|
||||
// On grass, grow flowers.
|
||||
if (groundTile.TileType == TileID.Grass)
|
||||
{
|
||||
if (Main.rand.NextBool(2))
|
||||
if (Main.rand.NextBool())
|
||||
{
|
||||
walkTile.Get<TileWallWireStateData>().HasTile = true;
|
||||
walkTile.TileType = TileID.Plants;
|
||||
@@ -84,7 +84,7 @@ namespace CalamityMod.Items.Accessories
|
||||
// On hallowed grass, grow hallowed flowers.
|
||||
else if (groundTile.TileType == TileID.HallowedGrass)
|
||||
{
|
||||
if (Main.rand.NextBool(2))
|
||||
if (Main.rand.NextBool())
|
||||
{
|
||||
walkTile.Get<TileWallWireStateData>().HasTile = true;
|
||||
walkTile.TileType = TileID.HallowedPlants;
|
||||
|
||||
@@ -5,6 +5,7 @@ using CalamityMod.Items.Materials;
|
||||
using CalamityMod.Rarities;
|
||||
using CalamityMod.Tiles.Furniture.CraftingStations;
|
||||
using Terraria;
|
||||
using Terraria.DataStructures;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
@@ -15,13 +16,14 @@ namespace CalamityMod.Items.Accessories
|
||||
public new string LocalizationCategory => "Items.Accessories";
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
//subject to change to be "cooler"
|
||||
Main.RegisterItemAnimation(Item.type, new DrawAnimationVertical(6, 10));
|
||||
ItemID.Sets.AnimatesAsSoul[Type] = true;
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 28;
|
||||
Item.height = 32;
|
||||
Item.width = 50;
|
||||
Item.height = 52;
|
||||
Item.value = CalamityGlobalItem.Rarity14BuyPrice;
|
||||
Item.accessory = true;
|
||||
Item.rare = ModContent.RarityType<DarkBlue>();
|
||||
|
||||
|
Before Width: | Height: | Size: 829 B After Width: | Height: | Size: 2.2 KiB |
@@ -30,7 +30,6 @@ namespace CalamityMod.Items.Accessories
|
||||
public override void UpdateAccessory(Player player, bool hideVisual)
|
||||
{
|
||||
CalamityPlayer modPlayer = player.Calamity();
|
||||
player.strongBees = true;
|
||||
modPlayer.uberBees = true;
|
||||
modPlayer.alchFlask = true;
|
||||
player.buffImmune[ModContent.BuffType<Plague>()] = true;
|
||||
|
||||
@@ -65,13 +65,18 @@ namespace CalamityMod.Items.Accessories
|
||||
{
|
||||
CalamityPlayer localModPlayer = Main.LocalPlayer.Calamity();
|
||||
DetermineTransformationEligibility(localModPlayer.Player);
|
||||
var psc = localModPlayer.profanedCrystalBuffs;
|
||||
scale += ((ProfanedSoulCrystalState)localModPlayer.pscState) == ProfanedSoulCrystalState.Empowered ? 0.05f : psc ? 0.025f : 0f;
|
||||
var psState = (int)GetPscStateFor(localModPlayer.Player, localModPlayer.profanedCrystalAnim >= 0);
|
||||
var psc = localModPlayer.profanedCrystalBuffs || (localModPlayer.profanedCrystalAnim >= 0 && psState >= (int)ProfanedSoulCrystalState.Buffs);
|
||||
|
||||
scale += ((ProfanedSoulCrystalState)psState) == ProfanedSoulCrystalState.Empowered ? 0.05f : psc ? 0.025f : 0f;
|
||||
if (localModPlayer.profanedCrystalAnim >= 0)
|
||||
scale = MathHelper.Lerp(0f, scale, ((float)maxPscAnimTime - (float)localModPlayer.profanedCrystalAnim) / (float)maxPscAnimTime); //i don't like casting this many times, i'm not a fucking wizard
|
||||
|
||||
float visualShieldStrength = 1f;
|
||||
if (!isVanityOnly)
|
||||
{
|
||||
float max = psc ? ProfanedSoulCrystal.ShieldDurabilityMax : ShieldDurabilityMax;
|
||||
float shieldDurabilityRatio = localModPlayer.pSoulShieldDurability / (float)ShieldDurabilityMax;
|
||||
float shieldDurabilityRatio = localModPlayer.pSoulShieldDurability / max;
|
||||
visualShieldStrength = MathF.Pow(shieldDurabilityRatio, 0.5f);
|
||||
}
|
||||
|
||||
@@ -95,8 +100,9 @@ namespace CalamityMod.Items.Accessories
|
||||
shieldEffect.Parameters["shieldEdgeBlendStrenght"].SetValue(4f);
|
||||
|
||||
// Profaned Soul shields are not team specific
|
||||
Color shieldColor = GetColorForPsc(localModPlayer.pscState, Main.dayTime);
|
||||
if (modPlayer.pscState >= (int)(ProfanedSoulCrystalState.Buffs))
|
||||
|
||||
Color shieldColor = GetColorForPsc(psState, Main.dayTime);
|
||||
if (psState >= (int)(ProfanedSoulCrystalState.Buffs))
|
||||
{
|
||||
bool tester = contributorNames.Any(name => name.Equals(localModPlayer.Player.name));
|
||||
shieldColor = tester ? CalamityUtils.ColorSwap(new Color(255, 166, 0), new Color(25, 250, 25) * 0.8f, 6f) :
|
||||
|
||||
@@ -27,7 +27,8 @@ namespace CalamityMod.Items.Accessories
|
||||
public static int ShieldRechargeDelay = CalamityUtils.SecondsToFrames(5);
|
||||
public static int TotalShieldRechargeTime = CalamityUtils.SecondsToFrames(4);
|
||||
|
||||
internal const int maxMinionRequirement = 10;
|
||||
public const int maxMinionRequirement = 10;
|
||||
public const int maxPscAnimTime = 120;
|
||||
|
||||
public enum ProfanedSoulCrystalState
|
||||
{
|
||||
@@ -37,11 +38,20 @@ namespace CalamityMod.Items.Accessories
|
||||
Empowered //psc but no other minions, healer guardian functionality, inherits all other functionality (except vanity) and goes even further beyond, any remaining attack changes are here
|
||||
}
|
||||
|
||||
private static ProfanedSoulCrystalState GetPscStateFor(Player player)
|
||||
internal static ProfanedSoulCrystalState GetPscStateFor(Player player, bool ignoreNoBuffs = false)
|
||||
{
|
||||
if (!player.Calamity().profanedCrystalBuffs)
|
||||
if (!player.Calamity().profanedCrystalBuffs && !ignoreNoBuffs)
|
||||
return ProfanedSoulCrystalState.Vanity; //vanity if no buffs
|
||||
|
||||
//vanity check during animation
|
||||
if (ignoreNoBuffs &&
|
||||
(!DownedBossSystem.downedCalamitas || !DownedBossSystem.downedExoMechs ||
|
||||
(player.maxMinions - player.slotsMinions) < maxMinionRequirement) ||
|
||||
player.Calamity().profanedCrystalForce || !player.HasBuff<ProfanedCrystalBuff>())
|
||||
{
|
||||
return ProfanedSoulCrystalState.Vanity; //failsafe for vanity
|
||||
}
|
||||
|
||||
var noMinions = player.slotsMinions == 0;
|
||||
var noSentries = !Main.projectile.Any(proj => proj.active && proj.owner == player.whoAmI && proj.sentry);
|
||||
if (noMinions && noSentries)
|
||||
@@ -188,8 +198,15 @@ namespace CalamityMod.Items.Accessories
|
||||
|
||||
modPlayer.pSoulArtifact = true;
|
||||
modPlayer.profanedCrystal = true;
|
||||
if (!modPlayer.profanedCrystalPrevious && player.ownedProjectileCounts[ModContent.ProjectileType<PscTransformAnimation>()] == 0)
|
||||
{
|
||||
modPlayer.pSoulShieldDurability = 1;
|
||||
modPlayer.profanedCrystalAnim = maxPscAnimTime;
|
||||
Projectile.NewProjectile(player.GetSource_FromThis(), player.Center, Vector2.Zero, ModContent.ProjectileType<PscTransformAnimation>(), 0, 0f, player.whoAmI);
|
||||
}
|
||||
|
||||
|
||||
modPlayer.profanedCrystalHide = hideVisual;
|
||||
modPlayer.profanedCrystalHide = hideVisual || modPlayer.profanedCrystalAnim > 0;
|
||||
modPlayer.pSoulShieldVisible = !hideVisual;
|
||||
|
||||
DetermineTransformationEligibility(player);
|
||||
@@ -204,7 +221,8 @@ namespace CalamityMod.Items.Accessories
|
||||
internal static void DetermineTransformationEligibility(Player player)
|
||||
{
|
||||
//short circuit immediately if profanedcrystalbuffs has already been set
|
||||
if (!player.Calamity().profanedCrystalBuffs && DownedBossSystem.downedCalamitas && DownedBossSystem.downedExoMechs && (player.maxMinions - player.slotsMinions) >= maxMinionRequirement && !player.Calamity().profanedCrystalForce && player.HasBuff<ProfanedCrystalBuff>())
|
||||
|
||||
if (!player.Calamity().profanedCrystalBuffs && player.Calamity().profanedCrystalAnim == -1 && DownedBossSystem.downedCalamitas && DownedBossSystem.downedExoMechs && (player.maxMinions - player.slotsMinions) >= maxMinionRequirement && !player.Calamity().profanedCrystalForce && player.HasBuff<ProfanedCrystalBuff>())
|
||||
{
|
||||
player.Calamity().profanedCrystalBuffs = true;
|
||||
player.Calamity().pscState = (int)GetPscStateFor(player); //update psc state, default is 0 which is the same as the int value of vanity
|
||||
@@ -280,7 +298,7 @@ namespace CalamityMod.Items.Accessories
|
||||
}
|
||||
else if (item.CountsAsClass<RangedDamageClass>())
|
||||
{
|
||||
if (enraged || Main.rand.NextBool(2)) //100% chance if 50% or lower, else 1 in 2 chance
|
||||
if (enraged || Main.rand.NextBool()) //100% chance if 50% or lower, else 1 in 2 chance
|
||||
{
|
||||
correctedVelocity *= 20f;
|
||||
Vector2 perturbedspeed = new Vector2(correctedVelocity.X + Main.rand.Next(-3, 4), correctedVelocity.Y + Main.rand.Next(-3, 4)).RotatedBy(MathHelper.ToRadians(3));
|
||||
|
||||
@@ -1,17 +1,18 @@
|
||||
using CalamityMod.CalPlayer;
|
||||
using CalamityMod.Items.Materials;
|
||||
using CalamityMod.Items.Placeables;
|
||||
using CalamityMod.Projectiles.Typeless;
|
||||
using CalamityMod.Tiles.Furniture.CraftingStations;
|
||||
using CalamityMod.Rarities;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
using Terraria;
|
||||
using Terraria.GameContent;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using Terraria.GameContent;
|
||||
using CalamityMod.Items.Placeables;
|
||||
|
||||
namespace CalamityMod.Items.Accessories
|
||||
{
|
||||
[LegacyName("Gehenna")]
|
||||
public class SlagsplitterPauldron : ModItem, ILocalizedModType
|
||||
{
|
||||
public new string LocalizationCategory => "Items.Accessories";
|
||||
@@ -31,6 +32,23 @@ namespace CalamityMod.Items.Accessories
|
||||
modPlayer.Pauldron = true;
|
||||
}
|
||||
|
||||
public override bool PreDrawInInventory(SpriteBatch spriteBatch, Vector2 position, Rectangle frame, Color drawColor, Color itemColor, Vector2 origin, float scale)
|
||||
{
|
||||
//Helping the item look a bit better in inventory by being larger
|
||||
CalamityUtils.DrawInventoryCustomScale(
|
||||
spriteBatch,
|
||||
texture: TextureAssets.Item[Type].Value,
|
||||
position,
|
||||
frame,
|
||||
drawColor,
|
||||
itemColor,
|
||||
origin,
|
||||
scale,
|
||||
wantedScale: 0.85f,
|
||||
drawOffset: new(0f, 0f)
|
||||
);
|
||||
return false;
|
||||
}
|
||||
public override void AddRecipes()
|
||||
{
|
||||
CreateRecipe().
|
||||
@@ -39,7 +57,6 @@ namespace CalamityMod.Items.Accessories
|
||||
AddIngredient<EssenceofHavoc>(8).
|
||||
AddTile(TileID.Anvils).
|
||||
Register();
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Before Width: | Height: | Size: 3.3 KiB After Width: | Height: | Size: 3.3 KiB |
@@ -23,7 +23,6 @@ namespace CalamityMod.Items.Accessories
|
||||
Item.value = CalamityGlobalItem.Rarity8BuyPrice;
|
||||
Item.rare = ItemRarityID.Yellow;
|
||||
Item.accessory = true;
|
||||
Item.defense = 12;
|
||||
}
|
||||
|
||||
public override bool CanEquipAccessory(Player player, int slot, bool modded) => !player.Calamity().voidOfCalamity;
|
||||
@@ -31,9 +30,7 @@ namespace CalamityMod.Items.Accessories
|
||||
public override void AddRecipes()
|
||||
{
|
||||
CreateRecipe().
|
||||
AddIngredient(ItemID.MoltenSkullRose).
|
||||
AddIngredient<Abaddon>().
|
||||
AddIngredient<VoidofCalamity>().
|
||||
AddIngredient<CoreofHavoc>().
|
||||
AddIngredient<ScoriaBar>(3).
|
||||
AddTile(TileID.MythrilAnvil).
|
||||
@@ -42,62 +39,11 @@ namespace CalamityMod.Items.Accessories
|
||||
|
||||
public override void UpdateAccessory(Player player, bool hideVisual)
|
||||
{
|
||||
var source = player.GetSource_Accessory(Item);
|
||||
CalamityPlayer modPlayer = player.Calamity();
|
||||
modPlayer.voidOfCalamity = true;
|
||||
modPlayer.voidOfExtinction = true;
|
||||
modPlayer.abaddon = true;
|
||||
player.buffImmune[ModContent.BuffType<BrimstoneFlames>()] = true;
|
||||
player.buffImmune[BuffID.OnFire] = true;
|
||||
player.fireWalk = true;
|
||||
player.lavaImmune = true;
|
||||
player.GetDamage<GenericDamageClass>() += 0.12f;
|
||||
if (player.immune)
|
||||
{
|
||||
if (player.miscCounter % 10 == 0)
|
||||
{
|
||||
if (player.whoAmI == Main.myPlayer)
|
||||
{
|
||||
int damage = (int)player.GetBestClassDamage().ApplyTo(30);
|
||||
Projectile fire = CalamityUtils.ProjectileRain(source, player.Center, 400f, 100f, 500f, 800f, 22f, ModContent.ProjectileType<StandingFire>(), damage, 5f, player.whoAmI);
|
||||
if (fire.whoAmI.WithinBounds(Main.maxProjectiles))
|
||||
{
|
||||
fire.usesLocalNPCImmunity = true;
|
||||
fire.localNPCHitCooldown = 60;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if (FireCountdown == 0)
|
||||
{
|
||||
FireCountdown = 600;
|
||||
}
|
||||
if (FireCountdown > 0)
|
||||
{
|
||||
FireCountdown--;
|
||||
if (FireCountdown == 0)
|
||||
{
|
||||
if (player.whoAmI == Main.myPlayer)
|
||||
{
|
||||
int projSpeed = 25;
|
||||
float spawnX = Main.rand.Next(1000) - 500 + player.Center.X;
|
||||
float spawnY = -1000 + player.Center.Y;
|
||||
Vector2 baseSpawn = new Vector2(spawnX, spawnY);
|
||||
Vector2 baseVelocity = player.Center - baseSpawn;
|
||||
baseVelocity.Normalize();
|
||||
baseVelocity *= projSpeed;
|
||||
for (int i = 0; i < FireProjectiles; i++)
|
||||
{
|
||||
Vector2 spawn = baseSpawn;
|
||||
spawn.X += i * 30 - (FireProjectiles * 15);
|
||||
Vector2 velocity = baseVelocity.RotatedBy(MathHelper.ToRadians(-FireAngleSpread / 2 + (FireAngleSpread * i / (float)FireProjectiles)));
|
||||
velocity.X = velocity.X + 3 * Main.rand.NextFloat() - 1.5f;
|
||||
int damage = (int)player.GetBestClassDamage().ApplyTo(100);
|
||||
Projectile.NewProjectile(source, spawn, velocity, ModContent.ProjectileType<BrimstoneHellfireballFriendly2>(), damage, 5f, Main.myPlayer, 0f, 0f);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
player.GetCritChance<GenericDamageClass>() += 16;
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -42,7 +42,7 @@ namespace CalamityMod.Items.Accessories.Wings
|
||||
{
|
||||
num59 = -40;
|
||||
}
|
||||
int num60 = Dust.NewDust(new Vector2(player.position.X + (float)(player.width / 2) + (float)num59, player.position.Y + (float)(player.height / 2) - 15f), 30, 30, Main.rand.NextBool(2) ? 206 : 173, 0f, 0f, 100, default, 2.4f);
|
||||
int num60 = Dust.NewDust(new Vector2(player.position.X + (float)(player.width / 2) + (float)num59, player.position.Y + (float)(player.height / 2) - 15f), 30, 30, Main.rand.NextBool() ? 206 : 173, 0f, 0f, 100, default, 2.4f);
|
||||
Main.dust[num60].noGravity = true;
|
||||
Main.dust[num60].velocity *= 0.3f;
|
||||
if (Main.rand.NextBool(10))
|
||||
|
||||
@@ -62,7 +62,7 @@ namespace CalamityMod.Items.Armor.Plaguebringer
|
||||
//On grass, grow flowers
|
||||
if (Main.tile[x, y + 1].TileType == TileID.Grass)
|
||||
{
|
||||
if (Main.rand.NextBool(2))
|
||||
if (Main.rand.NextBool())
|
||||
{
|
||||
tile.Get<TileWallWireStateData>().HasTile = true;
|
||||
tile.TileType = TileID.Plants;
|
||||
@@ -90,7 +90,7 @@ namespace CalamityMod.Items.Armor.Plaguebringer
|
||||
//On hallowed grass, grow hallowed flowers
|
||||
else if (Main.tile[x, y + 1].TileType == TileID.HallowedGrass)
|
||||
{
|
||||
if (Main.rand.NextBool(2))
|
||||
if (Main.rand.NextBool())
|
||||
{
|
||||
tile.Get<TileWallWireStateData>().HasTile = true;
|
||||
tile.TileType = TileID.HallowedPlants;
|
||||
|
||||
@@ -742,7 +742,7 @@ namespace CalamityMod.Items
|
||||
for (int j = 0; j < 22; j++)
|
||||
{
|
||||
Dust dust = Dust.NewDustDirect(Main.projectile[projj].position, Main.projectile[projj].width, Main.projectile[projj].height, DustID.Ice);
|
||||
dust.velocity = Vector2.UnitY * Main.rand.NextFloat(3f, 5.5f) * Main.rand.NextBool(2).ToDirectionInt();
|
||||
dust.velocity = Vector2.UnitY * Main.rand.NextFloat(3f, 5.5f) * Main.rand.NextBool().ToDirectionInt();
|
||||
dust.noGravity = true;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -649,6 +649,10 @@ namespace CalamityMod.Items
|
||||
if (item.type == ItemID.MagicPowerPotion)
|
||||
EditTooltipByNum(0, (line) => line.Text = "10% increased magic damage");
|
||||
|
||||
// Featherfall Potion being stupid broken with Aero Stone
|
||||
if (item.type == ItemID.FeatherfallPotion)
|
||||
EditTooltipByNum(0, (line) => line.Text = "Slows falling speed\n" + "Disables all airborne flight recovery");
|
||||
|
||||
// Magic Hat nerf
|
||||
if (item.type == ItemID.MagicHat)
|
||||
EditTooltipByNum(0, (line) => line.Text = "5% increased magic damage and critical strike chance");
|
||||
|
||||
@@ -36,13 +36,13 @@ namespace CalamityMod.Items
|
||||
{
|
||||
#region CATEGORY 1: Weapon Balancing
|
||||
{ ItemID.AdamantiteGlaive, Do(AutoReuse, TrueMelee, UseRatio(0.8f), DamageExact(65), ShootSpeedRatio(1.25f)) },
|
||||
{ ItemID.AdamantiteRepeater, Do(PointBlank, UseExact(15)) },
|
||||
{ ItemID.AdamantiteRepeater, Do(PointBlank, UseExact(14)) },
|
||||
{ ItemID.AdamantiteSword, Do(UseTurn, ScaleRatio(1.45f), DamageExact(77)) },
|
||||
{ ItemID.AmberStaff, Do(UseTimeExact(15), UseAnimationExact(45), ReuseDelayExact(15)) },
|
||||
{ ItemID.AmethystStaff, Do(ManaExact(2)) },
|
||||
{ ItemID.Anchor, Do(DamageExact(107), UseExact(30)) },
|
||||
{ ItemID.AntlionClaw, Do(UseExact(14)) }, // Mandible Blade
|
||||
{ ItemID.Bananarang, Do(DamageExact(98), UseExact(14)) },
|
||||
{ ItemID.Bananarang, Do(DamageExact(76), UseExact(14)) },
|
||||
{ ItemID.BatScepter, Do(DamageExact(56)) },
|
||||
{ ItemID.BeamSword, Do(UseMeleeSpeed, UseTurn, DamageExact(180), UseAnimationExact(60), ShootSpeedExact(23f)) },
|
||||
{ ItemID.BeeGun, Do(DamageExact(11)) },
|
||||
@@ -70,7 +70,7 @@ namespace CalamityMod.Items
|
||||
{ ItemID.ClingerStaff, Do(DamageExact(118)) },
|
||||
{ ItemID.ClockworkAssaultRifle, Do(PointBlank, DamageExact(21)) },
|
||||
{ ItemID.CobaltNaginata, Do(AutoReuse, TrueMelee, UseRatio(0.8f), DamageExact(90)) },
|
||||
{ ItemID.CobaltRepeater, Do(PointBlank, UseExact(20)) },
|
||||
{ ItemID.CobaltRepeater, Do(PointBlank, UseExact(18)) },
|
||||
{ ItemID.CobaltSword, Do(UseTurn, ScaleRatio(1.4f), DamageExact(80)) },
|
||||
{ ItemID.CorruptYoyo, Do(AutoReuse, DamageExact(20)) }, // Malaise
|
||||
{ ItemID.CrimsonYoyo, Do(AutoReuse, DamageExact(20)) }, // Artery
|
||||
@@ -79,8 +79,7 @@ namespace CalamityMod.Items
|
||||
{ ItemID.CrystalStorm, Do(DamageExact(40))},
|
||||
{ ItemID.CursedDart, Do(DamageExact(25)) },
|
||||
{ ItemID.Cutlass, Do(UseRatio(0.9f), DamageRatio(1.85f)) },
|
||||
// Vanilla 1.4 nerfed Daedalus Stormbow themselves. If further nerfs are needed, apply them here.
|
||||
// { ItemID.DaedalusStormbow, Do(DamageRatio(0.9f)) },
|
||||
{ ItemID.DaedalusStormbow, Do(DamageExact(30)) },
|
||||
{ ItemID.DaoofPow, Do(DamageExact(160)) },
|
||||
{ ItemID.DarkLance, Do(AutoReuse, TrueMelee, DamageExact(45)) },
|
||||
{ ItemID.DartRifle, Do(PointBlank, DamageExact(58)) },
|
||||
@@ -125,9 +124,8 @@ namespace CalamityMod.Items
|
||||
{ ItemID.HighVelocityBullet, Do(DamageExact(15)) },
|
||||
{ ItemID.IceBlade, Do(UseMeleeSpeed) },
|
||||
{ ItemID.IceBoomerang, Do(UseExact(25), ShootSpeedExact(9)) },
|
||||
{ ItemID.IceBow, Do(PointBlank, AutoReuse, DamageRatio(3f), UseRatio(2.5f)) }, // Uses ratios due to remix seed
|
||||
{ ItemID.IceRod, Do(UseExact(6), DamageExact(30), ShootSpeedExact(20)) },
|
||||
{ ItemID.IceSickle, Do(AutoReuse, UseMeleeSpeed, DamageExact(84), ShootSpeedExact(20f)) },
|
||||
{ ItemID.IceSickle, Do(AutoReuse, UseMeleeSpeed, DamageExact(75), ShootSpeedExact(20f)) },
|
||||
{ ItemID.InfernoFork, Do(DamageRatio(1.2f)) },
|
||||
{ ItemID.InfluxWaver, Do(UseMeleeSpeed, DamageExact(80), UseExact(25)) },
|
||||
{ ItemID.IronShortsword, Do(AutoReuse, TrueMelee, DamageExact(10)) },
|
||||
@@ -156,7 +154,7 @@ namespace CalamityMod.Items
|
||||
{ ItemID.MushroomSpear, Do(AutoReuse, TrueMelee, UseRatio(0.8f), DamageExact(100)) },
|
||||
{ ItemID.Musket, Do(PointBlank, DamageExact(22)) },
|
||||
{ ItemID.MythrilHalberd, Do(AutoReuse, TrueMelee, UseRatio(0.8f), DamageExact(95), ShootSpeedRatio(1.25f)) },
|
||||
{ ItemID.MythrilRepeater, Do(PointBlank, UseExact(18)) },
|
||||
{ ItemID.MythrilRepeater, Do(PointBlank, UseExact(16)) },
|
||||
{ ItemID.MythrilSword, Do(UseTurn, ScaleRatio(1.45f), DamageExact(100)) },
|
||||
{ ItemID.NorthPole, Do(AutoReuse, UseMeleeSpeed) },
|
||||
{ ItemID.OrangePhaseblade, Do(AutoReuse, UseTurn, DamageExact(32)) },
|
||||
@@ -249,7 +247,6 @@ namespace CalamityMod.Items
|
||||
{ ItemID.WhitePhaseblade, Do(AutoReuse, UseTurn, DamageExact(32)) },
|
||||
{ ItemID.WhitePhasesaber, Do(ScaleRatio(1.5f), DamageExact(60)) },
|
||||
{ ItemID.WoodenBoomerang, Do(DamageRatio(2f), Value(Item.sellPrice(copper: 20))) },
|
||||
{ ItemID.Xenopopper, Do(DamageExact(48)) },
|
||||
{ ItemID.YellowPhaseblade, Do(AutoReuse, UseTurn, DamageExact(32)) },
|
||||
{ ItemID.YellowPhasesaber, Do(ScaleRatio(1.5f), DamageExact(60)) },
|
||||
{ ItemID.Zenith, Do(DamageExact(210)) },
|
||||
@@ -425,6 +422,7 @@ namespace CalamityMod.Items
|
||||
{ ItemID.FlareGun, Do(PointBlank, Value(Item.sellPrice(silver: 10))) },
|
||||
{ ItemID.GoldBow, pointBlank },
|
||||
{ ItemID.Harpoon, pointBlank },
|
||||
{ ItemID.IceBow, pointBlank },
|
||||
{ ItemID.IronBow, pointBlank },
|
||||
{ ItemID.LeadBow, pointBlank },
|
||||
{ ItemID.Megashark, pointBlank },
|
||||
|
||||
@@ -41,7 +41,7 @@ namespace CalamityMod.Items.Fishing.BrimstoneCragCatches
|
||||
{
|
||||
velocity = velocity.RotatedByRandom(MathHelper.ToRadians(10f));
|
||||
int shotType = ModContent.ProjectileType<DrizzlefishFireball>();
|
||||
if (Main.rand.NextBool(2))
|
||||
if (Main.rand.NextBool())
|
||||
{
|
||||
shotType = ModContent.ProjectileType<DrizzlefishFire>();
|
||||
}
|
||||
|
||||
@@ -47,7 +47,7 @@ namespace CalamityMod.Items.PermanentBoosters
|
||||
if (modPlayer.cShard)
|
||||
{
|
||||
string key = "Mods.CalamityMod.Misc.CometShardText";
|
||||
Color messageColor = Color.DarkOrchid;
|
||||
Color messageColor = Color.SkyBlue;
|
||||
CalamityUtils.DisplayLocalizedText(key, messageColor);
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -50,7 +50,7 @@ namespace CalamityMod.Items.PermanentBoosters
|
||||
if (modPlayer.dFruit)
|
||||
{
|
||||
string key = "Mods.CalamityMod.Misc.DragonfruitText";
|
||||
Color messageColor = Color.Cyan;
|
||||
Color messageColor = Color.SpringGreen;
|
||||
CalamityUtils.DisplayLocalizedText(key, messageColor);
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -49,7 +49,7 @@ namespace CalamityMod.Items.PermanentBoosters
|
||||
if (modPlayer.eBerry)
|
||||
{
|
||||
string key = "Mods.CalamityMod.Misc.ElderberryText";
|
||||
Color messageColor = Color.RoyalBlue;
|
||||
Color messageColor = Color.Turquoise;
|
||||
CalamityUtils.DisplayLocalizedText(key, messageColor);
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -47,7 +47,7 @@ namespace CalamityMod.Items.PermanentBoosters
|
||||
if (modPlayer.eCore)
|
||||
{
|
||||
string key = "Mods.CalamityMod.Misc.EtherealCoreText";
|
||||
Color messageColor = Color.Purple;
|
||||
Color messageColor = Color.MediumVioletRed;
|
||||
CalamityUtils.DisplayLocalizedText(key, messageColor);
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -48,7 +48,7 @@ namespace CalamityMod.Items.PermanentBoosters
|
||||
if (modPlayer.mFruit)
|
||||
{
|
||||
string key = "Mods.CalamityMod.Misc.MiracleFruitText";
|
||||
Color messageColor = Color.GreenYellow;
|
||||
Color messageColor = Color.DeepSkyBlue;
|
||||
CalamityUtils.DisplayLocalizedText(key, messageColor);
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -48,7 +48,7 @@ namespace CalamityMod.Items.PermanentBoosters
|
||||
if (modPlayer.pHeart)
|
||||
{
|
||||
string key = "Mods.CalamityMod.Misc.PhantomHeartText";
|
||||
Color messageColor = Color.Magenta;
|
||||
Color messageColor = Color.Pink;
|
||||
CalamityUtils.DisplayLocalizedText(key, messageColor);
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -37,7 +37,7 @@ namespace CalamityMod.Items.Tools
|
||||
|
||||
public override void MeleeEffects(Player player, Rectangle hitbox)
|
||||
{
|
||||
Dust d = CalamityUtils.MeleeDustHelper(player, Main.rand.NextBool(2) ? ModContent.DustType<AstralOrange>() : ModContent.DustType<AstralBlue>(), 0.48f, 50, 78, -0.1f, 0.1f);
|
||||
Dust d = CalamityUtils.MeleeDustHelper(player, Main.rand.NextBool() ? ModContent.DustType<AstralOrange>() : ModContent.DustType<AstralBlue>(), 0.48f, 50, 78, -0.1f, 0.1f);
|
||||
if (d != null)
|
||||
{
|
||||
d.customData = 0.02f;
|
||||
|
||||
@@ -49,7 +49,7 @@ namespace CalamityMod.Items.Tools
|
||||
|
||||
public override void MeleeEffects(Player player, Rectangle hitbox)
|
||||
{
|
||||
Dust d = CalamityUtils.MeleeDustHelper(player, Main.rand.NextBool(2) ? ModContent.DustType<AstralOrange>() : ModContent.DustType<AstralBlue>(), 0.56f, 40, 65, -0.13f, 0.13f);
|
||||
Dust d = CalamityUtils.MeleeDustHelper(player, Main.rand.NextBool() ? ModContent.DustType<AstralOrange>() : ModContent.DustType<AstralBlue>(), 0.56f, 40, 65, -0.13f, 0.13f);
|
||||
if (d != null)
|
||||
{
|
||||
d.customData = 0.02f;
|
||||
|
||||
@@ -82,14 +82,6 @@ namespace CalamityMod.Items.TreasureBags
|
||||
itemLoot.Add(ModContent.ItemType<AnahitaMask>(), 7);
|
||||
itemLoot.Add(ModContent.ItemType<LeviathanMask>(), 7);
|
||||
itemLoot.Add(ModContent.ItemType<ThankYouPainting>(), ThankYouPainting.DropInt);
|
||||
|
||||
// Fishing
|
||||
itemLoot.Add(ItemID.HotlineFishingHook, 10);
|
||||
itemLoot.Add(ItemID.BottomlessBucket, 10);
|
||||
itemLoot.Add(ItemID.SuperAbsorbantSponge, 10);
|
||||
itemLoot.Add(ItemID.FishingPotion, 5, 5, 8);
|
||||
itemLoot.Add(ItemID.SonarPotion, 5, 5, 8);
|
||||
itemLoot.Add(ItemID.CratePotion, 5, 5, 8);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -8,9 +8,10 @@ namespace CalamityMod.Items.TreasureBags.MiscGrabBags
|
||||
public class SandyAnglingKit : ModItem, ILocalizedModType
|
||||
{
|
||||
public new string LocalizationCategory => "Items.TreasureBags";
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
Item.ResearchUnlockCount = 10;
|
||||
Item.ResearchUnlockCount = 10;
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
|
||||
@@ -46,12 +46,12 @@ namespace CalamityMod.Items.Weapons.Magic
|
||||
value2.Normalize();
|
||||
value2 *= Item.shootSpeed;
|
||||
float num91 = (float)Main.rand.Next(10, 50) * 0.001f;
|
||||
if (Main.rand.NextBool(2))
|
||||
if (Main.rand.NextBool())
|
||||
{
|
||||
num91 *= -1f;
|
||||
}
|
||||
float num92 = (float)Main.rand.Next(10, 50) * 0.001f;
|
||||
if (Main.rand.NextBool(2))
|
||||
if (Main.rand.NextBool())
|
||||
{
|
||||
num92 *= -1f;
|
||||
}
|
||||
|
||||
@@ -38,7 +38,7 @@ namespace CalamityMod.Items.Weapons.Magic
|
||||
{
|
||||
counter++;
|
||||
|
||||
if (Main.rand.NextBool(2))
|
||||
if (Main.rand.NextBool())
|
||||
{
|
||||
Vector2 speed = velocity.RotatedBy(MathHelper.ToRadians(Main.rand.Next(-15, 16)));
|
||||
speed.Normalize();
|
||||
@@ -51,7 +51,7 @@ namespace CalamityMod.Items.Weapons.Magic
|
||||
velocity.Y += Main.rand.Next(-40, 41) * 0.05f;
|
||||
Projectile.NewProjectile(source, position, velocity, type, damage, knockback, player.whoAmI, counter % 2 == 0 ? 1f : 0f);
|
||||
|
||||
if (Main.rand.NextBool(2))
|
||||
if (Main.rand.NextBool())
|
||||
{
|
||||
int noteProj = Utils.SelectRandom(Main.rand, new int[]
|
||||
{
|
||||
|
||||
@@ -51,12 +51,12 @@ namespace CalamityMod.Items.Weapons.Magic
|
||||
value2.Normalize();
|
||||
value2 *= Item.shootSpeed;
|
||||
float num91 = (float)Main.rand.Next(10, 80) * 0.001f;
|
||||
if (Main.rand.NextBool(2))
|
||||
if (Main.rand.NextBool())
|
||||
{
|
||||
num91 *= -1f;
|
||||
}
|
||||
float num92 = (float)Main.rand.Next(10, 80) * 0.001f;
|
||||
if (Main.rand.NextBool(2))
|
||||
if (Main.rand.NextBool())
|
||||
{
|
||||
num92 *= -1f;
|
||||
}
|
||||
|
||||
@@ -53,12 +53,12 @@ namespace CalamityMod.Items.Weapons.Magic
|
||||
value2 *= Item.shootSpeed;
|
||||
int projChoice = Main.rand.Next(7);
|
||||
float num91 = (float)Main.rand.Next(10, 160) * 0.001f;
|
||||
if (Main.rand.NextBool(2))
|
||||
if (Main.rand.NextBool())
|
||||
{
|
||||
num91 *= -1f;
|
||||
}
|
||||
float num92 = (float)Main.rand.Next(10, 160) * 0.001f;
|
||||
if (Main.rand.NextBool(2))
|
||||
if (Main.rand.NextBool())
|
||||
{
|
||||
num92 *= -1f;
|
||||
}
|
||||
|
||||
@@ -71,7 +71,7 @@ namespace CalamityMod.Items.Weapons.Magic
|
||||
{
|
||||
type = ModContent.ProjectileType<WyvernFeatherGreen>();
|
||||
}
|
||||
else if (Main.rand.NextBool(2))
|
||||
else if (Main.rand.NextBool())
|
||||
{
|
||||
type = ModContent.ProjectileType<WyvernFeatherPink>();
|
||||
}
|
||||
|
||||
@@ -47,7 +47,7 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
{
|
||||
for (int i = 0; i < 3; i++)
|
||||
{
|
||||
Dust d = CalamityUtils.MeleeDustHelper(player, Main.rand.NextBool(2) ? ModContent.DustType<AstralOrange>() : ModContent.DustType<AstralBlue>(), 0.7f, 55, 110, -0.07f, 0.07f);
|
||||
Dust d = CalamityUtils.MeleeDustHelper(player, Main.rand.NextBool() ? ModContent.DustType<AstralOrange>() : ModContent.DustType<AstralBlue>(), 0.7f, 55, 110, -0.07f, 0.07f);
|
||||
if (d != null)
|
||||
{
|
||||
d.customData = 0.03f;
|
||||
|
||||
@@ -62,7 +62,7 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
{
|
||||
int idx = Dust.NewDust(target.position, target.width, target.height, DustID.Blood, 0f, 0f, 100, default, 2f);
|
||||
Main.dust[idx].velocity *= 3f;
|
||||
if (Main.rand.NextBool(2))
|
||||
if (Main.rand.NextBool())
|
||||
{
|
||||
Main.dust[idx].scale = 0.5f;
|
||||
Main.dust[idx].fadeIn = 1f + (float)Main.rand.Next(10) * 0.1f;
|
||||
|
||||
@@ -31,7 +31,7 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
|
||||
public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback)
|
||||
{
|
||||
type = Main.rand.NextBool(2) ? type : ModContent.ProjectileType<LightBeam>();
|
||||
type = Main.rand.NextBool() ? type : ModContent.ProjectileType<LightBeam>();
|
||||
Projectile.NewProjectile(source, position.X, position.Y, velocity.X, velocity.Y, type, (int)(damage * 0.8), knockback, player.whoAmI);
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -60,7 +60,7 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
num78 *= num80;
|
||||
num79 *= num80;
|
||||
int num146 = 4;
|
||||
if (Main.rand.NextBool(2))
|
||||
if (Main.rand.NextBool())
|
||||
{
|
||||
num146++;
|
||||
}
|
||||
|
||||
@@ -17,7 +17,7 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 100;
|
||||
Item.damage = 200;
|
||||
Item.damage = 225;
|
||||
Item.DamageType = DamageClass.Melee;
|
||||
Item.useAnimation = 19;
|
||||
Item.useStyle = ItemUseStyleID.Swing;
|
||||
|
||||
@@ -88,7 +88,7 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
{
|
||||
if (Main.rand.NextBool(4))
|
||||
{
|
||||
Dust.NewDust(new Vector2(hitbox.X, hitbox.Y), hitbox.Width, hitbox.Height, Main.rand.NextBool(2) ? 164 : 229);
|
||||
Dust.NewDust(new Vector2(hitbox.X, hitbox.Y), hitbox.Width, hitbox.Height, Main.rand.NextBool() ? 164 : 229);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -64,7 +64,7 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
num78 *= num80;
|
||||
num79 *= num80;
|
||||
int num146 = 4;
|
||||
if (Main.rand.NextBool(2))
|
||||
if (Main.rand.NextBool())
|
||||
{
|
||||
num146++;
|
||||
}
|
||||
|
||||
@@ -58,7 +58,7 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
xDist *= speedMult;
|
||||
yDist *= speedMult;
|
||||
int knifeAmt = 3;
|
||||
if (Main.rand.NextBool(2))
|
||||
if (Main.rand.NextBool())
|
||||
{
|
||||
knifeAmt++;
|
||||
}
|
||||
|
||||
@@ -15,7 +15,7 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = Item.height = 108;
|
||||
Item.damage = 138;
|
||||
Item.damage = 128;
|
||||
Item.DamageType = DamageClass.Melee;
|
||||
Item.useAnimation = 18;
|
||||
Item.useStyle = ItemUseStyleID.Swing;
|
||||
|
||||
@@ -51,7 +51,7 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
{
|
||||
int num622 = Dust.NewDust(new Vector2(target.position.X, target.position.Y), target.width, target.height, 89, 0f, 0f, 100, default, 2f);
|
||||
Main.dust[num622].velocity *= 3f;
|
||||
if (Main.rand.NextBool(2))
|
||||
if (Main.rand.NextBool())
|
||||
{
|
||||
Main.dust[num622].scale = 0.5f;
|
||||
Main.dust[num622].fadeIn = 1f + Main.rand.Next(10) * 0.1f;
|
||||
@@ -79,7 +79,7 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
{
|
||||
int num622 = Dust.NewDust(new Vector2(target.position.X, target.position.Y), target.width, target.height, 89, 0f, 0f, 100, default, 2f);
|
||||
Main.dust[num622].velocity *= 3f;
|
||||
if (Main.rand.NextBool(2))
|
||||
if (Main.rand.NextBool())
|
||||
{
|
||||
Main.dust[num622].scale = 0.5f;
|
||||
Main.dust[num622].fadeIn = 1f + Main.rand.Next(10) * 0.1f;
|
||||
|
||||
@@ -36,7 +36,7 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
{
|
||||
if (target.life <= (target.lifeMax * 0.2f) && target.canGhostHeal)
|
||||
{
|
||||
if (!CalamityPlayer.areThereAnyDamnBosses || Main.rand.NextBool(2))
|
||||
if (!CalamityPlayer.areThereAnyDamnBosses || Main.rand.NextBool())
|
||||
{
|
||||
int heartDrop = CalamityPlayer.areThereAnyDamnBosses ? 1 : Main.rand.Next(1, 3);
|
||||
for (int i = 0; i < heartDrop; i++)
|
||||
@@ -53,7 +53,7 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
{
|
||||
int num622 = Dust.NewDust(new Vector2(target.position.X, target.position.Y), target.width, target.height, 5, 0f, 0f, 100, default, 2f);
|
||||
Main.dust[num622].velocity *= 3f;
|
||||
if (Main.rand.NextBool(2))
|
||||
if (Main.rand.NextBool())
|
||||
{
|
||||
Main.dust[num622].scale = 0.5f;
|
||||
Main.dust[num622].fadeIn = 1f + Main.rand.Next(10) * 0.1f;
|
||||
|
||||
@@ -14,12 +14,12 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
public new string LocalizationCategory => "Items.Weapons.Ranged";
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.damage = 14;
|
||||
Item.damage = 9;
|
||||
Item.DamageType = DamageClass.Ranged;
|
||||
Item.width = 62;
|
||||
Item.height = 26;
|
||||
Item.useTime = 26;
|
||||
Item.useAnimation = 26;
|
||||
Item.useTime = 30;
|
||||
Item.useAnimation = 30;
|
||||
Item.useStyle = ItemUseStyleID.Shoot;
|
||||
Item.noMelee = true;
|
||||
Item.knockBack = 5.5f;
|
||||
|
||||
@@ -18,7 +18,7 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.damage = 80;
|
||||
Item.damage = 40;
|
||||
Item.DamageType = DamageClass.Ranged;
|
||||
Item.width = 58;
|
||||
Item.height = 26;
|
||||
@@ -59,7 +59,7 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
{
|
||||
if (player.altFunctionUse == 2)
|
||||
{
|
||||
Projectile.NewProjectile(source, position.X, position.Y, velocity.X, velocity.Y, ModContent.ProjectileType<BigNuke>(), (int)(damage * 1.25), knockback * 2f, player.whoAmI);
|
||||
Projectile.NewProjectile(source, position.X, position.Y, velocity.X, velocity.Y, ModContent.ProjectileType<BigNuke>(), (int)(damage * 1.85), knockback * 2f, player.whoAmI);
|
||||
return false;
|
||||
}
|
||||
else
|
||||
|
||||
@@ -14,7 +14,7 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.damage = 112;
|
||||
Item.damage = 138;
|
||||
Item.DamageType = DamageClass.Ranged;
|
||||
Item.width = 80;
|
||||
Item.height = 26;
|
||||
|
||||
@@ -18,8 +18,8 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
Item.damage = 2000;
|
||||
Item.knockBack = 9.5f;
|
||||
Item.DamageType = DamageClass.Ranged;
|
||||
Item.useTime = 60;
|
||||
Item.useAnimation = 60;
|
||||
Item.useTime = 65;
|
||||
Item.useAnimation = 65;
|
||||
Item.shoot = ProjectileID.BulletHighVelocity;
|
||||
Item.shootSpeed = 12f;
|
||||
Item.useAmmo = AmmoID.Bullet;
|
||||
|
||||
@@ -62,7 +62,7 @@ namespace CalamityMod.Items.Weapons.Rogue
|
||||
for (int i = 0; i < icicleAmt; i++)
|
||||
{
|
||||
Vector2 perturbedspeed = new Vector2(velocity.X + Main.rand.Next(-3,4), velocity.Y + Main.rand.Next(-3,4)).RotatedBy(MathHelper.ToRadians(spread2));
|
||||
Projectile.NewProjectile(source, position, perturbedspeed, (Main.rand.NextBool(2) ? ModContent.ProjectileType<Valaricicle>() : ModContent.ProjectileType<Valaricicle2>()), damage, 0f, player.whoAmI, 0f, 0f);
|
||||
Projectile.NewProjectile(source, position, perturbedspeed, (Main.rand.NextBool() ? ModContent.ProjectileType<Valaricicle>() : ModContent.ProjectileType<Valaricicle2>()), damage, 0f, player.whoAmI, 0f, 0f);
|
||||
spread2 -= Main.rand.Next(1,4);
|
||||
}
|
||||
return false;
|
||||
|
||||
@@ -13,7 +13,7 @@ namespace CalamityMod.Items.Weapons.Rogue
|
||||
public static readonly SoundStyle ThrowSound = new("CalamityMod/Sounds/Item/IchorSpearThrow") { Volume = 0.2f, PitchVariance = 0.4f };
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 52;
|
||||
Item.width = Item.height = 52;
|
||||
Item.damage = 132;
|
||||
Item.noMelee = true;
|
||||
Item.noUseGraphic = true;
|
||||
@@ -22,7 +22,6 @@ namespace CalamityMod.Items.Weapons.Rogue
|
||||
Item.knockBack = 7f;
|
||||
Item.UseSound = ThrowSound;
|
||||
Item.autoReuse = true;
|
||||
Item.height = 52;
|
||||
Item.value = CalamityGlobalItem.Rarity4BuyPrice;
|
||||
Item.rare = ItemRarityID.LightRed;
|
||||
Item.shoot = ModContent.ProjectileType<IchorSpearProj>();
|
||||
|
||||
|
Before Width: | Height: | Size: 423 B After Width: | Height: | Size: 928 B |
@@ -17,6 +17,7 @@ namespace CalamityMod.Items.Weapons.Rogue
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 32;
|
||||
Item.height = 38;
|
||||
Item.damage = 24;
|
||||
Item.noMelee = true;
|
||||
Item.noUseGraphic = true;
|
||||
@@ -27,7 +28,6 @@ namespace CalamityMod.Items.Weapons.Rogue
|
||||
Item.knockBack = 1f;
|
||||
Item.UseSound = SoundID.Item1;
|
||||
Item.autoReuse = true;
|
||||
Item.height = 30;
|
||||
Item.maxStack = 9999;
|
||||
Item.value = Item.buyPrice(0, 0, 5, 0);
|
||||
Item.rare = ItemRarityID.Orange;
|
||||
|
||||
|
Before Width: | Height: | Size: 467 B After Width: | Height: | Size: 541 B |
@@ -38,7 +38,7 @@ namespace CalamityMod.Items.Weapons.Rogue
|
||||
Item.DamageType = RogueDamageClass.Instance;
|
||||
}
|
||||
|
||||
public override float StealthDamageMultiplier => 1.5f;
|
||||
public override float StealthDamageMultiplier => 0.5f;
|
||||
|
||||
public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback)
|
||||
{
|
||||
|
||||
@@ -39,7 +39,7 @@ namespace CalamityMod.Items.Weapons.Summon
|
||||
{
|
||||
if (player.altFunctionUse != 2)
|
||||
{
|
||||
if (Main.rand.NextBool(2))
|
||||
if (Main.rand.NextBool())
|
||||
type = ModContent.ProjectileType<CatastropheSummon>();
|
||||
int p = Projectile.NewProjectile(source, Main.MouseWorld, Vector2.Zero, type, damage, knockback, player.whoAmI);
|
||||
if (Main.projectile.IndexInRange(p))
|
||||
|
||||
@@ -73,7 +73,7 @@ namespace CalamityMod.Items.Weapons.Summon
|
||||
for (int j = 0; j < 22; j++)
|
||||
{
|
||||
Dust dust = Dust.NewDustDirect(Main.projectile[i].position, Main.projectile[i].width, Main.projectile[i].height, DustID.Ice);
|
||||
dust.velocity = Vector2.UnitY * Main.rand.NextFloat(3f, 5.5f) * Main.rand.NextBool(2).ToDirectionInt();
|
||||
dust.velocity = Vector2.UnitY * Main.rand.NextFloat(3f, 5.5f) * Main.rand.NextBool().ToDirectionInt();
|
||||
dust.noGravity = true;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -61,7 +61,7 @@ namespace CalamityMod.Items.Weapons.Summon
|
||||
for (int j = 0; j < 22; j++)
|
||||
{
|
||||
Dust dust = Dust.NewDustDirect(Main.projectile[i].position, Main.projectile[i].width, Main.projectile[i].height, 6);
|
||||
dust.velocity = Vector2.UnitY * Main.rand.NextFloat(3f, 5.5f) * Main.rand.NextBool(2).ToDirectionInt();
|
||||
dust.velocity = Vector2.UnitY * Main.rand.NextFloat(3f, 5.5f) * Main.rand.NextBool().ToDirectionInt();
|
||||
dust.noGravity = true;
|
||||
}
|
||||
}
|
||||
@@ -79,7 +79,7 @@ namespace CalamityMod.Items.Weapons.Summon
|
||||
for (int j = 0; j < 22; j++)
|
||||
{
|
||||
Dust dust = Dust.NewDustDirect(Main.projectile[i].position, Main.projectile[i].width, Main.projectile[i].height, 6);
|
||||
dust.velocity = Vector2.UnitY * Main.rand.NextFloat(3f, 5.5f) * Main.rand.NextBool(2).ToDirectionInt();
|
||||
dust.velocity = Vector2.UnitY * Main.rand.NextFloat(3f, 5.5f) * Main.rand.NextBool().ToDirectionInt();
|
||||
dust.noGravity = true;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -70,8 +70,8 @@ AeroStone: {
|
||||
DisplayName: Aero Stone
|
||||
Tooltip:
|
||||
'''
|
||||
Provides an additional 45 flight time
|
||||
Movement speed and acceleration are greatly increased when you are out of flight time
|
||||
Provides an additional 35 flight time
|
||||
You slowly recover flight time while in the air if you are not flying or gliding
|
||||
'One of the ancient relics'
|
||||
'''
|
||||
}
|
||||
@@ -1528,6 +1528,15 @@ SilencingSheath: {
|
||||
Tooltip: +10 maximum stealth
|
||||
}
|
||||
|
||||
SlagsplitterPauldron: {
|
||||
DisplayName: Slagsplitter Pauldron
|
||||
Tooltip:
|
||||
'''
|
||||
You gain 5% damage reduction while dashing
|
||||
Your dashes are empowered by fire, shredding enemies near you with violent explosions
|
||||
'''
|
||||
}
|
||||
|
||||
SpectralVeil: {
|
||||
DisplayName: Spectral Veil
|
||||
Tooltip:
|
||||
@@ -1870,42 +1879,6 @@ VampiricTalisman: {
|
||||
'''
|
||||
}
|
||||
|
||||
AbandonedWulfrumHelmet: {
|
||||
DisplayName: Abandoned Wulfrum Helmet
|
||||
Tooltip:
|
||||
'''
|
||||
A worn and rusty helmet resembling older models of wulfrum armor
|
||||
Transforms the holder into a wulfrum robot
|
||||
Can also be worn in the helmet slot as a regular helm
|
||||
[c/83B87E:'This rather flimsy armor was commonly worn by scavengers and looters.]
|
||||
[c/83B87E:Its versatility and common nature led it to be used as currency in trades.']
|
||||
'''
|
||||
}
|
||||
|
||||
HapuFruit: {
|
||||
DisplayName: Ha-pu Fruit
|
||||
Tooltip: "'A fruit that calms your nerves (may have unintended side effects)'"
|
||||
}
|
||||
|
||||
RedBow: {
|
||||
DisplayName: Red Bow
|
||||
Tooltip: "'Pelusa's favorite bow'"
|
||||
}
|
||||
|
||||
OracleHeadphones: {
|
||||
DisplayName: Oracle Headphones
|
||||
Tooltip: "'Hey game's over!'"
|
||||
}
|
||||
|
||||
Popo: {
|
||||
DisplayName: Magic Scarf and Hat
|
||||
Tooltip:
|
||||
'''
|
||||
Transforms the holder into a snowman
|
||||
'Don't let the demons steal your nose'
|
||||
'''
|
||||
}
|
||||
|
||||
VeneratedLocket: {
|
||||
DisplayName: Venerated Locket
|
||||
Tooltip:
|
||||
@@ -1935,11 +1908,9 @@ VoidofExtinction: {
|
||||
DisplayName: Void of Extinction
|
||||
Tooltip:
|
||||
'''
|
||||
Drops brimstone fireballs from the sky occasionally
|
||||
12% increase to all damage
|
||||
All attacks inflict Brimstone Flames
|
||||
Brimstone fire rains down after getting hit
|
||||
Grants immunity to lava, Burning, On Fire!, Brimstone Flames and Searing Lava
|
||||
16% increased critical strike chance
|
||||
Critical strikes explode, causing nearby enemies to ignite with Brimstone Flames
|
||||
Greatly reduces the damage taken by the Brimstone Flames debuff
|
||||
'''
|
||||
}
|
||||
|
||||
@@ -2020,11 +1991,39 @@ YharimsInsignia: {
|
||||
'''
|
||||
}
|
||||
|
||||
SlagsplitterPauldron: {
|
||||
DisplayName: Slagsplitter Pauldron
|
||||
// Vanity Accessories
|
||||
AbandonedWulfrumHelmet: {
|
||||
DisplayName: Abandoned Wulfrum Helmet
|
||||
Tooltip:
|
||||
'''
|
||||
You gain 5% damage reduction while dashing
|
||||
Your dashes are empowered by fire, shredding enemies near you with violent explosions
|
||||
A worn and rusty helmet resembling older models of wulfrum armor
|
||||
Transforms the holder into a wulfrum robot
|
||||
Can also be worn in the helmet slot as a regular helm
|
||||
[c/83B87E:'This rather flimsy armor was commonly worn by scavengers and looters.]
|
||||
[c/83B87E:Its versatility and common nature led it to be used as currency in trades.']
|
||||
'''
|
||||
}
|
||||
|
||||
HapuFruit: {
|
||||
DisplayName: Ha-pu Fruit
|
||||
Tooltip: "'A fruit that calms your nerves (may have unintended side effects)'"
|
||||
}
|
||||
|
||||
OracleHeadphones: {
|
||||
DisplayName: Oracle Headphones
|
||||
Tooltip: "'Hey game's over!'"
|
||||
}
|
||||
|
||||
Popo: {
|
||||
DisplayName: Magic Scarf and Hat
|
||||
Tooltip:
|
||||
'''
|
||||
Transforms the holder into a snowman
|
||||
'Don't let the demons steal your nose'
|
||||
'''
|
||||
}
|
||||
|
||||
RedBow: {
|
||||
DisplayName: Red Bow
|
||||
Tooltip: "'Pelusa's favorite bow'"
|
||||
}
|
||||
@@ -49,7 +49,7 @@ AntiMaterielRifle: {
|
||||
Tooltip:
|
||||
'''
|
||||
Converts musket balls into .50 caliber sniper rounds that rip apart enemy defense and DR
|
||||
Critical hits unleash a second swarm of bullets
|
||||
Critical hits unleash a second swarm of 5 bullets
|
||||
'''
|
||||
}
|
||||
|
||||
@@ -1242,9 +1242,9 @@ TyrannysEnd: {
|
||||
DisplayName: Tyranny's End
|
||||
Tooltip:
|
||||
'''
|
||||
Converts musket balls into .70 caliber sniper rounds that bypass enemy Defense and DR
|
||||
Inflicts Marked for Death on enemy hits
|
||||
Critical hits summon a swarm of 10 additional bullets
|
||||
Converts musket balls into .70 caliber sniper rounds that deal devastating damage
|
||||
Inflicts Marked for Death on enemy hits and bypasses defense
|
||||
Critical hits summon a swarm of 6 additional bullets
|
||||
'Pierce the heart of even the most heavily-armored foe'
|
||||
'''
|
||||
}
|
||||
|
||||
@@ -515,7 +515,7 @@ GleamingDagger: {
|
||||
}
|
||||
|
||||
GodsParanoia: {
|
||||
DisplayName: God's Paranoia
|
||||
DisplayName: Gods' Paranoia
|
||||
Tooltip:
|
||||
'''
|
||||
Hurls up to 10 speedy homing spiky balls
|
||||
|
||||
@@ -73,7 +73,6 @@ DeepSeaDumbbell3.DisplayName: Deep Sea Dumbbell
|
||||
DeepSeaDumbbellWeight.DisplayName: Deep Sea Dumbbell
|
||||
DeepWounderProjectile.DisplayName: Deep Wounder Projectile
|
||||
DeepWounderWater.DisplayName: Water Droplet
|
||||
TwistingThunderProj.DisplayName: Deific Thunderbolt
|
||||
DesecratedBubble.DisplayName: Desecrated Bubble
|
||||
DesecratedWaterProj.DisplayName: Desecrated Water
|
||||
DestructionBolt.DisplayName: Destruction Bolt
|
||||
@@ -163,6 +162,7 @@ JawsShockwave.DisplayName: Reaper Tooth Shockwave
|
||||
KelvinCatalystBoomerang.DisplayName: Kelvin Catalyst
|
||||
Knife.DisplayName: Knife
|
||||
KylieBoomerang.DisplayName: Kylie
|
||||
LanceofDestiny.DisplayName: Holy Lance
|
||||
LeadTomahawkProj.DisplayName: Lead Tomahawk
|
||||
LeonidCometBig.DisplayName: Leonid Comet
|
||||
LeonidCometSmall.DisplayName: Leonid Comet
|
||||
@@ -172,7 +172,6 @@ LeviathanTooth.DisplayName: Leviathan Tooth
|
||||
LionfishProj.DisplayName: Lionfish
|
||||
LostSoulFriendly.DisplayName: Lost Soul
|
||||
LuminousShard.DisplayName: Stardust Shard
|
||||
RealityRuptureLance.DisplayName: Lance of Reality
|
||||
LunarKunaiProj.DisplayName: Lunar Kunai
|
||||
LuxorsGiftRogue.DisplayName: Luxor's Rogue
|
||||
MalachiteBolt.DisplayName: Malachite
|
||||
@@ -209,6 +208,7 @@ PenumbraBomb.DisplayName: Penumbra Bomb
|
||||
PenumbraSoul.DisplayName: Penumbra Soul
|
||||
PhantasmalRuinProj.DisplayName: Phantasmal Ruin
|
||||
PhantasmalSoul.DisplayName: Phantasmal Soul
|
||||
PhantasmalSoulBlue.DisplayName: Blue Spirit
|
||||
PlaguedFuelPackCloud.DisplayName: Plagued Cloud
|
||||
PlaguenadeBee.DisplayName: Plague Bee
|
||||
PlaguenadeProj.DisplayName: Plaguenade
|
||||
@@ -223,6 +223,9 @@ ProfanedPartisanSpear.DisplayName: Profaned Spear
|
||||
RadiantExplosion.DisplayName: Radiant Explosion
|
||||
RadiantStar2.DisplayName: Radiant Star
|
||||
RadiantStarKnife.DisplayName: Radiant Star
|
||||
RealityRuptureLance.DisplayName: Lance of Reality
|
||||
RealityRuptureMini.DisplayName: Reality Shard
|
||||
RealityRuptureStealth.DisplayName: Ruptured Reality
|
||||
ReaperProjectile.DisplayName: The Old Reaper
|
||||
RefractionRotorProjectile.DisplayName: Prism Shuriken
|
||||
RegulusEnergy.DisplayName: Regulus Energy
|
||||
@@ -260,13 +263,15 @@ ShockTeslaAura.DisplayName: Electrifying Aura
|
||||
ShroomerangSpore.DisplayName: Infested Spore
|
||||
SkyBomberGas.DisplayName: Irradiated Cloud
|
||||
SkyfinNuke.DisplayName: Skyfin Nuke
|
||||
SkyStabberProj.DisplayName: SkyStabberProj
|
||||
SkyStabberProj.DisplayName: Sky Stabber
|
||||
SlickCaneProjectile.DisplayName: Slick Cane
|
||||
SludgeSplotchProj1.DisplayName: Sludge Splotch
|
||||
SludgeSplotchProj2.DisplayName: Sludge Splotch
|
||||
SnapClamProj.DisplayName: Snap Clam
|
||||
SnapClamStealth.DisplayName: Snap Clam
|
||||
SpearofDestinyProjectile.DisplayName: Destiny Spear
|
||||
SpearofDestinyStealth.DisplayName: Empowered Holy Lance
|
||||
SpearofDestinyStealthExplosion.DisplayName: Strong Burst
|
||||
SpearofPaleolithProj.DisplayName: Paleolith Spear
|
||||
SpentFuelContainerProjectile.DisplayName: Spent Fuel Container
|
||||
SphereBladed.DisplayName: Bladed Sphere
|
||||
@@ -312,6 +317,7 @@ ToxicantTwisterDust.DisplayName: Toxicant Dust
|
||||
ToxicantTwisterTwoPointZero.DisplayName: Toxicant Twister
|
||||
TurbulanceProjectile.DisplayName: Turbulance
|
||||
TurbulanceWindSlash.DisplayName: Wind Slash
|
||||
TwistingThunderProj.DisplayName: Twisting Thunder
|
||||
UmbraphileBoom.DisplayName: Umbra Blast
|
||||
UrchinStingerProj.DisplayName: Urchin Stinger
|
||||
ValariBoomerang.DisplayName: Frostcrush Valari
|
||||
@@ -319,15 +325,9 @@ Valaricicle.DisplayName: Valaricicle
|
||||
Valaricicle2.DisplayName: Valaricicle
|
||||
ValedictionBoomerang.DisplayName: Valediction
|
||||
VeneratedKnife.DisplayName: Venerated Knife
|
||||
WaveSkipperProjectile.DisplayName: Wave Skipper
|
||||
WebBallBol.DisplayName: Web Ball
|
||||
WrathwingCinder.DisplayName: Wrathwing Eruption
|
||||
WrathwingFireball.DisplayName: Wrathwing Fireball
|
||||
WrathwingSpear.DisplayName: Wrathwing
|
||||
WulfrumKnifeProj.DisplayName: Wulfrum Knife
|
||||
WaveSkipperProjectile.DisplayName: Wave Skipper
|
||||
LanceofDestiny.DisplayName: Holy Lance
|
||||
SpearofDestinyStealth.DisplayName: Empowered Holy Lance
|
||||
SpearofDestinyStealthExplosion.DisplayName: Strong Burst
|
||||
RealityRuptureMini.DisplayName: Reality Shard
|
||||
RealityRuptureStealth.DisplayName: Ruptured Reality
|
||||
PhantasmalSoulBlue.DisplayName: Blue Spirit
|
||||
WulfrumKnifeProj.DisplayName: Wulfrum Knife
|
||||
@@ -60,7 +60,6 @@ CinderBlossom.DisplayName: Cinder Blossom
|
||||
CloudElementalMinion.DisplayName: Cloudy Waifu
|
||||
CnidarianJellyfishOnTheString.DisplayName: Cnidarian
|
||||
CnidarianSpark.DisplayName: Cnidarian Spark
|
||||
GlacialEmbracePointyThing.DisplayName: Ice Castle Shard
|
||||
CorroslimeMinion.DisplayName: Corroslime
|
||||
CorruptionSlimeGodMinion.DisplayName: Slime God
|
||||
CosmicBlast.DisplayName: Cosmic Blast
|
||||
@@ -127,6 +126,7 @@ GastricBelcherVomit.DisplayName: Gastric Vomit
|
||||
GhostFire.DisplayName: Ghastly Particle
|
||||
GhostlyMine.DisplayName: Mine
|
||||
GiantIbanRobotOfDoom.DisplayName: Andromeda
|
||||
GlacialEmbracePointyThing.DisplayName: Ice Castle Shard
|
||||
HallowedStarSummon.DisplayName: Hallowed Star
|
||||
HauntedDishes.DisplayName: Haunted Dishes
|
||||
HermitCrabMinion.DisplayName: Hermit Crab
|
||||
@@ -141,6 +141,7 @@ HowlsHeartHowl.DisplayName: Howl
|
||||
HowlsHeartTurnipHead.DisplayName: Turnip-Head
|
||||
HydrothermicVent.DisplayName: Hydrothermic Vent
|
||||
IceClasperMinion.DisplayName: Ice Clasper
|
||||
IceClasperSummonProjectile.DisplayName: Ice Shard
|
||||
IceSentry.DisplayName: Ice Sentry
|
||||
IceSentryFrostBolt.DisplayName: Ball
|
||||
IceSentryShard.DisplayName: Frost Shard
|
||||
@@ -165,6 +166,8 @@ MidnightSunShot.DisplayName: Midnight Shot
|
||||
MidnightSunUFO.DisplayName: Midnight Sun UFO
|
||||
MiniGuardianAttack.DisplayName: Offensive Guardian
|
||||
MiniGuardianDefense.DisplayName: Defensive Guardian
|
||||
MiniGuardianFireball.DisplayName: Mini Guardian Fireball
|
||||
MiniGuardianFireballSplit.DisplayName: Mini Guardian Fireball Split
|
||||
MiniGuardianHealer.DisplayName: Healer Guardian
|
||||
MiniGuardianHolyRay.DisplayName: Bab Holy Ray
|
||||
MiniGuardianRock.DisplayName: Rocky Road
|
||||
@@ -178,6 +181,10 @@ MoonFist.DisplayName: Cosmic Fist
|
||||
MoonFistTeleportVisual.DisplayName: Light
|
||||
MortalityBeam.DisplayName: Beam
|
||||
MortalityBolt.DisplayName: Bolt
|
||||
MutatedTruffleMinion.DisplayName: Baby Boomer
|
||||
MutatedTruffleToothball.DisplayName: Baby Boomer's Toothball
|
||||
MutatedTruffleToothballSpike.DisplayName: Baby Boomer's Toothball Spike
|
||||
MutatedTruffleVortex.DisplayName: Baby Boomer's Vortex
|
||||
OldDukeHeadCorpse.DisplayName: Absolutely Disgusting Shark Puker
|
||||
OldDukeSharkVomit.DisplayName: Puke
|
||||
PerditionBeacon.DisplayName: Perdition Beacon
|
||||
@@ -189,11 +196,11 @@ PlagueBeeSmall.DisplayName: Plague Bee
|
||||
PlaguebringerMK2.DisplayName: Plaguebringer MK2
|
||||
PlaguebringerSummon.DisplayName: Lil' Plaguebringer
|
||||
PlaguePrincess.DisplayName: Virili
|
||||
PlantationStaffSummon.DisplayName: Mini Plantera
|
||||
PlantationStaffThornball.DisplayName: Mini Plantera's Thornball
|
||||
PlantationStaffSeed.DisplayName: Mini Plantera's Seed
|
||||
PlantationStaffSporeCloud.DisplayName: Mini Plantera's Spores
|
||||
PlantationStaffSummon.DisplayName: Mini Plantera
|
||||
PlantationStaffTentacle.DisplayName: Mini Plantera's Tentacle
|
||||
PlantationStaffThornball.DisplayName: Mini Plantera's Thornball
|
||||
PlateProjectile.DisplayName: Plate
|
||||
PolypLauncherProjectile.DisplayName: Polyp Chunk
|
||||
PolypLauncherSentry.DisplayName: Polyp Launcher
|
||||
@@ -205,6 +212,7 @@ ProfanedCrystalMeleeSpear.DisplayName: Holy Friendly Spear
|
||||
ProfanedCrystalRangedHuges.DisplayName: Holy Bab Boomer
|
||||
ProfanedCrystalRangedSmalls.DisplayName: Holy Bab Boomer Orb
|
||||
ProfanedCrystalRogueShard.DisplayName: Holy Bab Crystal Shard
|
||||
ProfanedCrystalWhip.DisplayName: Profaned Crystal Whip
|
||||
ProfanedEnergy.DisplayName: Profaned Energy
|
||||
PuffCloud.DisplayName: Puff Cloud
|
||||
PuffWarrior.DisplayName: Puff Warrior
|
||||
@@ -259,6 +267,8 @@ Spikecrag.DisplayName: Spikecrag
|
||||
SpikecragSpike.DisplayName: Spikecrag Spike
|
||||
SquirrelSquireAcorn.DisplayName: Squirrel Acorn
|
||||
SquirrelSquireMinion.DisplayName: Squirrel Squire
|
||||
StellarTorusBeam.DisplayName: Stellar Torus Beam
|
||||
StellarTorusSummon.DisplayName: Stellar Torus Summon
|
||||
StormjawBaby.DisplayName: Stormjaw Baby
|
||||
SummonAstralExplosion.DisplayName: Explosion
|
||||
SummonBrimstoneExplosion.DisplayName: Explosion
|
||||
@@ -302,11 +312,6 @@ WulfrumDroid.DisplayName: Wulfrum Droid
|
||||
WulfrumEnergyBurst.DisplayName: Wulfrum Bolt
|
||||
WulfrumFusionBolt.DisplayName: Fusion Bolt
|
||||
YharonMinionFireball.DisplayName: Dragon Fireball
|
||||
MutatedTruffleMinion.DisplayName: Baby Boomer
|
||||
MutatedTruffleVortex.DisplayName: Baby Boomer's Vortex
|
||||
MutatedTruffleToothball.DisplayName: Baby Boomer's Toothball
|
||||
MutatedTruffleToothballSpike.DisplayName: Baby Boomer's Toothball Spike
|
||||
IceClasperSummonProjectile.DisplayName: Ice Shard
|
||||
AtzirisDisfavor.DisplayName: Atziri's Disfavor
|
||||
Starforge.DisplayName: Starforge
|
||||
Paradoxica.DisplayName: Paradoxica
|
||||
@@ -316,8 +321,3 @@ WindRipperArrow.DisplayName: Wind Ripper Arrow
|
||||
HopeShredder.DisplayName: Hope Shredder
|
||||
HopeShredderArrow.DisplayName: Hope Shredder Arrow
|
||||
HopeShredderArrowSplit.DisplayName: Hope Shredder Split Arrow
|
||||
StellarTorusSummon.DisplayName: Stellar Torus Summon
|
||||
StellarTorusBeam.DisplayName: Stellar Torus Beam
|
||||
MiniGuardianFireball.DisplayName: Mini Guardian Fireball
|
||||
MiniGuardianFireballSplit.DisplayName: Mini Guardian Fireball Split
|
||||
ProfanedCrystalWhip.DisplayName: Profaned Crystal Whip
|
||||
@@ -1,3 +1,4 @@
|
||||
AbaddonCrit.DisplayName: Brimstone Blast
|
||||
AeroExplosive.DisplayName: Aeroboom
|
||||
AllianceTriangle.DisplayName: Alliance Triangle
|
||||
ArcZap.DisplayName: Arc Zap
|
||||
@@ -13,6 +14,8 @@ AstralSandBallGun.DisplayName: Astral Sand
|
||||
AstralSpray.DisplayName: Astral Spray
|
||||
AstralStar.DisplayName: Star
|
||||
BallisticPoisonCloud.DisplayName: Ballistic Cloud
|
||||
BlazingStarHeal.DisplayName: Blazing Star Heal
|
||||
BlazingStarThatDoesNotHeal.DisplayName: Blazing Star That Does Not Heal
|
||||
BlazingSun.DisplayName: Blazing Sun
|
||||
BlazingSun2.DisplayName: Blazing Sun
|
||||
BlissfulBombardierDustProjectile.DisplayName: Dust
|
||||
@@ -48,6 +51,8 @@ EmpyreanStellarDetritus.DisplayName: Empyrean Stellar Detritus
|
||||
EnergyShell.DisplayName: Energy Shell
|
||||
EutrophicSandBallGun.DisplayName: Eutrophic Sand
|
||||
FeralDoubleBobber.DisplayName: Feral Bobber
|
||||
FlameLickedBarrage.DisplayName: Flame Licked Barrage
|
||||
FlameLickedHellblast.DisplayName: Flame Licked Hellblast
|
||||
FuckYou.DisplayName: Explosion
|
||||
FungalClumpMinion.DisplayName: Fungal Clump
|
||||
GemTechArmorGem.DisplayName: Trireme's Gem
|
||||
@@ -68,6 +73,7 @@ HydrothermicFlareRogue.DisplayName: Hydrothermic Flare
|
||||
HydrothermicSphere.DisplayName: Hydrothermic Sphere
|
||||
JewelSpike.DisplayName: Spike
|
||||
KelvinCatalystStar.DisplayName: Kelvin Catalyst Star
|
||||
LeviAmberDash.DisplayName: Riptide Slam
|
||||
LunicBeam.DisplayName: Beam
|
||||
MageHammerBoom.DisplayName: Explosion
|
||||
MagnusBeam.DisplayName: Beam
|
||||
@@ -80,10 +86,14 @@ NebulaStar.DisplayName: Star
|
||||
NobodyKnows.DisplayName: Nope
|
||||
OmegaBlueTentacle.DisplayName: Omega Blue Tentacle
|
||||
OnyxLabSeeker.DisplayName: Seeking Mechanism
|
||||
PauldronDash.DisplayName: Pauldron Dash
|
||||
PauldronExplosion.DisplayName: Pauldron Explosion
|
||||
PendantProjectile1.DisplayName: Prism Shard
|
||||
PendantProjectile2.DisplayName: Prism Shard
|
||||
PendantProjectile3.DisplayName: Prism Shard
|
||||
PoisonousSeawater.DisplayName: Seawater
|
||||
PscTransformAnimation.DisplayName: Psc Transform Animation
|
||||
PscTransformRocks.DisplayName: Psc Transform Rocks
|
||||
ReaverOrb.DisplayName: Reaver Orb
|
||||
ReaverThornBase.DisplayName: Thorn
|
||||
ReaverThornTip.DisplayName: Thorn
|
||||
@@ -101,7 +111,7 @@ SerpentsBiteHook.DisplayName: Serpent's Bite
|
||||
ShadowflameExplosion.DisplayName: Shadowflame Explosion
|
||||
ShadowflameExplosionBig.DisplayName: Shadowflame Explosion
|
||||
SkyFlareFriendly.DisplayName: Flare
|
||||
SlimeStream.DisplayName: Silme Stream
|
||||
SlimeStream.DisplayName: Slime Stream
|
||||
SlurperBobber.DisplayName: Slurper Bobber
|
||||
SpiritOriginBullseye.DisplayName: Spirit Origin Bullseye
|
||||
StandingFire.DisplayName: Flame
|
||||
@@ -111,6 +121,7 @@ SuicideBomberDemon.DisplayName: Demon
|
||||
SulphuricAcidBubbleFriendly.DisplayName: Acid Bubble
|
||||
SulphurousSandBallGun.DisplayName: Sulphurous Sand
|
||||
TarraEnergy.DisplayName: Tarra Energy
|
||||
TarragonAura.DisplayName: Tarragon Aura
|
||||
TerminusHoldout.DisplayName: Terminus Holdout
|
||||
TeslaAura.DisplayName: Tesla's Electricity
|
||||
VanquisherArrowSplit.DisplayName: Arrow
|
||||
@@ -126,14 +137,3 @@ WulfrumLureSignal.DisplayName: Signal
|
||||
WulfrumScaffoldKitHoldout.DisplayName: Wulfrum Scaffold Kit
|
||||
YanmeisKnifeSlash.DisplayName: Yanmei's Knife
|
||||
YellowLabSeeker.DisplayName: Seeking Mechanism
|
||||
TarragonAura.DisplayName: Tarragon Aura
|
||||
BlazingStarHeal.DisplayName: Blazing Star Heal
|
||||
BlazingStarThatDoesNotHeal.DisplayName: Blazing Star That Does Not Heal
|
||||
LeviAmberDash.DisplayName: Riptide Slam
|
||||
FlameLickedShellBurst.DisplayName: Flame Slam
|
||||
FlameLickedShellExplosion.DisplayName: Fire Blast
|
||||
PauldronDash.DisplayName: Pauldron Dash
|
||||
PauldronExplosion.DisplayName: Pauldron Explosion
|
||||
AbaddonCrit.DisplayName: Brimstone Blast
|
||||
FlameLickedBarrage.DisplayName: Flame Licked Barrage
|
||||
FlameLickedHellblast.DisplayName: Flame Licked Hellblast
|
||||
@@ -35,7 +35,7 @@ ClothierChat: {
|
||||
|
||||
CyborgChat: {
|
||||
MoonLordDefeated1: Always shoot for the moon! It has clearly worked before.
|
||||
MoonLordDefeated2: Draedon? The guy who made these upgrades on me said he wanted to best him, but I never cared about that, I just wanted to shoot lasers from my eyes.
|
||||
MoonLordDefeated2: Draedon? The guy who made these upgrades on me said he wanted to best him. But I never cared about that, I just wanted to shoot lasers from my eyes.
|
||||
MentionPlague: Those big green roaches in the Jungle don't threaten me, but all of the animals it has consumed... Please, do me a favor and protect them.
|
||||
Rain: All these moments will be lost in time. Like tears... in the rain.
|
||||
}
|
||||
|
||||
@@ -119,7 +119,7 @@ namespace CalamityMod.NPCs.Abyss
|
||||
int min = 6;
|
||||
int max = 9;
|
||||
|
||||
if (Main.rand.NextBool(2))
|
||||
if (Main.rand.NextBool())
|
||||
num1250 += Main.rand.Next(min, max);
|
||||
else
|
||||
num1250 -= Main.rand.Next(min, max);
|
||||
|
||||
@@ -67,7 +67,7 @@ namespace CalamityMod.NPCs.AcidRain
|
||||
Main.dust[dust].velocity *= 1.1f;
|
||||
Main.dust[dust].velocity.Y += 0.25f;
|
||||
Main.dust[dust].noLight = true;
|
||||
if (Main.rand.NextBool(2))
|
||||
if (Main.rand.NextBool())
|
||||
{
|
||||
Main.dust[dust].noGravity = false;
|
||||
Main.dust[dust].scale *= 0.5f;
|
||||
|
||||
@@ -44,7 +44,7 @@ namespace CalamityMod.NPCs.AcidRain
|
||||
{
|
||||
if (NPC.ai[0] == 0f)
|
||||
{
|
||||
NPC.ai[0] = Main.rand.NextBool(2).ToDirectionInt();
|
||||
NPC.ai[0] = Main.rand.NextBool().ToDirectionInt();
|
||||
NPC.netUpdate = true;
|
||||
}
|
||||
if (NPC.collideX)
|
||||
|
||||
@@ -492,7 +492,7 @@ namespace CalamityMod.NPCs.AcidRain
|
||||
int damageBoom = 200;
|
||||
for (iBoom = 0; iBoom < 25; iBoom++)
|
||||
{
|
||||
int projectileType = Main.rand.NextBool(2) ? ModContent.ProjectileType<SulphuricAcidMist>() : ModContent.ProjectileType<SulphuricAcidBubble>();
|
||||
int projectileType = Main.rand.NextBool() ? ModContent.ProjectileType<SulphuricAcidMist>() : ModContent.ProjectileType<SulphuricAcidBubble>();
|
||||
offsetAngleBoom = startAngleBoom + deltaAngleBoom * (iBoom + iBoom * iBoom) / 2f + 32f * iBoom;
|
||||
if (Main.netMode != NetmodeID.MultiplayerClient)
|
||||
{
|
||||
@@ -504,7 +504,7 @@ namespace CalamityMod.NPCs.AcidRain
|
||||
{
|
||||
int num622 = Dust.NewDust(NPC.position, NPC.width, NPC.height, 31, 0f, 0f, 100, default, 2f);
|
||||
Main.dust[num622].velocity *= 3f;
|
||||
if (Main.rand.NextBool(2))
|
||||
if (Main.rand.NextBool())
|
||||
{
|
||||
Main.dust[num622].scale = 0.5f;
|
||||
Main.dust[num622].fadeIn = 1f + (float)Main.rand.Next(10) * 0.1f;
|
||||
|
||||
@@ -260,7 +260,7 @@ namespace CalamityMod.NPCs.Astral
|
||||
{
|
||||
int purple = Dust.NewDust(NPC.position, NPC.width, NPC.height, (int)CalamityDusts.PurpleCosmilite, 0f, 0f, 100, default, 2f);
|
||||
Main.dust[purple].velocity *= 3f;
|
||||
if (Main.rand.NextBool(2))
|
||||
if (Main.rand.NextBool())
|
||||
{
|
||||
Main.dust[purple].scale = 0.5f;
|
||||
Main.dust[purple].fadeIn = 1f + (float)Main.rand.Next(10) * 0.1f;
|
||||
|
||||
@@ -123,7 +123,7 @@ namespace CalamityMod.NPCs.Astral
|
||||
}
|
||||
else if (NPC.ai[1] >= 140f) //oozin dust at the "mouth"
|
||||
{
|
||||
int dustType = Main.rand.NextBool(2) ? ModContent.DustType<AstralOrange>() : ModContent.DustType<AstralBlue>();
|
||||
int dustType = Main.rand.NextBool() ? ModContent.DustType<AstralOrange>() : ModContent.DustType<AstralBlue>();
|
||||
int d = Dust.NewDust(spawnPoint - new Vector2(5), 10, 10, dustType);
|
||||
Main.dust[d].velocity = NPC.velocity * 0.3f;
|
||||
Main.dust[d].customData = true;
|
||||
@@ -284,7 +284,7 @@ namespace CalamityMod.NPCs.Astral
|
||||
for (int i = 0; i < numDust; i++)
|
||||
{
|
||||
Vector2 vel = (angle + Main.rand.NextFloat(-0.04f, 0.04f)).ToRotationVector2();
|
||||
int dustType = Main.rand.NextBool(2) ? ModContent.DustType<AstralOrange>() : ModContent.DustType<AstralBlue>();
|
||||
int dustType = Main.rand.NextBool() ? ModContent.DustType<AstralOrange>() : ModContent.DustType<AstralBlue>();
|
||||
Dust d = Dust.NewDustPerfect(NPC.Center, dustType, vel * Main.rand.NextFloat(1.8f, 2.2f));
|
||||
d.customData = NPC;
|
||||
|
||||
|
||||
@@ -48,7 +48,7 @@ namespace CalamityMod.NPCs.Astral
|
||||
for (int i = 0; i < 6; i++)
|
||||
{
|
||||
int dust = Dust.NewDust(NPC.position, NPC.width, NPC.height, ModContent.DustType<AstralOrange>(), 2 * hit.HitDirection, -2f);
|
||||
if (Main.rand.NextBool(2))
|
||||
if (Main.rand.NextBool())
|
||||
{
|
||||
Main.dust[dust].noGravity = true;
|
||||
Main.dust[dust].scale = 1.2f * NPC.scale;
|
||||
|
||||
@@ -444,7 +444,7 @@ namespace CalamityMod.NPCs.AstrumAureus
|
||||
{
|
||||
int num622 = Dust.NewDust(new Vector2(NPC.position.X, NPC.position.Y), NPC.width, NPC.height, (int)CalamityDusts.PurpleCosmilite, 0f, 0f, 100, default, 2f);
|
||||
Main.dust[num622].velocity *= 3f;
|
||||
if (Main.rand.NextBool(2))
|
||||
if (Main.rand.NextBool())
|
||||
{
|
||||
Main.dust[num622].scale = 0.5f;
|
||||
Main.dust[num622].fadeIn = 1f + Main.rand.Next(10) * 0.1f;
|
||||
|
||||
@@ -169,7 +169,7 @@ namespace CalamityMod.NPCs.AstrumAureus
|
||||
{
|
||||
int dust = Dust.NewDust(new Vector2(NPC.position.X, NPC.position.Y), NPC.width, NPC.height, ModContent.DustType<AstralOrange>(), 0f, 0f, 100, default, 1f);
|
||||
Main.dust[dust].velocity *= 1.66f;
|
||||
if (Main.rand.NextBool(2))
|
||||
if (Main.rand.NextBool())
|
||||
{
|
||||
Main.dust[dust].scale = 0.5f;
|
||||
Main.dust[dust].fadeIn = 1f + Main.rand.Next(10) * 0.1f;
|
||||
@@ -355,7 +355,7 @@ namespace CalamityMod.NPCs.AstrumAureus
|
||||
{
|
||||
int num622 = Dust.NewDust(new Vector2(NPC.position.X, NPC.position.Y), NPC.width, NPC.height, ModContent.DustType<AstralOrange>(), 0f, 0f, 100, default, 1f);
|
||||
Main.dust[num622].velocity *= 3f;
|
||||
if (Main.rand.NextBool(2))
|
||||
if (Main.rand.NextBool())
|
||||
{
|
||||
Main.dust[num622].scale = 0.5f;
|
||||
Main.dust[num622].fadeIn = 1f + Main.rand.Next(10) * 0.1f;
|
||||
|
||||
@@ -156,7 +156,7 @@ namespace CalamityMod.NPCs.AstrumDeus
|
||||
{
|
||||
int num622 = Dust.NewDust(new Vector2(NPC.position.X, NPC.position.Y), NPC.width, NPC.height, (int)CalamityDusts.PurpleCosmilite, 0f, 0f, 100, default, 2f);
|
||||
Main.dust[num622].velocity *= 3f;
|
||||
if (Main.rand.NextBool(2))
|
||||
if (Main.rand.NextBool())
|
||||
{
|
||||
Main.dust[num622].scale = 0.5f;
|
||||
Main.dust[num622].fadeIn = 1f + Main.rand.Next(10) * 0.1f;
|
||||
|
||||
@@ -195,7 +195,7 @@ namespace CalamityMod.NPCs.AstrumDeus
|
||||
{
|
||||
int num622 = Dust.NewDust(new Vector2(NPC.position.X, NPC.position.Y), NPC.width, NPC.height, (int)CalamityDusts.PurpleCosmilite, 0f, 0f, 100, default, 2f);
|
||||
Main.dust[num622].velocity *= 3f;
|
||||
if (Main.rand.NextBool(2))
|
||||
if (Main.rand.NextBool())
|
||||
{
|
||||
Main.dust[num622].scale = 0.5f;
|
||||
Main.dust[num622].fadeIn = 1f + Main.rand.Next(10) * 0.1f;
|
||||
|
||||
@@ -139,7 +139,7 @@ namespace CalamityMod.NPCs.AstrumDeus
|
||||
{
|
||||
int num622 = Dust.NewDust(new Vector2(NPC.position.X, NPC.position.Y), NPC.width, NPC.height, (int)CalamityDusts.PurpleCosmilite, 0f, 0f, 100, default, 2f);
|
||||
Main.dust[num622].velocity *= 3f;
|
||||
if (Main.rand.NextBool(2))
|
||||
if (Main.rand.NextBool())
|
||||
{
|
||||
Main.dust[num622].scale = 0.5f;
|
||||
Main.dust[num622].fadeIn = 1f + Main.rand.Next(10) * 0.1f;
|
||||
|
||||
@@ -268,7 +268,7 @@ namespace CalamityMod.NPCs.BrimstoneElemental
|
||||
{
|
||||
int num622 = Dust.NewDust(new Vector2(NPC.position.X, NPC.position.Y), NPC.width, NPC.height, (int)CalamityDusts.Brimstone, 0f, 0f, 100, default, 2f);
|
||||
Main.dust[num622].velocity *= 3f;
|
||||
if (Main.rand.NextBool(2))
|
||||
if (Main.rand.NextBool())
|
||||
{
|
||||
Main.dust[num622].scale = 0.5f;
|
||||
Main.dust[num622].fadeIn = 1f + (float)Main.rand.Next(10) * 0.1f;
|
||||
|
||||
@@ -279,7 +279,7 @@ namespace CalamityMod.NPCs.CalClone
|
||||
{
|
||||
int num622 = Dust.NewDust(new Vector2(NPC.position.X, NPC.position.Y), NPC.width, NPC.height, (int)CalamityDusts.Brimstone, 0f, 0f, 100, default, 2f);
|
||||
Main.dust[num622].velocity *= 3f;
|
||||
if (Main.rand.NextBool(2))
|
||||
if (Main.rand.NextBool())
|
||||
{
|
||||
Main.dust[num622].scale = 0.5f;
|
||||
Main.dust[num622].fadeIn = 1f + (float)Main.rand.Next(10) * 0.1f;
|
||||
|
||||
@@ -194,7 +194,7 @@ namespace CalamityMod.NPCs.CalClone
|
||||
{
|
||||
int num622 = Dust.NewDust(new Vector2(NPC.position.X, NPC.position.Y), NPC.width, NPC.height, (int)CalamityDusts.Brimstone, 0f, 0f, 100, default, 2f);
|
||||
Main.dust[num622].velocity *= 3f;
|
||||
if (Main.rand.NextBool(2))
|
||||
if (Main.rand.NextBool())
|
||||
{
|
||||
Main.dust[num622].scale = 0.5f;
|
||||
Main.dust[num622].fadeIn = 1f + (float)Main.rand.Next(10) * 0.1f;
|
||||
|
||||
@@ -194,7 +194,7 @@ namespace CalamityMod.NPCs.CalClone
|
||||
{
|
||||
int num622 = Dust.NewDust(new Vector2(NPC.position.X, NPC.position.Y), NPC.width, NPC.height, (int)CalamityDusts.Brimstone, 0f, 0f, 100, default, 2f);
|
||||
Main.dust[num622].velocity *= 3f;
|
||||
if (Main.rand.NextBool(2))
|
||||
if (Main.rand.NextBool())
|
||||
{
|
||||
Main.dust[num622].scale = 0.5f;
|
||||
Main.dust[num622].fadeIn = 1f + (float)Main.rand.Next(10) * 0.1f;
|
||||
|
||||
@@ -151,7 +151,7 @@ namespace CalamityMod.NPCs.CalClone
|
||||
{
|
||||
int red = Dust.NewDust(NPC.position, NPC.width, NPC.height, (int)CalamityDusts.Brimstone, 0f, 0f, 100, default, 2f);
|
||||
Main.dust[red].velocity *= 3f;
|
||||
if (Main.rand.NextBool(2))
|
||||
if (Main.rand.NextBool())
|
||||
{
|
||||
Main.dust[red].scale = 0.5f;
|
||||
Main.dust[red].fadeIn = 1f + (float)Main.rand.Next(10) * 0.1f;
|
||||
|
||||
@@ -837,12 +837,12 @@ namespace CalamityMod.NPCs
|
||||
int min = 12;
|
||||
int max = 16;
|
||||
|
||||
if (Main.rand.NextBool(2))
|
||||
if (Main.rand.NextBool())
|
||||
playerPosX += Main.rand.Next(min, max);
|
||||
else
|
||||
playerPosX -= Main.rand.Next(min, max);
|
||||
|
||||
if (Main.rand.NextBool(2))
|
||||
if (Main.rand.NextBool())
|
||||
playerPosY += Main.rand.Next(min, max);
|
||||
else
|
||||
playerPosY -= Main.rand.Next(min, max);
|
||||
@@ -3169,7 +3169,7 @@ namespace CalamityMod.NPCs
|
||||
{
|
||||
if (Main.netMode != NetmodeID.MultiplayerClient)
|
||||
{
|
||||
int type = Main.rand.NextBool(2) ? ModContent.ProjectileType<AstralLaser>() : ModContent.ProjectileType<AstralFlame>();
|
||||
int type = Main.rand.NextBool() ? ModContent.ProjectileType<AstralLaser>() : ModContent.ProjectileType<AstralFlame>();
|
||||
int damage = npc.GetProjectileDamage(type);
|
||||
int totalProjectiles = bossRush ? 14 : death ? 12 : revenge ? 10 : expertMode ? 8 : 6;
|
||||
float radians = MathHelper.TwoPi / totalProjectiles;
|
||||
|
||||
@@ -720,7 +720,7 @@ namespace CalamityMod.NPCs
|
||||
int dustIdx = Dust.NewDust(spawnPosiion, 1, 1, 27, 0f, 0f, 0, default, 1f);
|
||||
Main.dust[dustIdx].velocity = -dustVelocity * 0.3f;
|
||||
Main.dust[dustIdx].alpha = 100;
|
||||
if (Main.rand.NextBool(2))
|
||||
if (Main.rand.NextBool())
|
||||
{
|
||||
Main.dust[dustIdx].noGravity = true;
|
||||
Main.dust[dustIdx].scale += 0.3f;
|
||||
@@ -5497,7 +5497,7 @@ namespace CalamityMod.NPCs
|
||||
}
|
||||
if (npc.type == NPCID.Necromancer || npc.type == NPCID.NecromancerArmored)
|
||||
{
|
||||
if (Main.rand.NextBool(2))
|
||||
if (Main.rand.NextBool())
|
||||
{
|
||||
int num121 = Dust.NewDust(new Vector2(npc.position.X, npc.position.Y + 2f), npc.width, npc.height, 173, 0f, 0f, 0, default(Color), 1f);
|
||||
Dust dust = Main.dust[num121];
|
||||
@@ -5507,7 +5507,7 @@ namespace CalamityMod.NPCs
|
||||
}
|
||||
else if (npc.type == NPCID.DiabolistRed || npc.type == NPCID.DiabolistWhite)
|
||||
{
|
||||
if (Main.rand.NextBool(2))
|
||||
if (Main.rand.NextBool())
|
||||
{
|
||||
int num122 = Dust.NewDust(new Vector2(npc.position.X, npc.position.Y + 2f), npc.width, npc.height, 174, npc.velocity.X * 0.2f, npc.velocity.Y * 0.2f, 100, default(Color), 1f);
|
||||
Dust dust = Main.dust[num122];
|
||||
@@ -5519,7 +5519,7 @@ namespace CalamityMod.NPCs
|
||||
}
|
||||
else if (npc.type == NPCID.RaggedCaster || npc.type == NPCID.RaggedCasterOpenCoat)
|
||||
{
|
||||
if (Main.rand.NextBool(2))
|
||||
if (Main.rand.NextBool())
|
||||
{
|
||||
int num123 = Dust.NewDust(new Vector2(npc.position.X, npc.position.Y + 2f), npc.width, npc.height, 175, npc.velocity.X * 0.2f, npc.velocity.Y * 0.2f, 100, default(Color), 0.1f);
|
||||
Dust dust = Main.dust[num123];
|
||||
@@ -5535,7 +5535,7 @@ namespace CalamityMod.NPCs
|
||||
Lighting.AddLight(npc.Top, 0.6f, 0.6f, 0.3f);
|
||||
return false;
|
||||
}
|
||||
if (Main.rand.NextBool(2))
|
||||
if (Main.rand.NextBool())
|
||||
{
|
||||
int num124 = Dust.NewDust(new Vector2(npc.position.X, npc.position.Y + 2f), npc.width, npc.height, 6, npc.velocity.X * 0.2f, npc.velocity.Y * 0.2f, 100, default(Color), 2f);
|
||||
Dust dust = Main.dust[num124];
|
||||
@@ -6627,13 +6627,13 @@ namespace CalamityMod.NPCs
|
||||
{
|
||||
npc.noGravity = false;
|
||||
npc.noTileCollide = false;
|
||||
if (Main.rand.NextBool(2))
|
||||
if (Main.rand.NextBool())
|
||||
{
|
||||
int sand = Dust.NewDust(new Vector2(npc.position.X - 4f, npc.position.Y + (float)npc.height - 8f), npc.width + 8, 24, 32, 0f, npc.velocity.Y / 2f, 0, default(Color), 1f);
|
||||
Dust dust = Main.dust[sand];
|
||||
dust.velocity.X *= 0.4f;
|
||||
dust.velocity.Y *= -1f;
|
||||
if (Main.rand.NextBool(2))
|
||||
if (Main.rand.NextBool())
|
||||
{
|
||||
dust.noGravity = true;
|
||||
dust.scale += 0.2f;
|
||||
|
||||