martian conduit post golem, moon sigil rewrite

This commit is contained in:
termigator1359 committed 2019-10-14 21:23:43 -04:00
1 parent f18d365797
commit cff3b4a00c
3 files changed
+19 -19

No files matched your search

@@ -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");
}
+3 -5
View File
@@ -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);
}
}
}
+14 -13
View File
@@ -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