From d61dcc844001bd2a5b2ef999905d77e29d5a5b08 Mon Sep 17 00:00:00 2001 From: GinYuH Date: Tue, 24 Jan 2023 08:05:08 -0800 Subject: [PATCH] Added Sulphurous Sea World Side Changer --- Items/SulphurousSeaWorldSideChanger.cs | 45 ++++++++++++++++++++++++ Items/SulphurousSeaWorldSideChanger.png | Bin 0 -> 417 bytes 2 files changed, 45 insertions(+) create mode 100644 Items/SulphurousSeaWorldSideChanger.cs create mode 100644 Items/SulphurousSeaWorldSideChanger.png diff --git a/Items/SulphurousSeaWorldSideChanger.cs b/Items/SulphurousSeaWorldSideChanger.cs new file mode 100644 index 0000000000..51366b6f71 --- /dev/null +++ b/Items/SulphurousSeaWorldSideChanger.cs @@ -0,0 +1,45 @@ +using CalamityMod.Rarities; +using CalamityMod.World; +using Terraria; +using Terraria.ID; +using Microsoft.Xna.Framework; +using System; +using Terraria.ModLoader; + +namespace CalamityMod.Items +{ + public class SulphurousSeaWorldSideChanger : ModItem + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Sulphurous Sea World Side Changer"); + Tooltip.SetDefault("Spawn and use this if your regular ocean counts as a Sulphurous Sea\n"+"This will also fix the Abyss if it is broken"); + } + + public override void SetDefaults() + { + Item.width = 54; + Item.height = 46; + Item.useTime = 16; + Item.useAnimation = 16; + Item.rare = ModContent.RarityType(); + Item.value = 0; + Item.autoReuse = false; + Item.useStyle = 4; + Item.UseSound = SoundID.Item111; + } + + public override bool? UseItem(Player player) + { + if (Abyss.AtLeftSideOfWorld) + { + Abyss.AtLeftSideOfWorld = false; + } + else + { + Abyss.AtLeftSideOfWorld = true; + } + return true; + } + } +} diff --git a/Items/SulphurousSeaWorldSideChanger.png b/Items/SulphurousSeaWorldSideChanger.png new file mode 100644 index 0000000000000000000000000000000000000000..0d4e42abe3ed1d98ce3093fb00550065916550c8 GIT binary patch literal 417 zcmeAS@N?(olHy`uVBq!ia0vp^azL!W!3HE*9Zu8(DaPU;cPEB*=VV?2IV|apzK#qG z8~eHcB(eheoCO|{#S9F5he4R}c>anMpawHf7srqY_vD&?k9e6a4_vnYYu|BiU!j_E zM1#u#mZdNG+~yrsIc}(vchkD$;Gg-T(+`@gEVM0YigIxj=()L6LE@OYD9=BOzO(BY zj<4OaOK3*D{VZu8ZN0x-%kRFQ|8d@1N?3)cV z&Lw{IczIOVnyvh#Yf&wa_U4O>8|_*f4?a%jFVdQ I&MBb@0BF3V<^TWy literal 0 HcmV?d00001