Added Sulphurous Sea World Side Changer

This commit is contained in:
GinYuH authored and Cameron Ewell committed 2023-01-24 11:09:51 -05:00
1 parent 1e839b77b4
commit d61dcc8440
2 files changed
+45

No files matched your search

+45
View File
@@ -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<HotPink>();
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;
}
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 417 B