diff --git a/Buffs/StatBuffs/PhantomicArmourBuff.cs b/Buffs/StatBuffs/PhantomicArmourBuff.cs new file mode 100644 index 0000000000..bdb6527e42 --- /dev/null +++ b/Buffs/StatBuffs/PhantomicArmourBuff.cs @@ -0,0 +1,27 @@ +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Buffs.StatBuffs +{ + class PhantomicArmourBuff : ModBuff + { + public override void SetDefaults() + { + DisplayName.SetDefault("Phantomic Shield"); + Description.SetDefault("Defense boosted by 8 and damage reduction boosted by 8%\n" + + "An ephemeral bulwark protects you"); + Main.debuff[Type] = false; + Main.pvpBuff[Type] = true; + Main.buffNoSave[Type] = true; + Main.buffNoTimeDisplay[Type] = true; + longerExpertDebuff = false; + } + + public override void Update(Player player, ref int buffIndex) + { + player.endurance += 0.08f; + player.statDefense += 8; + } + } +} diff --git a/Buffs/StatBuffs/PhantomicArmourBuff.png b/Buffs/StatBuffs/PhantomicArmourBuff.png new file mode 100644 index 0000000000..4d1a7b731e Binary files /dev/null and b/Buffs/StatBuffs/PhantomicArmourBuff.png differ diff --git a/Buffs/StatBuffs/PhantomicEmpowermentBuff.cs b/Buffs/StatBuffs/PhantomicEmpowermentBuff.cs new file mode 100644 index 0000000000..0e56a4db6c --- /dev/null +++ b/Buffs/StatBuffs/PhantomicEmpowermentBuff.cs @@ -0,0 +1,25 @@ +using CalamityMod.CalPlayer; +using Terraria; +using Terraria.ModLoader; + +namespace CalamityMod.Buffs.StatBuffs +{ + class PhantomicEmpowermentBuff : ModBuff + { + public override void SetDefaults() + { + DisplayName.SetDefault("Phantomic Empowerment"); + Description.SetDefault("Empowering minion damage by 15%"); + Main.debuff[Type] = false; + Main.pvpBuff[Type] = true; + Main.buffNoSave[Type] = true; + Main.buffNoTimeDisplay[Type] = true; + longerExpertDebuff = false; + } + + public override void Update(Player player, ref int buffIndex) + { + player.minionDamage += 0.15f; + } + } +} diff --git a/Buffs/StatBuffs/PhantomicEmpowermentBuff.png b/Buffs/StatBuffs/PhantomicEmpowermentBuff.png new file mode 100644 index 0000000000..b12fc67afe Binary files /dev/null and b/Buffs/StatBuffs/PhantomicEmpowermentBuff.png differ diff --git a/Buffs/StatBuffs/PhantomicRestorationBuff.cs b/Buffs/StatBuffs/PhantomicRestorationBuff.cs new file mode 100644 index 0000000000..85a82c8f23 --- /dev/null +++ b/Buffs/StatBuffs/PhantomicRestorationBuff.cs @@ -0,0 +1,30 @@ +using CalamityMod.CalPlayer; +using Terraria; +using Terraria.ModLoader; + +namespace CalamityMod.Buffs.StatBuffs +{ + class PhantomicRestorationBuff : ModBuff + { + public override void SetDefaults() + { + DisplayName.SetDefault("Phantomic Regen"); + Description.SetDefault("Regenerating life"); + Main.debuff[Type] = false; + Main.pvpBuff[Type] = true; + Main.buffNoSave[Type] = true; + Main.buffNoTimeDisplay[Type] = true; + longerExpertDebuff = false; + } + + public override void Update(Player player, ref int buffIndex) + { + CalamityPlayer calPlayer = player.Calamity(); + if (calPlayer.phantomicHeartRegen <= 0) + { + calPlayer.phantomicHeartRegen = 1000; + } + player.lifeRegen += 3; + } + } +} diff --git a/Buffs/StatBuffs/PhantomicRestorationBuff.png b/Buffs/StatBuffs/PhantomicRestorationBuff.png new file mode 100644 index 0000000000..806d74e358 Binary files /dev/null and b/Buffs/StatBuffs/PhantomicRestorationBuff.png differ diff --git a/CalPlayer/CalamityPlayer.cs b/CalPlayer/CalamityPlayer.cs index 61dab1884d..5cf0890c55 100644 --- a/CalPlayer/CalamityPlayer.cs +++ b/CalPlayer/CalamityPlayer.cs @@ -559,6 +559,9 @@ namespace CalamityMod.CalPlayer public bool starTaintedGenerator = false; public bool hallowedRune = false; public int hallowedRuneCooldown = 0; + public bool phantomicArtifact = false; + public int phantomicBulwarkCooldown = 0; + public int phantomicHeartRegen = 0; // 0 = can spawn, 720 = regen applied, 600 = regen stops and 10 sec cd before it can spawn again public bool silvaWings = false; public int icicleCooldown = 0; public bool rustyMedal = false; @@ -1574,6 +1577,7 @@ namespace CalamityMod.CalPlayer sRegen = false; sPower = false; hallowedRune = false; + phantomicArtifact = false; hallowedDefense = false; hallowedRegen = false; hallowedPower = false; @@ -2052,6 +2056,8 @@ namespace CalamityMod.CalPlayer icicleCooldown = 0; statisTimer = 0; hallowedRuneCooldown = 0; + phantomicBulwarkCooldown = 0; + phantomicHeartRegen = 0; sulphurBubbleCooldown = 0; ladHearts = 0; prismaticLasers = 0; @@ -5557,8 +5563,11 @@ namespace CalamityMod.CalPlayer int damageToDefense = (int)(newDamage * defenseStatDamageMult); defenseDamage += damageToDefense; - if (hurtSoundTimer == 0) - Main.PlaySound(mod.GetLegacySoundSlot(SoundType.Custom, "Sounds/Custom/DefenseDamage"), (int)player.position.X, (int)player.position.Y); + if (hurtSoundTimer == 0) + { + Main.PlaySound(mod.GetLegacySoundSlot(SoundType.Custom, "Sounds/Custom/DefenseDamage"), (int)player.position.X, (int)player.position.Y); + hurtSoundTimer = 30; + } string text = (-damageToDefense).ToString(); Color messageColor = Color.LightGray; @@ -5916,6 +5925,14 @@ namespace CalamityMod.CalPlayer } } + if (phantomicArtifact && player.ownedProjectileCounts[ModContent.ProjectileType()] != 0) + { + Projectile pro = Main.projectile.AsEnumerable().Where(projectile => projectile.friendly && projectile.owner == player.whoAmI && projectile.type == ModContent.ProjectileType()).First(); + phantomicBulwarkCooldown = 1200; // 20 second cooldown + pro.Kill(); + damage = (int)(damage * 0.8f); //20% damage reduction for a projectile. + } + if (auralisAuroraCounter >= 300) { damage -= 100; @@ -5993,8 +6010,11 @@ namespace CalamityMod.CalPlayer int damageToDefense = (int)(newDamage * defenseStatDamageMult); defenseDamage += damageToDefense; - if (hurtSoundTimer == 0) - Main.PlaySound(mod.GetLegacySoundSlot(SoundType.Custom, "Sounds/Custom/DefenseDamage"), (int)player.position.X, (int)player.position.Y); + if (hurtSoundTimer == 0) + { + Main.PlaySound(mod.GetLegacySoundSlot(SoundType.Custom, "Sounds/Custom/DefenseDamage"), (int)player.position.X, (int)player.position.Y); + hurtSoundTimer = 30; + } string text = (-damageToDefense).ToString(); Color messageColor = Color.LightGray; // Light Gray text because it's visible and defense icon is gray in the UI diff --git a/CalPlayer/CalamityPlayerLifeRegen.cs b/CalPlayer/CalamityPlayerLifeRegen.cs index a62a6c0d19..99f0269791 100644 --- a/CalPlayer/CalamityPlayerLifeRegen.cs +++ b/CalPlayer/CalamityPlayerLifeRegen.cs @@ -1,6 +1,7 @@ using CalamityMod.Buffs.Alcohol; using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Events; +using CalamityMod.Projectiles.Healing; using CalamityMod.Projectiles.Ranged; using CalamityMod.World; using Microsoft.Xna.Framework; @@ -668,6 +669,22 @@ namespace CalamityMod.CalPlayer player.lifeRegen += 3; } + if (modPlayer.phantomicHeartRegen <= 720 && modPlayer.phantomicHeartRegen >= 600) + { + player.lifeRegen += 5; //Boosts the life regen from 3 to 8 for a short time. + if (Main.rand.NextBool(2)) + { + 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; + Main.dust[regen].fadeIn = 1.3f; + Vector2 velocity = CalamityUtils.RandomVelocity(100f, 50f, 100f, 0.04f); + Main.dust[regen].velocity = velocity; + velocity.Normalize(); + velocity *= 34f; + Main.dust[regen].position = player.Center - velocity; + } + } + if (modPlayer.community) { float floatTypeBoost = 0.05f + diff --git a/CalPlayer/CalamityPlayerMiscEffects.cs b/CalPlayer/CalamityPlayerMiscEffects.cs index 27b9572866..542a494230 100644 --- a/CalPlayer/CalamityPlayerMiscEffects.cs +++ b/CalPlayer/CalamityPlayerMiscEffects.cs @@ -1078,6 +1078,10 @@ namespace CalamityMod.CalPlayer } // Cooldowns and timers + if (modPlayer.phantomicHeartRegen > 0 && modPlayer.phantomicHeartRegen < 1000) + modPlayer.phantomicHeartRegen--; + if (modPlayer.phantomicBulwarkCooldown > 0) + modPlayer.phantomicBulwarkCooldown--; if (modPlayer.dodgeCooldownTimer > 0) modPlayer.dodgeCooldownTimer--; if (modPlayer.KameiBladeUseDelay > 0) diff --git a/CalPlayer/CalamityPlayerOnHit.cs b/CalPlayer/CalamityPlayerOnHit.cs index dc7f1ac2b2..d8912cb3a9 100644 --- a/CalPlayer/CalamityPlayerOnHit.cs +++ b/CalPlayer/CalamityPlayerOnHit.cs @@ -18,6 +18,8 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; using static Terraria.ModLoader.ModContent; +using System.Linq; +using CalamityMod.Items.Weapons.Summon; namespace CalamityMod.CalPlayer { @@ -333,17 +335,45 @@ namespace CalamityMod.CalPlayer { if (npcCheck) { - if (modPlayer.sGenerator) + if (modPlayer.phantomicArtifact) { + int restoreBuff = BuffType(); + int empowerBuff = BuffType(); + int shieldBuff = BuffType(); int buffType = Utils.SelectRandom(Main.rand, new int[] { - BuffType(), - BuffType(), - BuffType() + restoreBuff, + empowerBuff, + shieldBuff }); - player.AddBuff(buffType, 120); + player.AddBuff(buffType, 420); //7 seconds + if (buffType == restoreBuff) + { + if (modPlayer.phantomicHeartRegen == 1000 && player.ownedProjectileCounts[ModContent.ProjectileType()] == 0 && Main.rand.NextBool(20)) + { + Vector2 target = proj.Center; + target.Y += Main.rand.Next(-50, 50); + target.X += Main.rand.Next(-50, 50); + Projectile.NewProjectile(target, Vector2.Zero, ModContent.ProjectileType(), 0, 0f, player.whoAmI, 0f); + } + } + else if (buffType == empowerBuff) + { + if (player.ownedProjectileCounts[ModContent.ProjectileType()] < 5 && Main.rand.NextBool(10)) //at most 5 + { + int damage = (int)(100 * player.MinionDamage()); + Projectile.NewProjectile(proj.position, proj.velocity, ModContent.ProjectileType(), damage, 1f, player.whoAmI, 0f); + } + } + else + { + if (player.ownedProjectileCounts[ModContent.ProjectileType()] == 0 && modPlayer.phantomicBulwarkCooldown == 0) + { + Projectile.NewProjectile(player.position, Vector2.Zero, ModContent.ProjectileType(), 0, 0f, player.whoAmI, 0f); + } + } } - if (modPlayer.hallowedRune) + else if (modPlayer.hallowedRune) { int buffType = Utils.SelectRandom(Main.rand, new int[] { @@ -353,6 +383,16 @@ namespace CalamityMod.CalPlayer }); player.AddBuff(buffType, 120); } + else if (modPlayer.sGenerator) + { + int buffType = Utils.SelectRandom(Main.rand, new int[] + { + BuffType(), + BuffType(), + BuffType() + }); + player.AddBuff(buffType, 120); + } } // Fearmonger set's colossal life regeneration diff --git a/Items/Accessories/HallowedRune.cs b/Items/Accessories/HallowedRune.cs index 91b095d965..04be50fda8 100644 --- a/Items/Accessories/HallowedRune.cs +++ b/Items/Accessories/HallowedRune.cs @@ -9,7 +9,7 @@ namespace CalamityMod.Items.Accessories public override void SetStaticDefaults() { DisplayName.SetDefault("Hallowed Rune"); - Tooltip.SetDefault("Whenever your minions hit an enemy you will gain a random buff\n" + + Tooltip.SetDefault("Whenever your minions hit an enemy you will gain a random buff, does not stack with downgrades\n" + "These buffs will either boost your defense, summon damage, or life regen for a while\n" + "If you have the offensive boost, enemies hit by minions will sometimes be hit by stars"); } diff --git a/Items/Accessories/PhantomicArtifact.cs b/Items/Accessories/PhantomicArtifact.cs new file mode 100644 index 0000000000..a9183af297 --- /dev/null +++ b/Items/Accessories/PhantomicArtifact.cs @@ -0,0 +1,49 @@ +using System.Collections.Generic; +using Terraria; +using Terraria.ModLoader; +using Terraria.ID; +using CalamityMod.Items.Materials; +using CalamityMod.Items.Placeables.Ores; + +namespace CalamityMod.Items.Accessories +{ + class PhantomicArtifact : ModItem + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Phantomic Artifact"); + Tooltip.SetDefault("Whenever your minions hit an enemy you will gain a random phantomic buff, does not stack with downgrades\n" + + "These buffs will either boost your defense, summon damage, or life regen for a while\n" + + "If you have the offensive boost, enemies hit by minions will sometimes be hit by phantomic knives\n" + + "If you have the regenerative boost, a phantomic heart will occasionally materialise granting massive health regen\n" + + "If you have the defensive boost, a phantomic bulwark will absorb 20% of the next projectile's damage that hits the bulwark, shattering it"); + } + + public override void SetDefaults() + { + item.width = 48; + item.height = 62; + item.value = CalamityGlobalItem.RarityPureGreenBuyPrice; + item.rare = ItemRarityID.Red; + item.Calamity().customRarity = CalamityRarity.PureGreen; + item.accessory = true; + } + + public override void UpdateAccessory(Player player, bool hideVisual) + { + player.Calamity().phantomicArtifact = true; + } + + public override void AddRecipes() + { + ModRecipe recipe = new ModRecipe(mod); + recipe.AddIngredient(ModContent.ItemType()); + recipe.AddIngredient(ModContent.ItemType(), 10); + recipe.AddIngredient(ModContent.ItemType(), 10); + recipe.AddIngredient(ModContent.ItemType(), 20); + recipe.AddTile(TileID.LunarCraftingStation); + recipe.SetResult(this); + recipe.AddRecipe(); + } + } +} diff --git a/Items/Accessories/PhantomicArtifact.png b/Items/Accessories/PhantomicArtifact.png new file mode 100644 index 0000000000..50bc4f200b Binary files /dev/null and b/Items/Accessories/PhantomicArtifact.png differ diff --git a/Items/Weapons/DraedonsArsenal/Phaseslayer.cs b/Items/Weapons/DraedonsArsenal/Phaseslayer.cs index ec5dbcf111..f4db0f2ee9 100644 --- a/Items/Weapons/DraedonsArsenal/Phaseslayer.cs +++ b/Items/Weapons/DraedonsArsenal/Phaseslayer.cs @@ -10,7 +10,7 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal { public class Phaseslayer : ModItem { - public const int Damage = 3599; + public const int Damage = 1440; // When below this percentage of charge, the sword is small instead of big. public const float SizeChargeThreshold = 0.25f; // The small sword barely affects damage on its own because damage is already dropping significantly at low charge. diff --git a/Items/Weapons/DraedonsArsenal/PlasmaGrenade.cs b/Items/Weapons/DraedonsArsenal/PlasmaGrenade.cs index 138fbbb380..adb3adae78 100644 --- a/Items/Weapons/DraedonsArsenal/PlasmaGrenade.cs +++ b/Items/Weapons/DraedonsArsenal/PlasmaGrenade.cs @@ -26,7 +26,7 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal item.width = 22; item.height = 28; - item.damage = 2270; + item.damage = 1963; item.noMelee = true; item.noUseGraphic = true; item.consumable = true; diff --git a/Items/Weapons/DraedonsArsenal/PoleWarper.cs b/Items/Weapons/DraedonsArsenal/PoleWarper.cs index b954d4a09f..081e167bff 100644 --- a/Items/Weapons/DraedonsArsenal/PoleWarper.cs +++ b/Items/Weapons/DraedonsArsenal/PoleWarper.cs @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal CalamityGlobalItem modItem = item.Calamity(); item.shootSpeed = 10f; - item.damage = 319; + item.damage = 367; item.mana = 12; item.width = 38; item.height = 24; diff --git a/Items/Weapons/DraedonsArsenal/TeslaCannon.cs b/Items/Weapons/DraedonsArsenal/TeslaCannon.cs index fedfd49904..301a859937 100644 --- a/Items/Weapons/DraedonsArsenal/TeslaCannon.cs +++ b/Items/Weapons/DraedonsArsenal/TeslaCannon.cs @@ -10,7 +10,7 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal { public class TeslaCannon : ModItem { - private int BaseDamage = 2240; + private int BaseDamage = 1120; public override void SetStaticDefaults() { diff --git a/Items/Weapons/Magic/AlphaRay.cs b/Items/Weapons/Magic/AlphaRay.cs index e55fcdd135..a1b44f1e98 100644 --- a/Items/Weapons/Magic/AlphaRay.cs +++ b/Items/Weapons/Magic/AlphaRay.cs @@ -47,7 +47,7 @@ namespace CalamityMod.Items.Weapons.Magic { if (player.altFunctionUse == 2) { - Projectile.NewProjectile(position.X, position.Y, speedX, speedY, ModContent.ProjectileType(), (int)(damage * 1.75), knockBack, player.whoAmI, 0f, 0f); + Projectile.NewProjectile(position.X, position.Y, speedX * 1.35f, speedY * 1.35f, ModContent.ProjectileType(), (int)(damage * 1.75), knockBack, player.whoAmI, 0f, 0f); } else { @@ -66,7 +66,7 @@ namespace CalamityMod.Items.Weapons.Magic { value9 -= vector7; } - Projectile.NewProjectile(vector2.X + value9.X, vector2.Y + value9.Y, speedX, speedY, type, (int)(damage * 0.8), knockBack, player.whoAmI, 0.0f, 0.0f); + Projectile.NewProjectile(vector2.X + value9.X, vector2.Y + value9.Y, speedX * 1.5f, speedY * 1.5f, type, (int)(damage * 0.8), knockBack, player.whoAmI, 0.0f, 0.0f); int laser = Projectile.NewProjectile(vector2.X + value9.X, vector2.Y + value9.Y, speedX * 2f, speedY * 2f, ProjectileID.LaserMachinegunLaser, (int)(damage * 0.4), knockBack, player.whoAmI, 0f, 0f); Main.projectile[laser].timeLeft = 120; Main.projectile[laser].tileCollide = false; diff --git a/Items/Weapons/Magic/DeathhailStaff.cs b/Items/Weapons/Magic/DeathhailStaff.cs index b33e6e8a2f..53447bca84 100644 --- a/Items/Weapons/Magic/DeathhailStaff.cs +++ b/Items/Weapons/Magic/DeathhailStaff.cs @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Weapons.Magic public override void SetDefaults() { - item.damage = 90; + item.damage = 126; item.magic = true; item.mana = 12; item.width = 80; @@ -81,7 +81,7 @@ namespace CalamityMod.Items.Weapons.Magic int num107 = 2; for (int num108 = 0; num108 < num107; num108++) { - vector2 = new Vector2(player.position.X + (float)player.width * 0.5f + (float)(Main.rand.Next(201) * -(float)player.direction) + ((float)Main.mouseX + Main.screenPosition.X - player.position.X), player.MountedCenter.Y - 600f); + vector2 = new Vector2(player.position.X + (float)player.width * 0.5f + (float)(Main.rand.Next(91) * -(float)player.direction) + ((float)Main.mouseX + Main.screenPosition.X - player.position.X), player.MountedCenter.Y - 600f); vector2.X = (vector2.X + player.Center.X) / 2f + (float)Main.rand.Next(-200, 201); vector2.Y -= (float)(100 * num108); num78 = (float)Main.mouseX + Main.screenPosition.X - vector2.X; diff --git a/Items/Weapons/Magic/FaceMelter.cs b/Items/Weapons/Magic/FaceMelter.cs index 71225809b5..90c6ace174 100644 --- a/Items/Weapons/Magic/FaceMelter.cs +++ b/Items/Weapons/Magic/FaceMelter.cs @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Weapons.Magic public override void SetDefaults() { - item.damage = 100; + item.damage = 140; item.magic = true; item.mana = 10; item.width = 56; diff --git a/Items/Weapons/Magic/LightGodsBrilliance.cs b/Items/Weapons/Magic/LightGodsBrilliance.cs index b8a7ffad5b..01200b069a 100644 --- a/Items/Weapons/Magic/LightGodsBrilliance.cs +++ b/Items/Weapons/Magic/LightGodsBrilliance.cs @@ -17,7 +17,7 @@ namespace CalamityMod.Items.Weapons.Magic public override void SetDefaults() { - item.damage = 50; + item.damage = 62; item.magic = true; item.mana = 4; item.width = 34; diff --git a/Items/Weapons/Magic/RecitationoftheBeast.cs b/Items/Weapons/Magic/RecitationoftheBeast.cs index cd21ca99e8..be3bc05a65 100644 --- a/Items/Weapons/Magic/RecitationoftheBeast.cs +++ b/Items/Weapons/Magic/RecitationoftheBeast.cs @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Weapons.Magic item.mana = 24; item.width = 38; item.height = 34; - item.damage = 120; + item.damage = 138; item.noMelee = true; item.useAnimation = 18; item.useStyle = ItemUseStyleID.HoldingOut; diff --git a/Items/Weapons/Magic/SoulPiercer.cs b/Items/Weapons/Magic/SoulPiercer.cs index 0bd9710bca..eaf734d019 100644 --- a/Items/Weapons/Magic/SoulPiercer.cs +++ b/Items/Weapons/Magic/SoulPiercer.cs @@ -19,7 +19,7 @@ namespace CalamityMod.Items.Weapons.Magic public override void SetDefaults() { - item.damage = 62; + item.damage = 99; item.magic = true; item.mana = 19; item.width = 64; diff --git a/Items/Weapons/Magic/StratusSphere.cs b/Items/Weapons/Magic/StratusSphere.cs index 20a7666a33..db5ed2dcbc 100644 --- a/Items/Weapons/Magic/StratusSphere.cs +++ b/Items/Weapons/Magic/StratusSphere.cs @@ -12,7 +12,8 @@ namespace CalamityMod.Items.Weapons.Magic public override void SetStaticDefaults() { DisplayName.SetDefault("Stratus Sphere"); - Tooltip.SetDefault("Fires an energy orb containing the essence of our stratosphere"); + Tooltip.SetDefault("Fires an energy orb containing the essence of our stratosphere\n" + + "Up to six of these can be active at a time"); } public override void SetDefaults() { @@ -39,7 +40,9 @@ namespace CalamityMod.Items.Weapons.Magic item.Calamity().customRarity = CalamityRarity.PureGreen; } - public override void AddRecipes() + public override bool CanUseItem(Player player) => player.ownedProjectileCounts[item.shoot] <= 6; + + public override void AddRecipes() { ModRecipe recipe = new ModRecipe(mod); recipe.AddIngredient(ModContent.ItemType(), 5); diff --git a/Items/Weapons/Melee/CosmicShiv.cs b/Items/Weapons/Melee/CosmicShiv.cs index c3cf957ed5..fe1d83c005 100644 --- a/Items/Weapons/Melee/CosmicShiv.cs +++ b/Items/Weapons/Melee/CosmicShiv.cs @@ -28,7 +28,7 @@ namespace CalamityMod.Items.Weapons.Melee item.width = 44; item.height = 44; - item.damage = 266; + item.damage = 218; item.melee = true; item.knockBack = 9f; diff --git a/Items/Weapons/Melee/DevilsDevastation.cs b/Items/Weapons/Melee/DevilsDevastation.cs index 767b489371..291c8f6184 100644 --- a/Items/Weapons/Melee/DevilsDevastation.cs +++ b/Items/Weapons/Melee/DevilsDevastation.cs @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Weapons.Melee { item.width = 118; item.height = 118; - item.damage = 208; + item.damage = 170; item.melee = true; item.useAnimation = 20; item.useTime = 20; diff --git a/Items/Weapons/Melee/EmpyreanKnives.cs b/Items/Weapons/Melee/EmpyreanKnives.cs index 33d5ca9e0f..a7da8b946f 100644 --- a/Items/Weapons/Melee/EmpyreanKnives.cs +++ b/Items/Weapons/Melee/EmpyreanKnives.cs @@ -19,7 +19,7 @@ namespace CalamityMod.Items.Weapons.Melee public override void SetDefaults() { item.width = 18; - item.damage = 240; + item.damage = 230; item.melee = true; item.noMelee = true; item.noUseGraphic = true; diff --git a/Items/Weapons/Melee/Excelsus.cs b/Items/Weapons/Melee/Excelsus.cs index 6236417a41..c401366564 100644 --- a/Items/Weapons/Melee/Excelsus.cs +++ b/Items/Weapons/Melee/Excelsus.cs @@ -19,7 +19,7 @@ namespace CalamityMod.Items.Weapons.Melee public override void SetDefaults() { item.width = 78; - item.damage = 340; + item.damage = 279; item.melee = true; item.useAnimation = 15; item.useStyle = ItemUseStyleID.SwingThrow; diff --git a/Items/Weapons/Melee/FourSeasonsGalaxia.cs b/Items/Weapons/Melee/FourSeasonsGalaxia.cs index 32d0630103..2fd527bd97 100644 --- a/Items/Weapons/Melee/FourSeasonsGalaxia.cs +++ b/Items/Weapons/Melee/FourSeasonsGalaxia.cs @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Weapons.Melee public override void SetDefaults() { item.width = 70; - item.damage = 120; + item.damage = 66; item.melee = true; item.useAnimation = 18; item.useTime = 18; diff --git a/Items/Weapons/Melee/GalaxySmasherMelee.cs b/Items/Weapons/Melee/GalaxySmasherMelee.cs index cfde400c44..8be9eccf38 100644 --- a/Items/Weapons/Melee/GalaxySmasherMelee.cs +++ b/Items/Weapons/Melee/GalaxySmasherMelee.cs @@ -9,7 +9,7 @@ namespace CalamityMod.Items.Weapons.Melee { public class GalaxySmasherMelee : ModItem { - public static int BaseDamage = 192; + public static int BaseDamage = 240; public static float Speed = 18f; public override void SetStaticDefaults() diff --git a/Items/Weapons/Melee/PrismaticBreaker.cs b/Items/Weapons/Melee/PrismaticBreaker.cs index a6495208d1..5221b72bca 100644 --- a/Items/Weapons/Melee/PrismaticBreaker.cs +++ b/Items/Weapons/Melee/PrismaticBreaker.cs @@ -53,7 +53,7 @@ namespace CalamityMod.Items.Weapons.Melee public override void SetDefaults() { - item.damage = 720; + item.damage = 662; item.useStyle = ItemUseStyleID.SwingThrow; item.useTime = item.useAnimation = 15; item.useTurn = true; @@ -105,6 +105,7 @@ namespace CalamityMod.Items.Weapons.Melee { if (player.altFunctionUse == 2) { + item.useTime = item.useAnimation = 13; item.UseSound = SoundID.Item1; item.useStyle = ItemUseStyleID.SwingThrow; item.useTurn = true; @@ -114,6 +115,7 @@ namespace CalamityMod.Items.Weapons.Melee } else { + item.useTime = item.useAnimation = 15; item.UseSound = mod.GetLegacySoundSlot(SoundType.Item, "Sounds/Item/CrystylCharge"); item.useStyle = ItemUseStyleID.HoldingOut; item.useTurn = false; diff --git a/Items/Weapons/Melee/ScourgeoftheCosmos.cs b/Items/Weapons/Melee/ScourgeoftheCosmos.cs index e0eab8f07d..e6ab4a736a 100644 --- a/Items/Weapons/Melee/ScourgeoftheCosmos.cs +++ b/Items/Weapons/Melee/ScourgeoftheCosmos.cs @@ -17,7 +17,7 @@ namespace CalamityMod.Items.Weapons.Melee public override void SetDefaults() { item.width = item.height = 64; - item.damage = 520; + item.damage = 478; item.melee = true; item.noMelee = true; item.noUseGraphic = true; diff --git a/Items/Weapons/Melee/StreamGouge.cs b/Items/Weapons/Melee/StreamGouge.cs index cfab748d33..d9486d5562 100644 --- a/Items/Weapons/Melee/StreamGouge.cs +++ b/Items/Weapons/Melee/StreamGouge.cs @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Weapons.Melee public override void SetDefaults() { item.width = 100; - item.damage = 140; + item.damage = 115; item.melee = true; item.noMelee = true; item.useTurn = true; diff --git a/Items/Weapons/Melee/TheObliterator.cs b/Items/Weapons/Melee/TheObliterator.cs index 5ba8aca6f5..3f5ef4d0d9 100644 --- a/Items/Weapons/Melee/TheObliterator.cs +++ b/Items/Weapons/Melee/TheObliterator.cs @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Weapons.Melee item.width = 42; item.height = 40; item.melee = true; - item.damage = 370; + item.damage = 303; item.knockBack = 7.5f; item.useTime = 20; item.useAnimation = 20; diff --git a/Items/Weapons/Rogue/GodsParanoia.cs b/Items/Weapons/Rogue/GodsParanoia.cs index 0ef786ce65..f0013ca3cf 100644 --- a/Items/Weapons/Rogue/GodsParanoia.cs +++ b/Items/Weapons/Rogue/GodsParanoia.cs @@ -10,7 +10,7 @@ namespace CalamityMod.Items.Weapons.Rogue { public class GodsParanoia : RogueWeapon { - private static int damage = 50; + private static int damage = 60; private static int knockBack = 5; public override void SetStaticDefaults() diff --git a/Items/Weapons/Summon/CorvidHarbringerStaff.cs b/Items/Weapons/Summon/CorvidHarbringerStaff.cs index a12e04ce19..5bc22b7197 100644 --- a/Items/Weapons/Summon/CorvidHarbringerStaff.cs +++ b/Items/Weapons/Summon/CorvidHarbringerStaff.cs @@ -25,7 +25,7 @@ namespace CalamityMod.Items.Weapons.Summon item.UseSound = SoundID.DD2_BetsyFlyingCircleAttack; item.summon = true; item.mana = 11; - item.damage = 120; + item.damage = 114; item.knockBack = 2f; item.autoReuse = true; item.useTime = item.useAnimation = 10; diff --git a/Items/Weapons/Summon/CosmicViperEngine.cs b/Items/Weapons/Summon/CosmicViperEngine.cs index 41288d656b..27fcf5ea1f 100644 --- a/Items/Weapons/Summon/CosmicViperEngine.cs +++ b/Items/Weapons/Summon/CosmicViperEngine.cs @@ -19,7 +19,7 @@ namespace CalamityMod.Items.Weapons.Summon public override void SetDefaults() { - item.damage = 118; + item.damage = 142; item.mana = 10; item.width = 46; item.height = 28; diff --git a/Items/Weapons/Summon/EndoHydraStaff.cs b/Items/Weapons/Summon/EndoHydraStaff.cs index ea5071e4ef..2d7eb22333 100644 --- a/Items/Weapons/Summon/EndoHydraStaff.cs +++ b/Items/Weapons/Summon/EndoHydraStaff.cs @@ -25,7 +25,7 @@ namespace CalamityMod.Items.Weapons.Summon item.UseSound = SoundID.Item60; item.summon = true; item.mana = 25; - item.damage = 180; + item.damage = 225; item.knockBack = 3f; item.autoReuse = true; item.useTime = item.useAnimation = 10; diff --git a/Items/Weapons/Summon/StaffoftheMechworm.cs b/Items/Weapons/Summon/StaffoftheMechworm.cs index 21c52739ce..e214ed3704 100644 --- a/Items/Weapons/Summon/StaffoftheMechworm.cs +++ b/Items/Weapons/Summon/StaffoftheMechworm.cs @@ -10,7 +10,7 @@ namespace CalamityMod.Items.Weapons.Summon public class StaffoftheMechworm : ModItem { // This value is also referenced by the God Slayer and Auric summoner helmets. - public const int BaseDamage = 255; // originally 325 + public const int BaseDamage = 166; // originally 325 public override void SetStaticDefaults() { DisplayName.SetDefault("Staff of the Mechworm"); diff --git a/Projectiles/DraedonsArsenal/PoleWarperSummon.cs b/Projectiles/DraedonsArsenal/PoleWarperSummon.cs index b9800f1a88..dd6e6f73c3 100644 --- a/Projectiles/DraedonsArsenal/PoleWarperSummon.cs +++ b/Projectiles/DraedonsArsenal/PoleWarperSummon.cs @@ -54,7 +54,7 @@ namespace CalamityMod.Projectiles.DraedonsArsenal projectile.localAI[0] = 1f; } GrantBuffs(player); - NPC potentialTarget = projectile.Center.MinionHoming(900f, player); + NPC potentialTarget = projectile.Center.MinionHoming(1400f, player); if (potentialTarget is null) { PlayerMovement(player); @@ -63,7 +63,7 @@ namespace CalamityMod.Projectiles.DraedonsArsenal else { NPCMovement(potentialTarget); - if (Time % 90f < 60f) + if (Time % 60f < 35f) { RepelMovement(); } @@ -136,22 +136,22 @@ namespace CalamityMod.Projectiles.DraedonsArsenal } } } - if (Time % 90f < 40f) + if (Time % 60f < 20f) { float offsetAngle = AngularOffset * 0.5f + (!North).ToInt() * MathHelper.Pi; Vector2 destination = npc.Center + Vector2.UnitY.RotatedBy(offsetAngle) * 180f; projectile.velocity = (projectile.velocity * 4f + projectile.DirectionTo(destination) * 10f) / 5f; - projectile.velocity = projectile.velocity.SafeNormalize(Vector2.UnitY) * 23f; + projectile.velocity = projectile.velocity.SafeNormalize(Vector2.UnitY) * 25f; projectile.rotation = projectile.AngleTo(npc.Center) + MathHelper.PiOver2; } - else if (Time % 90f < 60f) + else if (Time % 60f < 35f) { projectile.velocity *= 0.96f; projectile.rotation += 0.05f; } - else if (Time % 90f == 60f) + else if (Time % 60f == 35f) { - projectile.velocity = projectile.DirectionTo(npc.Center) * 26f; + projectile.velocity = projectile.DirectionTo(npc.Center) * 29f; projectile.rotation = projectile.AngleTo(npc.Center) + MathHelper.PiOver2; } } diff --git a/Projectiles/Healing/PhantomicHeart.cs b/Projectiles/Healing/PhantomicHeart.cs new file mode 100644 index 0000000000..2f92d5ab33 --- /dev/null +++ b/Projectiles/Healing/PhantomicHeart.cs @@ -0,0 +1,98 @@ +using CalamityMod.CalPlayer; +using Microsoft.Xna.Framework; +using System.IO; +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Projectiles.Healing +{ + class PhantomicHeart : ModProjectile + { + private int floatTimer = 0; + + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Phantomic Heart"); + Main.projFrames[projectile.type] = 4; + + } + + public override void SetDefaults() + { + projectile.width = 28; + projectile.height = 42; + projectile.friendly = true; + projectile.alpha = 20; + projectile.penetrate = -1; + projectile.timeLeft = 600; + ProjectileID.Sets.TrailCacheLength[projectile.type] = 4; + ProjectileID.Sets.TrailingMode[projectile.type] = 0; + } + + public override void SendExtraAI(BinaryWriter writer) + { + writer.Write(floatTimer); + } + + public override void ReceiveExtraAI(BinaryReader reader) + { + floatTimer = reader.ReadInt32(); + } + + public override void AI() + { + if (floatTimer >= 10) + { + projectile.velocity.Y *= 0.99f; + } + else + { + projectile.velocity.Y *= 1.01f; + } + if (floatTimer >= 20) + floatTimer = 0; + else + floatTimer++; + + for (int i = 0; i < 3; i++) + { + Dust.NewDust(projectile.TopLeft, projectile.width, projectile.height, 5, Main.rand.NextFloat(-3, 3), -5f, 0, new Color(99, 54, 84), Main.rand.NextFloat(0.5f, 1.5f)); + } + + Player player = Main.player[projectile.owner]; + Vector2 playerVector = player.Center - projectile.Center; + float playerDist = playerVector.Length(); + if (projectile.timeLeft < 500 && playerDist < 50f && projectile.position.X < player.position.X + player.width && projectile.position.X + projectile.width > player.position.X && projectile.position.Y < player.position.Y + player.height && projectile.position.Y + projectile.height > player.position.Y) + { + if (player.whoAmI == Main.myPlayer) + { + CalamityPlayer calPlayer = player.Calamity(); + calPlayer.phantomicHeartRegen = 720; + projectile.Kill(); + } + } + if (player.lifeMagnet && projectile.timeLeft < 510) + { + float N = 18f; + playerDist = 15f / playerDist; + playerVector.X *= playerDist; + playerVector.Y *= playerDist; + projectile.velocity.X = (projectile.velocity.X * N + playerVector.X) / (N + 1f); + projectile.velocity.Y = (projectile.velocity.Y * N + playerVector.Y) / (N + 1f); + } + projectile.frameCounter++; + if (projectile.frameCounter > 5) + { + projectile.frame++; + projectile.frameCounter = 0; + if (projectile.frame % 2 == 0) + projectile.netUpdate = true; + } + if (projectile.frame > 3) + { + projectile.frame = 0; + } + } + } +} diff --git a/Projectiles/Healing/PhantomicHeart.png b/Projectiles/Healing/PhantomicHeart.png new file mode 100644 index 0000000000..72436358aa Binary files /dev/null and b/Projectiles/Healing/PhantomicHeart.png differ diff --git a/Projectiles/Rogue/GodsParanoiaProj.cs b/Projectiles/Rogue/GodsParanoiaProj.cs index f3d4376f3f..5b7af5635a 100644 --- a/Projectiles/Rogue/GodsParanoiaProj.cs +++ b/Projectiles/Rogue/GodsParanoiaProj.cs @@ -46,7 +46,7 @@ namespace CalamityMod.Projectiles.Rogue Main.dust[num137].noGravity = true; } - projectile.StickyProjAI(15); + projectile.StickyProjAI(30); if (projectile.ai[0] == 1f) { diff --git a/Projectiles/Summon/CosmicViperSummon.cs b/Projectiles/Summon/CosmicViperSummon.cs index 0b00106531..ac5c1bd993 100644 --- a/Projectiles/Summon/CosmicViperSummon.cs +++ b/Projectiles/Summon/CosmicViperSummon.cs @@ -94,7 +94,7 @@ namespace CalamityMod.Projectiles.Summon projectile.MinionAntiClump(); - float detectRange = 700f; + float detectRange = 1100f; Vector2 targetVec = projectile.position; bool foundTarget = false; int targetIndex = -1; diff --git a/Projectiles/Summon/PhantomicDagger.cs b/Projectiles/Summon/PhantomicDagger.cs new file mode 100644 index 0000000000..8681e74e34 --- /dev/null +++ b/Projectiles/Summon/PhantomicDagger.cs @@ -0,0 +1,145 @@ +using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework.Graphics; +using System; +using System.IO; +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Projectiles.Summon +{ + class PhantomicDagger : ModProjectile + { + private bool homing = false; + + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Phantom Dagger"); + ProjectileID.Sets.TrailingMode[projectile.type] = 0; + ProjectileID.Sets.TrailCacheLength[projectile.type] = 7; + } + + public override void SetDefaults() + { + projectile.width = 12; + projectile.height = 38; + projectile.netImportant = true; + projectile.friendly = true; + projectile.ignoreWater = true; + projectile.timeLeft = 600; + projectile.penetrate = 1; + projectile.tileCollide = false; + projectile.alpha = 200; + projectile.minion = true; + } + + public override bool? CanHitNPC(NPC target) + { + if (homing) + return null; //cannot hit until it is beginning to home. + return false; + } + + public override void SendExtraAI(BinaryWriter writer) + { + writer.Write(homing); + } + + public override void ReceiveExtraAI(BinaryReader reader) + { + homing = reader.ReadBoolean(); + } + + public override void ModifyHitNPC(NPC target, ref int damage, ref float knockback, ref bool crit, ref int hitDirection) + { + //Avoid touching things that you probably aren't meant to damage + if (target.defense > 999 || target.Calamity().DR >= 0.95f || target.Calamity().unbreakableDR) + return; + int cap = (int)(damage * 1.05f); //capped at 5% dr ignoring + damage = Math.Min((int)(damage * (1 / (1 - target.Calamity().DR))), cap); + } + + public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) + { + for (int d = 0; d < 4; d++) + { + int shadow = Dust.NewDust(projectile.position, projectile.width, projectile.height, 27, 0f, 0f, 100, new Color(0, 0, 0), 2f); + Main.dust[shadow].velocity *= 3f; + if (Main.rand.NextBool(2)) + { + Main.dust[shadow].scale = 0.5f; + Main.dust[shadow].fadeIn = 1f + (float)Main.rand.Next(10) * 0.1f; + } + } + for (int d = 0; d < 12; d++) + { + int shadow = Dust.NewDust(projectile.position, projectile.width, projectile.height, 27, 0f, 0f, 100, new Color(0, 0, 0), 3f); + Main.dust[shadow].noGravity = true; + Main.dust[shadow].velocity *= 5f; + shadow = Dust.NewDust(projectile.position, projectile.width, projectile.height, 27, 0f, 0f, 100, new Color(0, 0, 0), 2f); + Main.dust[shadow].velocity *= 2f; + } + + } + + public override bool PreDraw(SpriteBatch spriteBatch, Color lightColor) + { + if (CalamityConfig.Instance.Afterimages) + { + CalamityGlobalProjectile.DrawCenteredAndAfterimage(projectile, lightColor, ProjectileID.Sets.TrailingMode[projectile.type], 1); + } + return true; + } + + public override void AI() + { + if (Main.dust.Length < Main.maxDust - 3) + { + for (int i = 0; i < 3; i++) + { + int dust = Dust.NewDust(projectile.position, projectile.width, projectile.height, 27, 0f, 0f, 100, new Color(0, 0, 0), 3f); //new Color(99, 54, 84) + Main.dust[dust].noGravity = true; + } + } + if (projectile.alpha != 0) + { + projectile.rotation -= 0.25f; + projectile.velocity.X *= 0.985f; + projectile.velocity.Y *= 0.985f; + if (projectile.alpha < 3) + { + projectile.alpha = 0; + homing = true; + } + else + projectile.alpha -= 3; + } + else + { + NPC target = CalamityUtils.MinionHoming(projectile.Center, 1500f, Main.player[projectile.owner]); + if (target != null) + { + float num550 = 40f; + Vector2 vector43 = new Vector2(projectile.position.X + (float)projectile.width * 0.5f, projectile.position.Y + (float)projectile.height * 0.5f); + float num551 = target.Center.X - vector43.X; + float num552 = target.Center.Y - vector43.Y; + float num553 = (float)Math.Sqrt((double)(num551 * num551 + num552 * num552)); + if (num553 < 100f) + { + num550 = 28f; //14 + } + num553 = num550 / num553; + num551 *= num553; + num552 *= num553; + projectile.velocity.X = (projectile.velocity.X * 25f + num551) / 26f; + projectile.velocity.Y = (projectile.velocity.Y * 25f + num552) / 26f; + } + else + { + projectile.velocity *= 0.9f; + } + projectile.rotation = projectile.velocity.ToRotation() + (float)Math.Atan(90); + } + } + } +} diff --git a/Projectiles/Summon/PhantomicDagger.png b/Projectiles/Summon/PhantomicDagger.png new file mode 100644 index 0000000000..d0f6ad90ae Binary files /dev/null and b/Projectiles/Summon/PhantomicDagger.png differ diff --git a/Projectiles/Summon/PhantomicShield.cs b/Projectiles/Summon/PhantomicShield.cs new file mode 100644 index 0000000000..d0dc4f5727 --- /dev/null +++ b/Projectiles/Summon/PhantomicShield.cs @@ -0,0 +1,109 @@ +using CalamityMod.Buffs.StatBuffs; +using Microsoft.Xna.Framework; +using System.IO; +using Terraria; +using Terraria.ModLoader; + +namespace CalamityMod.Projectiles.Summon +{ + class PhantomicShield : ModProjectile + { + public const float floatDist = 50f; + + public int deathTimer = 240; + + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Phantomic Bulwark"); + Main.projFrames[projectile.type] = 4; + } + + public override void SetDefaults() + { + projectile.width = 38; + projectile.height = 56; + projectile.netImportant = true; + projectile.friendly = true; + projectile.ignoreWater = true; + projectile.minionSlots = 0f; + projectile.timeLeft = 18000; + projectile.penetrate = 1; + projectile.tileCollide = false; + projectile.timeLeft *= 5; + projectile.minion = true; + } + + public override void SendExtraAI(BinaryWriter writer) + { + writer.Write(deathTimer); + } + + public override void ReceiveExtraAI(BinaryReader reader) + { + deathTimer = reader.ReadInt32(); + } + + public override void Kill(int timeLeft) + { + for (int d = 0; d < 6; d++) + { + int shadow = Dust.NewDust(projectile.position, projectile.width, projectile.height, 27, 0f, 0f, 100, new Color(0, 0, 0), 2f); + Main.dust[shadow].velocity *= 3f; + if (Main.rand.NextBool(2)) + { + Main.dust[shadow].scale = 0.5f; + Main.dust[shadow].fadeIn = 1f + (float)Main.rand.Next(10) * 0.1f; + } + } + for (int d = 0; d < 18; d++) + { + int shadow = Dust.NewDust(projectile.position, projectile.width, projectile.height, 27, 0f, 0f, 100, new Color(0, 0, 0), 3f); + Main.dust[shadow].noGravity = true; + Main.dust[shadow].velocity *= 5f; + shadow = Dust.NewDust(projectile.position, projectile.width, projectile.height, 27, 0f, 0f, 100, new Color(0, 0, 0), 2f); + Main.dust[shadow].velocity *= 2f; + } + } + + public override void AI() + { + Player owner = Main.player[projectile.owner]; + NPC target = CalamityUtils.MinionHoming(owner.position, 1500f, owner); + if (target != null) + { + Vector2 pos1 = owner.position; + Vector2 pos2 = target.position; + projectile.ai[0] = (pos2 - pos1).ToRotation(); + } + else + { + projectile.ai[0] -= MathHelper.ToRadians(2f); + } + if (target == null) + { + deathTimer--; + } + else + { + deathTimer = 240; + } + if (owner.dead || deathTimer <= 0) + projectile.Kill(); + projectile.Center = owner.Center + projectile.ai[0].ToRotationVector2() * floatDist; + projectile.rotation = (owner.Center - projectile.Center).ToRotation(); + + projectile.frameCounter++; + if (projectile.frameCounter > 5) + { + projectile.frame++; + projectile.frameCounter = 0; + if (projectile.frame % 2 == 0) + projectile.netUpdate = true; + } + if (projectile.frame > 3) + { + projectile.frame = 0; + } + } + } +} diff --git a/Projectiles/Summon/PhantomicShield.png b/Projectiles/Summon/PhantomicShield.png new file mode 100644 index 0000000000..162c288eb6 Binary files /dev/null and b/Projectiles/Summon/PhantomicShield.png differ