Files
CalamityModPublic/Items/Accessories/CheatTestThing.cs
T
Andrew Marheine 1ee66f7065 1 - Frost Flare, Aquatic Heart, Alicorn Mount and Purified Jam are no longer Rev-exclusive.
2 - Mounting the alicorn despawns Cirrus because she transforms into it, dismounting spawns her again.
3 - Aquatic Scourge no longer drops Aero Stone.
4 - Adjusted the drop rates for the special Stone items and Frost Flare.
5 - Tried to create a failsafe so Ravager doesn't fall forever sometimes in phase 2.
2021-08-25 05:51:31 -05:00

39 lines
1.2 KiB
C#

using CalamityMod.CalPlayer;
using Terraria;
using Terraria.DataStructures;
using Terraria.ModLoader;
namespace CalamityMod.Items.Accessories
{
public class CheatTestThing : ModItem
{
public override void SetStaticDefaults()
{
DisplayName.SetDefault("lul");
}
public override void SetDefaults()
{
item.width = 26;
item.height = 26;
item.value = 0; // lul intentionally has zero value
item.Calamity().customRarity = CalamityRarity.HotPink;
item.accessory = true;
}
public override void UpdateAccessory(Player player, bool hideVisual)
{
CalamityPlayer modPlayer = player.Calamity();
bool canUse = player.name == "Fabsol" || player.name == "Totalbiscuit" || player.name == "TotalBiscuit" || player.name == "Total Biscuit" || player.name == "Total biscuit";
if (canUse)
{
modPlayer.lol = true;
}
else if (!player.immune)
{
player.KillMe(PlayerDeathReason.ByCustomReason(player.name + " isn't worthy."), 1000.0, 0, false);
}
}
}
}