From 9d4acefbfaa0b84590eeb618da9f7bcfc7acb01d Mon Sep 17 00:00:00 2001 From: termigator1359 <45545085+termigator1359@users.noreply.github.com> Date: Wed, 8 Apr 2020 19:14:42 -0400 Subject: [PATCH] added sulphurskin potion --- Buffs/Potions/SulphurskinBuff.cs | 23 ++++++++++++ Buffs/Potions/SulphurskinBuff.png | Bin 0 -> 629 bytes CalPlayer/CalamityPlayer.cs | 3 ++ CalPlayer/CalamityPlayerLifeRegen.cs | 29 ++++++++++++++-- Items/Potions/SulphurskinPotion.cs | 50 +++++++++++++++++++++++++++ Items/Potions/SulphurskinPotion.png | Bin 0 -> 528 bytes 6 files changed, 102 insertions(+), 3 deletions(-) create mode 100644 Buffs/Potions/SulphurskinBuff.cs create mode 100644 Buffs/Potions/SulphurskinBuff.png create mode 100644 Items/Potions/SulphurskinPotion.cs create mode 100644 Items/Potions/SulphurskinPotion.png diff --git a/Buffs/Potions/SulphurskinBuff.cs b/Buffs/Potions/SulphurskinBuff.cs new file mode 100644 index 0000000000..ed59bef8eb --- /dev/null +++ b/Buffs/Potions/SulphurskinBuff.cs @@ -0,0 +1,23 @@ +using Terraria; +using Terraria.ModLoader; + +namespace CalamityMod.Buffs.Potions +{ + public class SulphurskinBuff : ModBuff + { + public override void SetDefaults() + { + DisplayName.SetDefault("Sulphurskin"); + Description.SetDefault("The sulphuric waters have a lesser effect on you"); + Main.debuff[Type] = false; + Main.pvpBuff[Type] = true; + Main.buffNoSave[Type] = false; + longerExpertDebuff = false; + } + + public override void Update(Player player, ref int buffIndex) + { + player.Calamity().sulphurskin = true; + } + } +} diff --git a/Buffs/Potions/SulphurskinBuff.png b/Buffs/Potions/SulphurskinBuff.png new file mode 100644 index 0000000000000000000000000000000000000000..616f7a90563030cd5c681ddc6b4205c39a9600ae GIT binary patch literal 629 zcmV-*0*d{KP)Px#AY({UO#lFTCIA3{ga82g0001h=l}q9FaQARU;qF* zm;eA5aGbhPJOBUy24YJ`L;(K){{a7>y{D4^00F~EL_t(o!_Ak!F9Ts5#y=;1L=DI# z+NMO?NF>rh!$2$|Sj2!BEG%NPiOFaZe}U0r5GE##Sc-vEr0F1%5^1QU>4b=Zp}tMt zw|7NIz0Y#@{Ld$z2bde32Ot_5a_kuF zY*oq=i{k(+3`7CA%-aQLo(BL@cNqY@c8}wDCl@;yL7-Z0bmxiWp;j(GkT@50wFN#& zoR=kG4guYHi$7HM!KImH0M@tGfYL08ytWU3Y|fd4IRrAf^sffmh$kHD`?`h|=clQd zp#(%%k9pwh4Cr$&%Dlb-uzyxqHg0oo9)ZXE?`6Qvxny9hH=N&>i3T0h7tHm zZiK}7>TVc-mC2+d2{)NbK;~LBJ2uo3+k%cAWM?B;5J}n(u5W(); + item.buffTime = 7200; //2 minutes + item.value = Item.buyPrice(0, 2, 0, 0); + } + + public override void AddRecipes() + { + ModRecipe recipe = new ModRecipe(mod); + recipe.AddIngredient(ModContent.ItemType()); //possibly add herbs if added to sulph sea + recipe.AddIngredient(ItemID.BottledWater); + recipe.AddTile(TileID.Bottles); + recipe.SetResult(this); + recipe.AddRecipe(); + recipe = new ModRecipe(mod); + recipe.AddIngredient(ModContent.ItemType(), 10); + recipe.AddIngredient(ItemID.BottledWater); + recipe.AddTile(TileID.AlchemyTable); + recipe.SetResult(this); + recipe.AddRecipe(); + } + } +} diff --git a/Items/Potions/SulphurskinPotion.png b/Items/Potions/SulphurskinPotion.png new file mode 100644 index 0000000000000000000000000000000000000000..4e3572581f415c65af7868e406dd37add505e878 GIT binary patch literal 528 zcmV+r0`L8aP)Px#AY({UO#lFTCIA3{ga82g0001h=l}q9FaQARU;qF* zm;eA5aGbhPJOBUy24YJ`L;(K){{a7>y{D4^00CY}L_t(I%e9q1O9L?&ho6YF(krD> zTRm>@58AOf39dI3oE)q;cIhZ?-TVN8t6xH_gCMwdaS#O2!9^XkpkBQS-f$J#uu7MDXww_FdQMei$aQQx*UzClmm+vseU>Ni+dinoBBQ>CNooi~tCl3A03^ zT&yVdli#@lAik1Uy|}zr#;3ar%GjJoIeQ*}^k%Iu$sldHy^c7n9~&l;fljiW%>i)G z@&O2rN(#9yb40%P2*9*9AxYk<1tl-Ztjws0euBMq0NU=pwxsZ{ADJUcT4@1reOr$J z^6uXooJ_CoWc_5*Q-*KIupKA~t6o*Sl652Vx>~`zS&u}ySOK8J1ON@+i{Q7H^iz~w zFTF8OB!eN|Hvw>QW4Qaj05S(;Jr_pbO8@`>5_CmabVXQ6MmkS&X=QG7VRUJ4ZU8Za SSnTfr0000