From 564fac9214d0212ac9e856c52d3054eaa5fc2f0d Mon Sep 17 00:00:00 2001 From: termigator1359 <45545085+termigator1359@users.noreply.github.com> Date: Wed, 2 Oct 2019 14:54:48 -0400 Subject: [PATCH] Added Coin of Deceit and bug fixes Added rogue stealth to Obsidian armor tooltip Fixed Spirit Generator bug minor alcohol adjustment fixed my rogue weapons not doing rogue damage --- CalamityMod.cs | 3 + Items/Accessories/CoinofDeceit.cs | 60 ++++++++++++++++++ Items/Accessories/CoinofDeceit.png | Bin 0 -> 447 bytes .../BloodsoakedCrasher.cs | 2 +- .../ScourgeoftheSeas.cs | 2 +- .../UtensilPoker.cs | 2 +- Items/CalamityGlobalItem.cs | 5 +- NPCs/CalamityGlobalNPC.cs | 4 +- Tiles/BlueCandle.cs | 2 +- 9 files changed, 74 insertions(+), 6 deletions(-) create mode 100644 Items/Accessories/CoinofDeceit.cs create mode 100644 Items/Accessories/CoinofDeceit.png 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 0000000000000000000000000000000000000000..2a9597ba21f7c8977dba6fc21d57e8deefa8dd2e GIT binary patch literal 447 zcmV;w0YLtVP)7REuy6G%;I*pu*eWz2q^q<+FGC-t(RJ@NnR0RLRhF0D6pW z05aJZiv|h|`!s;thco~#6iag+BYr;s?VdIOO!LVCSPUVAGOkCUpaC&Eox_ZKT zWE>;C%hQ|lD1!sq(!5% z)1AYVT}f5XYR;wn+Mz?TAAc6UfwW4a{+110w*Z1etpG$e$3(;V$tUo08HvY_nq=8r zu1SP}0Rw=1u_Q>VRY4{Q9kQnF(48-q0O<0#G@HcwBcnC?R8IH}(XC 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; }