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); }
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); }