Ejemplo n.º 1
0
 public override bool Equals(object a)
 {
     if (a is TeleporterDestination)
     {
         TeleporterDestination b = (TeleporterDestination)a;
         return(b.MapName == MapName && b.TileX == TileX && b.TileY == TileY);
     }
     return(false);
 }
Ejemplo n.º 2
0
        internal void Resolver(StardewValley.Farmer who, string answer)
        {
            if (answer == "cancel")
            {
                return;
            }
            int i = Convert.ToInt32(answer);

            Configs.TeleporterDestination destination = this.List.Destinations[i];
            Game1.warpFarmer(destination.MapName, destination.TileX, destination.TileY, false);
        }