Phantom5800 / pmr-tracker

Web based tracker for Paper Mario Randomizer
MIT License
6 stars 12 forks source link

StartingMap import doesn't work #71

Open Phantom5800 opened 2 years ago

Phantom5800 commented 2 years ago

Importing a seed does not properly set the Starting Location option in settings. The values retrieved from the randomizer are integer values mapping to direct map id's. There needs to be a reverse map lookup added to the import in main.js around here:

if (data["StartingMap"] != $("#starting-location").val()) {
  // reverse map lookup here
  $("#starting-location").val(/* actual index */);
}