From e2f157becabc5bb2567050bfc5324b377554f003 Mon Sep 17 00:00:00 2001 From: Amber Sienna Date: Tue, 7 Jan 2020 19:45:28 +0000 Subject: [PATCH] Brimstone Elemental Mask --- Items/Armor/Vanity/BrimstoneWaifuMask.cs | 25 ++++++++++++++++++ Items/Armor/Vanity/BrimstoneWaifuMask.png | Bin 0 -> 463 bytes .../Armor/Vanity/BrimstoneWaifuMask_Head.png | Bin 0 -> 1869 bytes Items/TreasureBags/BrimstoneWaifuBag.cs | 2 ++ ModSupport/WeakReferenceSupport.cs | 2 +- NPCs/BrimstoneElemental/BrimstoneElemental.cs | 2 ++ 6 files changed, 30 insertions(+), 1 deletion(-) create mode 100644 Items/Armor/Vanity/BrimstoneWaifuMask.cs create mode 100644 Items/Armor/Vanity/BrimstoneWaifuMask.png create mode 100644 Items/Armor/Vanity/BrimstoneWaifuMask_Head.png diff --git a/Items/Armor/Vanity/BrimstoneWaifuMask.cs b/Items/Armor/Vanity/BrimstoneWaifuMask.cs new file mode 100644 index 0000000000..3dbfed96c5 --- /dev/null +++ b/Items/Armor/Vanity/BrimstoneWaifuMask.cs @@ -0,0 +1,25 @@ +using Terraria.ModLoader; +namespace CalamityMod.Items.Armor.Vanity +{ + [AutoloadEquip(EquipType.Head)] + public class BrimstoneWaifuMask : ModItem + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Brimstone Elemental Mask"); + } + + public override void SetDefaults() + { + item.width = 30; + item.height = 28; + item.rare = 1; + item.vanity = true; + } + + public override bool DrawHead() + { + return false; + } + } +} diff --git a/Items/Armor/Vanity/BrimstoneWaifuMask.png b/Items/Armor/Vanity/BrimstoneWaifuMask.png new file mode 100644 index 0000000000000000000000000000000000000000..9429f292e8f8fba51c22a4e69baa54d49b08b738 GIT binary patch literal 463 zcmV;=0WkiFP)Px$iAh93R7i=v)jewzQ544U-^{MAt|;Ofh%qDt#U^N(!bY-UBWX-yl_p^2M-c36 z?QHc+1WQW;mO?s%5DbL8SQt&*HM?UmIc#Q3!h&S}&CDIn9nN#^dCpB7@?`7*xO&jd z9HE)^6WHsghT+}ja$!B(uKys3m$~s-uve>R@HpKDE59xb^`k4bUIIUQH4K!Ty@K}S zBXGXo1KqTi!Sj)%5IA%5VqyJheII<+F&)gSm;zU}#0`0E@vFi_&zLW?}KM|av!XA9NYg(YrA0jQn9P%7w#6~7GHe?Z(rO84_|*q6=$%T z8_umpK9}BXWf=oMoJ4fbc>DILan()Jm`Tmv0R~ew2%nTGJ3VI8`~G!QsUQd?!8L!t zcjpTC#7RWvqdL{hqJI>W2}PswcH7X%PK%GsH#AUzg1>>Jbo9wCDf9pU002ovPDHLk FV1jO8)RF)I literal 0 HcmV?d00001 diff --git a/Items/Armor/Vanity/BrimstoneWaifuMask_Head.png b/Items/Armor/Vanity/BrimstoneWaifuMask_Head.png new file mode 100644 index 0000000000000000000000000000000000000000..4efc3563e9ab47abbe58962d80a8e706bf8e3563 GIT binary patch literal 1869 zcmeAS@N?(olHy`uVBq!ia0vp^8Vn39aU5(w*3wf&i+~hkage(c!@6@aFBurv**#qx zLn`LHy}L0#wp{Yq$Kz!OJv{}LwrB-x%}QLI;G)H?B+C7YiCfq?;-~Ng39XHrN?UhU z9|>A{cg2y2mD0IWH9A(Q^2}JK;+w(B4pShT-t zE<^h5Yj+r@&#!uUr2qfN#oOg?h!@X!`~P)%JwuxMkIngiH9S9UwcgIZ@5jI6+rMw0 z^yJyUwEmBE>b2k0f1EP5_nUO*PURZ~&$?ZI`&CZvo8bCr|wb)OHboXp-|ukQKj$6agb+Q#(!ru?|t#~<{+&*Q(Y zZaI&CdC%%{8-Bl?KUd6Y-hAHmas0Hxb3OC3+CJLs%$qa$@Q>|3{eRz&*!lka{$$~E z|5)0;&M(?G@BAc{|7WI$)%ndaQu|(#m#ccR{ig4xC7kP|g=?+a?eEvlxZ6Cr&;IR` zHuv(T!@qV~re8kE3-m4{Fzq~ebLs4s5@X%FKHlb+aWR4F7!DM@OpDqzb6VcArL!|} zF+mCwb`mlUXdg)7h8RM|MeULVDU8s=>pHOWc|ZzvrsH)T*!iG*!!T|2yEL<{cU~p0 znqB#@^X*!d%KH5ONB+;Qd$PL!ruZ4V+jccP;pgK$KDCBF_YF8+pR@^46hz{ zEDEWOIrq?VZ^tX;lP`DAbo@H8`tF&xZx64|-{be^VDHuN8=>;W>}N`in_nfLiZTEE z%ldj)UvMqY>~iDP+ky1-zFjj_PF8O($}u-SwYYRuf8x5?k|FZN%Wk!NtxM~AmE84; z8RW!sI=6$Owk_R~n=JkYbV|XYKEIX}4x22dCFJ z72iE`^zPiXDmx2bzw4ZzZu#_L=I)u=*T4DgX?C6N{{8A%js9!uJL<0X-RCvCdYb3d zVxVIK<$P-sfNmCxm$Th)-)Ku_<(E%^m0PB&gsh$E~}CR+MwD0E>I4X_6`(j_D7k0+miDp^X84qn>H>_P4+*1Y~Hk9 rTV3gDs01jbjV6N8L_k_1@ctIh@t=EHwdQVjQ1bP0l+XkKDL}^| literal 0 HcmV?d00001 diff --git a/Items/TreasureBags/BrimstoneWaifuBag.cs b/Items/TreasureBags/BrimstoneWaifuBag.cs index 5848eab5dc..27a400ae65 100644 --- a/Items/TreasureBags/BrimstoneWaifuBag.cs +++ b/Items/TreasureBags/BrimstoneWaifuBag.cs @@ -1,5 +1,6 @@ using CalamityMod.Items.Accessories; +using CalamityMod.Items.Armor.Vanity; using CalamityMod.Items.Materials; using CalamityMod.Items.Mounts; using CalamityMod.Items.Pets; @@ -59,6 +60,7 @@ namespace CalamityMod.Items.TreasureBags // Vanity DropHelper.DropItemCondition(player, ModContent.ItemType(), CalamityWorld.revenge); + DropHelper.DropItemChance(player, ModContent.ItemType(), 7); } } } diff --git a/ModSupport/WeakReferenceSupport.cs b/ModSupport/WeakReferenceSupport.cs index fe9747018f..c5e514a2ff 100644 --- a/ModSupport/WeakReferenceSupport.cs +++ b/ModSupport/WeakReferenceSupport.cs @@ -190,7 +190,7 @@ namespace CalamityMod "Brimstone Elemental", (Func)(() => CalamityWorld.downedBrimstoneElemental), ModContent.ItemType(), - new List() {ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType()}, + new List() {ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType()}, new List() {ModContent.ItemType(), ItemID.SoulofFright, ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ItemID.GreaterHealingPotion}, "Use a [i:" + ModContent.ItemType() + "] in the Brimstone Crag", "[c/DC143C:Brimstone Elemental withdraws to the ruins of her shrine.]"); diff --git a/NPCs/BrimstoneElemental/BrimstoneElemental.cs b/NPCs/BrimstoneElemental/BrimstoneElemental.cs index ee60e7115b..c6809a4c87 100644 --- a/NPCs/BrimstoneElemental/BrimstoneElemental.cs +++ b/NPCs/BrimstoneElemental/BrimstoneElemental.cs @@ -2,6 +2,7 @@ using CalamityMod.Buffs.StatDebuffs; using CalamityMod.CalPlayer; using CalamityMod.Items.Accessories; +using CalamityMod.Items.Armor.Vanity; using CalamityMod.Items.LoreItems; using CalamityMod.Items.Materials; using CalamityMod.Items.Placeables.Furniture.Trophies; @@ -208,6 +209,7 @@ namespace CalamityMod.NPCs.BrimstoneElemental DropHelper.DropResidentEvilAmmo(npc, CalamityWorld.downedBrimstoneElemental, 4, 2, 1); DropHelper.DropItemCondition(npc, ModContent.ItemType(), true, !CalamityWorld.downedBrimstoneElemental); DropHelper.DropItemCondition(npc, ModContent.ItemType(), true, !CalamityWorld.downedBrimstoneElemental); + DropHelper.DropItemChance(npc, ModContent.ItemType(), 7); // if prime hasn't been killed and this is the first time killing brimmy, do the message string key = "Mods.CalamityMod.SteelSkullBossText";