diff --git a/CalamityMod.cs b/CalamityMod.cs index 99fe7d20e4..a8e2d2020a 100644 --- a/CalamityMod.cs +++ b/CalamityMod.cs @@ -696,6 +696,7 @@ namespace CalamityMod calamity.ItemType("FrigidflashBolt"), calamity.ItemType("GreatbowofTurmoil"), calamity.ItemType("HarvestStaff"), + calamity.ItemType("Hellborn"), calamity.ItemType("HellBurst"), calamity.ItemType("HellfireFlamberge"), calamity.ItemType("Hellkite"), @@ -714,6 +715,7 @@ namespace CalamityMod calamity.ItemType("TearsofHeaven"), calamity.ItemType("TerraFlameburster"), calamity.ItemType("TheEmpyrean"), + calamity.ItemType("TheLastMourning"), calamity.ItemType("TheWand"), calamity.ItemType("VenusianTrident"), calamity.ItemType("Vesuvius"), @@ -774,6 +776,7 @@ namespace CalamityMod calamity.ItemType("NeptunesBounty"), calamity.ItemType("AquaticDissolution"), calamity.ItemType("ArchAmaryllis"), + calamity.ItemType("ThornBlossom"), calamity.ItemType("BiomeBlade"), calamity.ItemType("TrueBiomeBlade"), calamity.ItemType("OmegaBiomeBlade"), diff --git a/Items/Accessories/CoinofDeceit.cs b/Items/Accessories/CoinofDeceit.cs new file mode 100644 index 0000000000..fc37a9a979 --- /dev/null +++ b/Items/Accessories/CoinofDeceit.cs @@ -0,0 +1,60 @@ +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; +using CalamityMod.Items.CalamityCustomThrowingDamage; +using CalamityMod.CalPlayer; + +namespace CalamityMod.Items.Accessories +{ + public class CoinofDeceit : ModItem + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Coin of Deceit"); + Tooltip.SetDefault("6% increased rogue crit chance"); + } + + public override void SetDefaults() + { + item.width = 20; + item.height = 22; + item.value = Item.buyPrice(0, 2, 0, 0); + item.accessory = true; + item.rare = 1; + } + + public override void UpdateAccessory(Player player, bool hideVisual) + { + CalamityPlayer modPlayer = player.GetCalamityPlayer(); + player.GetCalamityPlayer().throwingCrit += 6; + } + + public override void AddRecipes() + { + ModRecipe recipe = new ModRecipe(mod); + recipe.AddIngredient(ItemID.GoldBar, 4); + recipe.AddIngredient(ItemID.CopperBar, 8); + recipe.AddTile(TileID.Anvils); + recipe.SetResult(this); + recipe.AddRecipe(); + recipe = new ModRecipe(mod); + recipe.AddIngredient(ItemID.GoldBar, 4); + recipe.AddIngredient(ItemID.TinBar, 8); + recipe.AddTile(TileID.Anvils); + recipe.SetResult(this); + recipe.AddRecipe(); + recipe = new ModRecipe(mod); + recipe.AddIngredient(ItemID.PlatinumBar, 4); + recipe.AddIngredient(ItemID.CopperBar, 8); + recipe.AddTile(TileID.Anvils); + recipe.SetResult(this); + recipe.AddRecipe(); + recipe = new ModRecipe(mod); + recipe.AddIngredient(ItemID.PlatinumBar, 4); + recipe.AddIngredient(ItemID.TinBar, 8); + recipe.AddTile(TileID.Anvils); + recipe.SetResult(this); + recipe.AddRecipe(); + } + } +} diff --git a/Items/Accessories/CoinofDeceit.png b/Items/Accessories/CoinofDeceit.png new file mode 100644 index 0000000000..2a9597ba21 Binary files /dev/null and b/Items/Accessories/CoinofDeceit.png differ diff --git a/Items/CalamityCustomThrowingDamage/BloodsoakedCrasher.cs b/Items/CalamityCustomThrowingDamage/BloodsoakedCrasher.cs index 4e42409446..61fd83dd12 100644 --- a/Items/CalamityCustomThrowingDamage/BloodsoakedCrasher.cs +++ b/Items/CalamityCustomThrowingDamage/BloodsoakedCrasher.cs @@ -5,7 +5,7 @@ using Terraria.ModLoader; namespace CalamityMod.Items.CalamityCustomThrowingDamage { - public class BloodsoakedCrasher : ModItem //This weapon has been coded by Achilles|Termi|Ben + public class BloodsoakedCrasher : CalamityDamageItem //This weapon has been coded by Achilles|Termi|Ben { public override void SetStaticDefaults() { diff --git a/Items/CalamityCustomThrowingDamage/ScourgeoftheSeas.cs b/Items/CalamityCustomThrowingDamage/ScourgeoftheSeas.cs index 95f16b66a4..22286e3f8b 100644 --- a/Items/CalamityCustomThrowingDamage/ScourgeoftheSeas.cs +++ b/Items/CalamityCustomThrowingDamage/ScourgeoftheSeas.cs @@ -11,7 +11,7 @@ using static CalamityMod.CalPlayer.CalamityPlayer; namespace CalamityMod.Items.CalamityCustomThrowingDamage { - public class ScourgeoftheSeas : ModItem + public class ScourgeoftheSeas : CalamityDamageItem { public override void SetStaticDefaults() { diff --git a/Items/CalamityCustomThrowingDamage/UtensilPoker.cs b/Items/CalamityCustomThrowingDamage/UtensilPoker.cs index 2529bf74a0..98ffa87051 100644 --- a/Items/CalamityCustomThrowingDamage/UtensilPoker.cs +++ b/Items/CalamityCustomThrowingDamage/UtensilPoker.cs @@ -5,7 +5,7 @@ using Terraria.ModLoader; namespace CalamityMod.Items.CalamityCustomThrowingDamage { - public class UtensilPoker : ModItem + public class UtensilPoker : CalamityDamageItem { public override void SetStaticDefaults() { diff --git a/Items/CalamityGlobalItem.cs b/Items/CalamityGlobalItem.cs index 26d47570d2..cc38582561 100644 --- a/Items/CalamityGlobalItem.cs +++ b/Items/CalamityGlobalItem.cs @@ -1644,7 +1644,10 @@ namespace CalamityMod.Items player.lavaMax += 180; player.setBonus = "+2 defense\n" + "5% increased rogue damage and critical strike chance\n" + - "Grants immunity to fire blocks and temporary immunity to lava"; + "Grants immunity to fire blocks and temporary immunity to lava\n" + + "Rogue stealth builds while not attacking and not moving, up to a max of 100\n" + + "Rogue stealth only reduces when you attack, it does not reduce while moving\n" + + "The higher your rogue stealth the higher your rogue damage, crit, and movement speed"; } } #endregion diff --git a/NPCs/CalamityGlobalNPC.cs b/NPCs/CalamityGlobalNPC.cs index be4e723310..cf4b98bdae 100644 --- a/NPCs/CalamityGlobalNPC.cs +++ b/NPCs/CalamityGlobalNPC.cs @@ -2554,9 +2554,11 @@ namespace CalamityMod.NPCs #region On Hit By Projectile public override void OnHitByProjectile(NPC npc, Projectile projectile, int damage, float knockback, bool crit) { + bool isSummon = projectile.minion || projectile.sentry || CalamityMod.projectileMinionList.Contains(projectile.type); + if (Main.player[projectile.owner].GetCalamityPlayer().sGenerator) { - if (projectile.minion && npc.damage > 0) + if (isSummon && npc.damage > 0) { switch (Main.rand.Next(3)) { diff --git a/Tiles/BlueCandle.cs b/Tiles/BlueCandle.cs index 9ad38d9c46..0f231799ba 100644 --- a/Tiles/BlueCandle.cs +++ b/Tiles/BlueCandle.cs @@ -17,7 +17,7 @@ namespace CalamityMod.Tiles TileObjectData.addTile(Type); ModTranslation name = CreateMapEntryName(); name.SetDefault("Weightless Candle"); - AddToArray(ref TileID.Sets.RoomNeeds.CountsAsTorch); + AddToArray(ref TileID.Sets.RoomNeeds.CountsAsTorch); AddMapEntry(new Color(238, 145, 105), name); animationFrameHeight = 34; }