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.
39 lines
1.2 KiB
C#
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);
|
|
}
|
|
}
|
|
}
|
|
}
|