public override void HoldItem(Player player)
 {
     if (Main.LocalPlayer == player)
     {
         RegionsPlayer.Get(player).HoldingRegionTool = true;
     }
 }
示例#2
0
        public override bool CanPlayerKillTile(Player player, int i, int j, int type, ref bool blockDamaged)
        {
            if (player == null)
            {
                return(true);
            }

            RegionsPlayer regionsPlayer = RegionsPlayer.Get(player);

            if (regionsPlayer.HoldingRegionTool)
            {
                regionsPlayer.AddPoint(new Point(i, j));
            }

            Main.NewText($"Block hit ({i}, {j})/({i * 16}, {j * 16}) by found player {regionsPlayer.player.name}");
            return(true);
        }