Пример #1
0
 public override TagCompound Save()
 {
     return(new TagCompound()
     {
         { "MyStand", MyStand.GetType().Name }
     });
 }
Пример #2
0
        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));
        }