From cff3b4a00cb5b7bc883975ec777d6ec8bb0ea620 Mon Sep 17 00:00:00 2001 From: termigator1359 <45545085+termigator1359@users.noreply.github.com> Date: Mon, 14 Oct 2019 21:23:43 -0400 Subject: [PATCH] martian conduit post golem, moon sigil rewrite --- .../EclipsesFall.cs | 3 ++- NPCs/NormalNPCs/ShockstormShuttle.cs | 8 +++--- Projectiles/CalamityGlobalProjectile.cs | 27 ++++++++++--------- 3 files changed, 19 insertions(+), 19 deletions(-) diff --git a/Items/CalamityCustomThrowingDamage/EclipsesFall.cs b/Items/CalamityCustomThrowingDamage/EclipsesFall.cs index cb454e4753..47242f64b7 100644 --- a/Items/CalamityCustomThrowingDamage/EclipsesFall.cs +++ b/Items/CalamityCustomThrowingDamage/EclipsesFall.cs @@ -9,7 +9,8 @@ namespace CalamityMod.Items.CalamityCustomThrowingDamage public override void SetStaticDefaults() { DisplayName.SetDefault("Eclipse's Fall"); - Tooltip.SetDefault("Summons spears from the sky on hit\n" + + Tooltip.SetDefault("When the sun goes dark, you will know judgment\n" + + "Summons spears from the sky on hit\n" + "Stealth strikes impale enemies and summon a constant barrage of spears"); } diff --git a/NPCs/NormalNPCs/ShockstormShuttle.cs b/NPCs/NormalNPCs/ShockstormShuttle.cs index fcefe4aa2d..640e9cfc3b 100644 --- a/NPCs/NormalNPCs/ShockstormShuttle.cs +++ b/NPCs/NormalNPCs/ShockstormShuttle.cs @@ -3,6 +3,7 @@ using System; using Terraria; using Terraria.ID; using Terraria.ModLoader; +using CalamityMod.Utilities; namespace CalamityMod.NPCs.NormalNPCs { @@ -569,11 +570,8 @@ namespace CalamityMod.NPCs.NormalNPCs public override void NPCLoot() { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.MartianConduitPlating, Main.rand.Next(10, 30)); - if (Main.rand.NextBool(3)) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("EssenceofCinder")); - } + DropHelper.DropItemCondition(npc, ItemID.MartianConduitPlating, !NPC.downedGolemBoss, 10, 30); + DropHelper.DropItemChance(npc, mod.ItemType("EssenceofCinder"), 3); } } } diff --git a/Projectiles/CalamityGlobalProjectile.cs b/Projectiles/CalamityGlobalProjectile.cs index 9347ce470c..ea6e0e9943 100644 --- a/Projectiles/CalamityGlobalProjectile.cs +++ b/Projectiles/CalamityGlobalProjectile.cs @@ -591,7 +591,7 @@ namespace CalamityMod.Projectiles } } - if (Main.player[projectile.owner].Calamity().dragonScales && rogue && projectile.friendly && projectile.type != mod.ProjectileType("Nanotech")) + if (Main.player[projectile.owner].Calamity().dragonScales && rogue && projectile.friendly && projectile.type != mod.ProjectileType("MoonSigil") && projectile.type != mod.ProjectileType("DragonShit")) { if (counter % 50 == 0) { @@ -604,6 +604,19 @@ namespace CalamityMod.Projectiles } } + if (Main.player[projectile.owner].Calamity().moonCrown && rogue && projectile.friendly && projectile.type != mod.ProjectileType("MoonSigil") && projectile.type != mod.ProjectileType("DragonShit")) + { + //summon Moon sigils infrequently + if (Main.rand.NextBool(300)) + { + if (projectile.owner == Main.myPlayer && Main.player[projectile.owner].ownedProjectileCounts[mod.ProjectileType("MoonSigil")] < 50) + { + //spawn a moon sigil that does 1/20th of the original damage + Projectile.NewProjectile(projectile.position, Vector2.Zero, mod.ProjectileType("MoonSigil"), (int)((double)projectile.damage * 0.05), 0f, projectile.owner, 0f, 0f); + } + } + } + if (Main.player[projectile.owner].Calamity().daedalusSplit && rogue && projectile.friendly) { counter2++; @@ -646,18 +659,6 @@ namespace CalamityMod.Projectiles int dust = Dust.NewDust(projectile.position + projectile.velocity, projectile.width, projectile.height, 244, projectile.oldVelocity.X * 0.5f, projectile.oldVelocity.Y * 0.5f, 0, default, 0.5f); Main.dust[dust].noGravity = true; } - - if (rogue) - { - if (Main.player[projectile.owner].Calamity().moonCrown) - { - //Summon moon sigils infrequently - if (Main.rand.NextBool(300)) - { - Projectile.NewProjectile(projectile.position, Vector2.Zero, mod.ProjectileType("MoonSigil"), (int)((double)projectile.damage * 0.05), 0); - } - } - } } #endregion