public override void RightClick(Player player)
 {
     if (Main.myPlayer == player.whoAmI)
     {
         TeleportClass.HandleTeleport(3);
     }
 }
Exemple #2
0
 public override bool?UseItem(Player player)
 {
     if (Main.myPlayer == player.whoAmI)
     {
         TeleportClass.HandleTeleport(7);
         return(true);
     }
     return(false);
 }
 public override bool CanUseItem(Player player)
 {
     if (player.altFunctionUse == 2)
     {
         if (Main.myPlayer == player.whoAmI)
         {
             TeleportClass.HandleTeleport(3);
             return(true);
         }
     }
     if (player.altFunctionUse != 2)
     {
         if (Main.myPlayer == player.whoAmI)
         {
             TeleportClass.HandleTeleport(4);
             return(true);
         }
     }
     return(false);
 }
 public override void RightClick(Player player)
 {
     TeleportClass.HandleTeleport(1);
 }