public override TagCompound Save() { return(new TagCompound() { { "MyStand", MyStand.GetType().Name } }); }
public override bool CanUseItem(Player player) { StandBase stand = Main.rand.Next(StandManager.AllStands); TBMPlayer.Get(player).MyStand = (StandBase)Activator.CreateInstance(stand.GetType()); PlayerDeathReason reason = new PlayerDeathReason(); reason.SourceCustomReason = player.name + " could not handle the power within."; /*if (stand is EmptyStand) * player.KillMe(reason, 0, 0);*/ return(base.CanUseItem(player)); }