From 8ea2e21eb62d51ca229399a6f87e1e12d1f0be76 Mon Sep 17 00:00:00 2001 From: FyloZ Date: Mon, 13 Jul 2020 14:43:31 -0400 Subject: [PATCH] Added The Mind trinity item. --- Content/Items/Accessories/Trinity/Body.cs | 13 +++++- Content/Items/Accessories/Trinity/Mind.cs | 52 +++++++++++++++++++++ Content/Items/Accessories/Trinity/Mind.png | Bin 0 -> 204 bytes Content/Items/Accessories/Trinity/Soul.cs | 20 ++++++-- 4 files changed, 78 insertions(+), 7 deletions(-) create mode 100644 Content/Items/Accessories/Trinity/Mind.cs create mode 100644 Content/Items/Accessories/Trinity/Mind.png diff --git a/Content/Items/Accessories/Trinity/Body.cs b/Content/Items/Accessories/Trinity/Body.cs index e440a34..f4ba364 100644 --- a/Content/Items/Accessories/Trinity/Body.cs +++ b/Content/Items/Accessories/Trinity/Body.cs @@ -1,3 +1,4 @@ +using System.Collections.Generic; using Decimation.Lib.Util; using Microsoft.Xna.Framework; using Terraria; @@ -11,8 +12,8 @@ namespace Decimation.Content.Items.Accessories.Trinity protected override string ItemTooltip => "I feel all...\n" + "Increases maximum life by 50\n" + - "You deal 10% more melee damage\n" + - "Your melee critical hit chances are increased by 10%\n" + + "Increases melee damage by 10%\n" + + "Increases melee critical hit chances by 10%\n" + "Hostile projectiles have 10% chance to ricochet off you\nand target your enemies with 50% increased damage"; protected override void InitAccessory() @@ -33,6 +34,14 @@ namespace Decimation.Content.Items.Accessories.Trinity base.UpdateAccessory(player, hideVisual); } + + public override void ModifyTooltips(List tooltips) + { + tooltips.Add(new TooltipLine(mod, "trinity", "Trinity") + { + overrideColor = Color.Red + }); + } } class BodyProjectileEffects : GlobalProjectile diff --git a/Content/Items/Accessories/Trinity/Mind.cs b/Content/Items/Accessories/Trinity/Mind.cs new file mode 100644 index 0000000..90d3ba2 --- /dev/null +++ b/Content/Items/Accessories/Trinity/Mind.cs @@ -0,0 +1,52 @@ +using System.Collections.Generic; +using Decimation.Lib.Util; +using Microsoft.Xna.Framework; +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; + +namespace Decimation.Content.Items.Accessories.Trinity +{ + public class Mind : TrinityAccessory + { + protected override string ItemName => "The Mind"; + protected override string ItemTooltip => "I know all...\n" + + "Increases block placement and mining speed by 10%\n" + + "Increases ranged and thrown damage by 10%\n" + + "Increases ranged and thrown critical hit chances by 10%\n" + + "Allows you to see nearby danger sources\n" + + "Shows the location of treasure and ore"; + + protected override void InitAccessory() + { + item.width = 10; + item.height = 16; + item.expert = true; + item.rare = Rarity.Rainbow.GetRarityValue(); + item.value = Item.sellPrice(gold: 5); + } + + public override void UpdateAccessory(Player player, bool hideVisual) + { + player.pickSpeed *= 1.10f; + player.tileSpeed *= 1.10f; + player.rangedDamage *= 1.10f; + player.rangedCrit = (int) (player.rangedCrit * 1.10f); + player.thrownDamage *= 1.10f; + player.thrownCrit = (int) (player.thrownCrit * 1.10f); + + player.AddBuff(BuffID.Spelunker, 1); + player.AddBuff(BuffID.Dangersense, 1); + + base.UpdateAccessory(player, hideVisual); + } + + public override void ModifyTooltips(List tooltips) + { + tooltips.Add(new TooltipLine(mod, "trinity", "Trinity") + { + overrideColor = Color.Yellow + }); + } + } +} \ No newline at end of file diff --git a/Content/Items/Accessories/Trinity/Mind.png b/Content/Items/Accessories/Trinity/Mind.png new file mode 100644 index 0000000000000000000000000000000000000000..7acd4e68ff0b3aa8c2afc32cf51fb167e88e318d GIT binary patch literal 204 zcmeAS@N?(olHy`uVBq!ia0vp^AhrMp8<5nmf9C+CCVRR#hG+yQr#LXrzxV4eJLgBv z{3MrYP7fPYIJ8S(L5!`*8k@%8j~Mwo~3cafRE3!V|~31`{g~` "The Soul"; protected override string ItemTooltip => "I am all...\n" + "Increases maximum mana by 50\n" + - "You deal 10% more magic and minion damage\n" + - "Your magic critical hit chances are increased by 10%\n" + - "Your minions knockback is increased by 10%" + - "Your criticals hits leech mana\n" + - "Hostile projectiles have 10% to phase through you,\nnegating all damage and causing your next attack to be a critical hit"; + "Increases magic and minion damage by 10%\n" + + "Increases magic critical hit chances by 10%\n" + + "Increases minions knockback by 10%" + + "Criticals hits leech mana\n" + + "Hostile projectiles have 10% chance to phase through you,\nnegating all damage and causing your next attack to be a critical hit"; protected override void InitAccessory() { @@ -34,6 +36,14 @@ namespace Decimation.Content.Items.Accessories.Trinity base.UpdateAccessory(player, hideVisual); } + + public override void ModifyTooltips(List tooltips) + { + tooltips.Add(new TooltipLine(mod, "trinity", "Trinity") + { + overrideColor = Color.Blue + }); + } } class SoulItemEffects : GlobalItem