diff --git a/CalPlayer/CalamityPlayerMiscEffects.cs b/CalPlayer/CalamityPlayerMiscEffects.cs index 02d3df8812..66c3502a0c 100644 --- a/CalPlayer/CalamityPlayerMiscEffects.cs +++ b/CalPlayer/CalamityPlayerMiscEffects.cs @@ -1134,9 +1134,10 @@ namespace CalamityMod.CalPlayer } else { + // First Shadowflame is +1, Statis' Blessing is +2, Statis' Curse inherits both for +3 if (modPlayer.shadowMinions) - player.maxMinions += 3; - else if (modPlayer.holyMinions) + player.maxMinions ++; + if (modPlayer.holyMinions) player.maxMinions += 2; if (modPlayer.starTaintedGenerator) diff --git a/CalamityLists.cs b/CalamityLists.cs index 0322d65536..23b6ae9411 100644 --- a/CalamityLists.cs +++ b/CalamityLists.cs @@ -2493,6 +2493,7 @@ namespace CalamityMod ProjectileID.StardustDragon2, ProjectileID.StardustDragon3, ProjectileID.StardustDragon4, + ProjectileType(), ProjectileType(), ProjectileType(), ProjectileType(), diff --git a/Items/Accessories/HeartoftheElements.cs b/Items/Accessories/HeartoftheElements.cs index 3290571ff3..a130cdc1ac 100644 --- a/Items/Accessories/HeartoftheElements.cs +++ b/Items/Accessories/HeartoftheElements.cs @@ -28,7 +28,6 @@ namespace CalamityMod.Items.Accessories item.height = 20; item.value = CalamityGlobalItem.Rarity9BuyPrice; item.rare = ItemRarityID.Cyan; - item.defense = 9; item.accessory = true; item.Calamity().customRarity = CalamityRarity.Rainbow; } diff --git a/Items/Accessories/TheFirstShadowflame.cs b/Items/Accessories/TheFirstShadowflame.cs index c8c86a82a7..a0de6e4e40 100644 --- a/Items/Accessories/TheFirstShadowflame.cs +++ b/Items/Accessories/TheFirstShadowflame.cs @@ -13,7 +13,7 @@ namespace CalamityMod.Items.Accessories DisplayName.SetDefault("The First Shadowflame"); Tooltip.SetDefault("It is said that in the past, Prometheus descended from the heavens to grant man fire.\n" + "If that were true, then it is surely the demons of hell that would have risen from below to do the same.\n" + - "Minions inflict shadowflame on enemy hits."); + "Increases max minions by 1 and minions inflict the Shadowflame debuff on enemies."); Main.RegisterItemAnimation(item.type, new DrawAnimationVertical(6, 6)); } diff --git a/Items/CalamityGlobalItem.cs b/Items/CalamityGlobalItem.cs index 9a429dcc95..b55e9e7c96 100644 --- a/Items/CalamityGlobalItem.cs +++ b/Items/CalamityGlobalItem.cs @@ -960,6 +960,22 @@ namespace CalamityMod.Items return "Meteor"; if (head.type == ItemID.PearlwoodHelmet && body.type == ItemID.PearlwoodBreastplate && legs.type == ItemID.PearlwoodGreaves) return "Pearlwood"; + if (head.type == ItemID.MonkBrows && body.type == ItemID.MonkShirt && legs.type == ItemID.MonkPants) + return "MonkTier2"; + if (head.type == ItemID.SquireGreatHelm && body.type == ItemID.SquirePlating && legs.type == ItemID.SquireGreaves) + return "SquireTier2"; + if (head.type == ItemID.HuntressWig && body.type == ItemID.HuntressJerkin && legs.type == ItemID.HuntressPants) + return "HuntressTier2"; + if (head.type == ItemID.ApprenticeHat && body.type == ItemID.ApprenticeRobe && legs.type == ItemID.ApprenticeTrousers) + return "ApprenticeTier2"; + if (head.type == ItemID.MonkAltHead && body.type == ItemID.MonkAltShirt && legs.type == ItemID.MonkAltPants) + return "MonkTier3"; + if (head.type == ItemID.SquireAltHead && body.type == ItemID.SquireAltShirt && legs.type == ItemID.SquireAltPants) + return "SquireTier3"; + if (head.type == ItemID.HuntressAltHead && body.type == ItemID.HuntressAltShirt && legs.type == ItemID.HuntressAltPants) + return "HuntressTier3"; + if (head.type == ItemID.ApprenticeAltHead && body.type == ItemID.ApprenticeAltShirt && legs.type == ItemID.ApprenticeAltPants) + return "ApprenticeTier3"; return ""; } @@ -986,8 +1002,8 @@ namespace CalamityMod.Items { modPlayer.rogueStealthMax += 0.7f; modPlayer.wearingRogueArmor = true; - player.Calamity().throwingDamage += 0.05f; - player.Calamity().throwingVelocity += 0.1f; + modPlayer.throwingDamage += 0.05f; + modPlayer.throwingVelocity += 0.1f; player.statDefense += 3; player.setBonus = "+3 defense\n" + "5% increased rogue damage and 10% increased velocity\n" + @@ -1000,8 +1016,8 @@ namespace CalamityMod.Items { modPlayer.rogueStealthMax += 0.8f; modPlayer.wearingRogueArmor = true; - player.Calamity().throwingDamage += 0.05f; - player.Calamity().throwingCrit += 5; + modPlayer.throwingDamage += 0.05f; + modPlayer.throwingCrit += 5; player.statDefense += 2; player.fireWalk = true; player.lavaMax += 180; @@ -1108,10 +1124,6 @@ namespace CalamityMod.Items "Greatly enhances Flameburst effectiveness\n" + "10% increased minion damage and 15% increased magic critical strike chance"; } - else if (set == "Stardust") - { - player.maxMinions += 2; - } } #endregion diff --git a/Items/CalamityGlobalItemTooltip.cs b/Items/CalamityGlobalItemTooltip.cs index e06edf6d88..8293a56bc3 100644 --- a/Items/CalamityGlobalItemTooltip.cs +++ b/Items/CalamityGlobalItemTooltip.cs @@ -732,9 +732,6 @@ namespace CalamityMod.Items // 1) Chest and Legs only give 1 minion slot each instead of 2 each. if (item.type == ItemID.StardustBreastplate || item.type == ItemID.StardustLeggings) EditTooltipByNum(0, (line) => line.text = line.text.Replace('2', '1')); - // 2) Set bonus gives 2 minions instead of 0. - if (item.type == ItemID.StardustHelmet || item.type == ItemID.StardustBreastplate || item.type == ItemID.StardustLeggings) - EditTooltipByName("SetBonus", (line) => line.text += "\nIncreases your max number of minions by 2"); #endregion // Provide the full stats of every vanilla set of wings diff --git a/Items/Materials/UnholyCore.cs b/Items/Materials/UnholyCore.cs index 7f0528de2a..25c5e8d1a8 100644 --- a/Items/Materials/UnholyCore.cs +++ b/Items/Materials/UnholyCore.cs @@ -26,7 +26,7 @@ namespace CalamityMod.Items.Materials ModRecipe recipe = new ModRecipe(mod); recipe.AddIngredient(ModContent.ItemType(), 4); recipe.AddIngredient(ItemID.Hellstone, 4); - recipe.AddTile(TileID.AdamantiteForge); + recipe.AddTile(TileID.Hellforge); recipe.SetResult(this); recipe.AddRecipe(); } diff --git a/Items/Weapons/Magic/Miasma.cs b/Items/Weapons/Magic/Miasma.cs index 74f9b0cc5a..803589b92f 100644 --- a/Items/Weapons/Magic/Miasma.cs +++ b/Items/Weapons/Magic/Miasma.cs @@ -12,7 +12,7 @@ namespace CalamityMod.Items.Weapons.Magic public override void SetStaticDefaults() { DisplayName.SetDefault("Miasma"); - Tooltip.SetDefault("Releases gas clouds that stay still and explode after a while"); + Tooltip.SetDefault("Fires a spread of gas clouds that slow down after hitting an enemy"); Item.staff[item.type] = true; } diff --git a/Items/Weapons/Melee/Brimlance.cs b/Items/Weapons/Melee/Brimlance.cs index 6f145669ee..d86e76ed6a 100644 --- a/Items/Weapons/Melee/Brimlance.cs +++ b/Items/Weapons/Melee/Brimlance.cs @@ -10,7 +10,7 @@ namespace CalamityMod.Items.Weapons.Melee public override void SetStaticDefaults() { DisplayName.SetDefault("Brimlance"); - Tooltip.SetDefault("Enemies killed by the spear explode into brimstone flames"); + Tooltip.SetDefault("Creates brimstone explosions on enemy hits"); } public override void SetDefaults() diff --git a/Items/Weapons/Summon/EyeOfNight.cs b/Items/Weapons/Summon/EyeOfNight.cs index 9a2316ae3d..d1947859b5 100644 --- a/Items/Weapons/Summon/EyeOfNight.cs +++ b/Items/Weapons/Summon/EyeOfNight.cs @@ -12,12 +12,12 @@ namespace CalamityMod.Items.Weapons.Summon public override void SetStaticDefaults() { DisplayName.SetDefault("Eye of Night"); - Tooltip.SetDefault("Summons a diseased eyeball that fires cells which attach to enemies and explode"); + Tooltip.SetDefault("Summons a diseased eyeball that fires cells which attach to enemies and inflict cursed flames"); } public override void SetDefaults() { - item.damage = 35; + item.damage = 28; item.mana = 10; item.width = item.height = 36; item.useTime = item.useAnimation = 30; diff --git a/Items/Weapons/Summon/FleshOfInfidelity.cs b/Items/Weapons/Summon/FleshOfInfidelity.cs index 210b65829c..67912a6ccd 100644 --- a/Items/Weapons/Summon/FleshOfInfidelity.cs +++ b/Items/Weapons/Summon/FleshOfInfidelity.cs @@ -16,7 +16,7 @@ namespace CalamityMod.Items.Weapons.Summon public override void SetDefaults() { - item.damage = 26; + item.damage = 23; item.mana = 10; item.width = item.height = 48; item.useTime = item.useAnimation = 30; diff --git a/Items/Weapons/Summon/ViridVanguard.cs b/Items/Weapons/Summon/ViridVanguard.cs index ddc2484ead..58565d03db 100644 --- a/Items/Weapons/Summon/ViridVanguard.cs +++ b/Items/Weapons/Summon/ViridVanguard.cs @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Weapons.Summon public override void SetDefaults() { - item.damage = 156; + item.damage = 280; item.summon = true; item.sentry = true; item.mana = 10; diff --git a/Projectiles/Summon/EyeOfNightCell.cs b/Projectiles/Summon/EyeOfNightCell.cs index 99fe4e6d62..48cfb2dbec 100644 --- a/Projectiles/Summon/EyeOfNightCell.cs +++ b/Projectiles/Summon/EyeOfNightCell.cs @@ -21,11 +21,11 @@ namespace CalamityMod.Projectiles.Summon projectile.minionSlots = 0f; projectile.ignoreWater = true; projectile.tileCollide = false; - projectile.penetrate = -1; + projectile.penetrate = 2; projectile.timeLeft = 180; projectile.extraUpdates = 1; projectile.usesLocalNPCImmunity = true; - projectile.localNPCHitCooldown = 19; + projectile.localNPCHitCooldown = 90; } public override void AI() @@ -37,15 +37,12 @@ namespace CalamityMod.Projectiles.Summon } public override void Kill(int timeLeft) { - CalamityGlobalProjectile.ExpandHitboxBy(projectile, 60); - projectile.Damage(); - if (!Main.dedServ) for (int i = 0; i < 10; i++) Dust.NewDustDirect(projectile.position, 36, 36, (int)CalamityDusts.SulfurousSeaAcid).noGravity = true; } - public override void ModifyHitNPC(NPC target, ref int damage, ref float knockback, ref bool crit, ref int hitDirection) => projectile.ModifyHitNPCSticky(10, true); + public override void ModifyHitNPC(NPC target, ref int damage, ref float knockback, ref bool crit, ref int hitDirection) => projectile.ModifyHitNPCSticky(4, true); public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) => target.AddBuff(BuffID.CursedInferno, 120); diff --git a/Projectiles/Summon/EyeOfNightSummon.cs b/Projectiles/Summon/EyeOfNightSummon.cs index d558709329..c9f9fe6e91 100644 --- a/Projectiles/Summon/EyeOfNightSummon.cs +++ b/Projectiles/Summon/EyeOfNightSummon.cs @@ -133,5 +133,7 @@ namespace CalamityMod.Projectiles.Summon projectile.velocity = (destination - projectile.Center).SafeNormalize(Vector2.Zero) * flySpeed; } + + public override bool CanDamage() => false; } } \ No newline at end of file diff --git a/Projectiles/Summon/FleshBallMinion.cs b/Projectiles/Summon/FleshBallMinion.cs index b6435672eb..d8b4758582 100644 --- a/Projectiles/Summon/FleshBallMinion.cs +++ b/Projectiles/Summon/FleshBallMinion.cs @@ -1,5 +1,4 @@ using CalamityMod.Buffs.Summon; -using CalamityMod.Projectiles.Melee; using Microsoft.Xna.Framework; using System; using Terraria; @@ -13,6 +12,7 @@ namespace CalamityMod.Projectiles.Summon public Player Owner => Main.player[projectile.owner]; public bool SittingOnGround => Math.Abs(projectile.velocity.X) < 1.55f && projectile.velocity.Y == 0f; public ref float HopTimer => ref projectile.ai[0]; + public ref float HopAmount => ref projectile.ai[1]; public const float Gravity = 0.25f; public const float MaxFallSpeed = 12f; public override void SetStaticDefaults() @@ -35,6 +35,8 @@ namespace CalamityMod.Projectiles.Summon projectile.extraUpdates = 1; projectile.tileCollide = false; projectile.minion = true; + projectile.usesLocalNPCImmunity = true; + projectile.localNPCHitCooldown = 60; } public override void AI() @@ -127,19 +129,15 @@ namespace CalamityMod.Projectiles.Summon if (SittingOnGround && HopTimer % 20f == 19f) { projectile.velocity = projectile.SafeDirectionTo(target.Center) * 6f + new Vector2(Math.Sign(projectile.velocity.X) * 2f, -7f); + HopAmount++; // Release a bunch of blood. - if (Main.myPlayer == projectile.owner) + if (Main.myPlayer == projectile.owner && HopAmount % 3f == 2f) { - for (int i = 0; i < Main.rand.Next(1, 4 + 1); i++) + for (int i = 0; i < 2; i++) { Vector2 shootVelocity = -Vector2.UnitY.RotatedByRandom(0.3f) * Main.rand.NextFloat(6f, 11f); - int blood = Projectile.NewProjectile(projectile.Top, shootVelocity, ModContent.ProjectileType(), projectile.damage, projectile.knockBack, projectile.owner); - if (Main.projectile.IndexInRange(blood)) - { - Main.projectile[blood].Calamity().forceMinion = true; - Main.projectile[blood].penetrate = 1; - } + int blood = Projectile.NewProjectile(projectile.Top, shootVelocity, ModContent.ProjectileType(), projectile.damage, projectile.knockBack, projectile.owner); } } diff --git a/Projectiles/Summon/FleshBlood.cs b/Projectiles/Summon/FleshBlood.cs new file mode 100644 index 0000000000..ba86535f56 --- /dev/null +++ b/Projectiles/Summon/FleshBlood.cs @@ -0,0 +1,47 @@ +using Microsoft.Xna.Framework; +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; +namespace CalamityMod.Projectiles.Summon +{ + public class FleshBlood : ModProjectile + { + public override string Texture => "CalamityMod/Projectiles/InvisibleProj"; + public const int LifeTime = 300; + + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Blood"); + ProjectileID.Sets.MinionShot[projectile.type] = true; + } + + public override void SetDefaults() + { + projectile.width = 4; + projectile.height = 4; + projectile.friendly = true; + projectile.minion = true; + projectile.penetrate = 1; + projectile.timeLeft = LifeTime; + } + + public override bool? CanHitNPC(NPC target) => projectile.timeLeft < LifeTime - 30 && target.CanBeChasedBy(projectile); + + public override void AI() + { + projectile.localAI[0] += 1f; + if (projectile.localAI[0] > 4f) + { + for (int i = 0; i < 2; i++) + { + int d = Dust.NewDust(projectile.position, projectile.width, projectile.height, DustID.Blood, 0f, 0f, 100, default, 1f); + Main.dust[d].noGravity = true; + Main.dust[d].velocity *= 0f; + } + } + + if (projectile.timeLeft < LifeTime - 30) + CalamityGlobalProjectile.HomeInOnNPC(projectile, !projectile.tileCollide, 450f, 6f, 20f); + } + } +} diff --git a/Projectiles/Summon/ViridVanguardBlade.cs b/Projectiles/Summon/ViridVanguardBlade.cs index df19971af4..cd54fd1fa3 100644 --- a/Projectiles/Summon/ViridVanguardBlade.cs +++ b/Projectiles/Summon/ViridVanguardBlade.cs @@ -151,7 +151,7 @@ namespace CalamityMod.Projectiles.Summon } public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { - if (RemainingSlices > 0) + if (RemainingSlices > 0 && FiringTime <= 80f) { FiringTime = 10f; RemainingSlices--; diff --git a/Tiles/Crags/BrimstoneSlag.cs b/Tiles/Crags/BrimstoneSlag.cs index b90e364131..47d5df1d45 100644 --- a/Tiles/Crags/BrimstoneSlag.cs +++ b/Tiles/Crags/BrimstoneSlag.cs @@ -22,7 +22,7 @@ namespace CalamityMod.Tiles.Crags soundType = SoundID.Tink; mineResist = 3f; - minPick = 180; + minPick = 100; drop = ModContent.ItemType(); AddMapEntry(new Color(53, 33, 56)); }