:bonnie_shop
  Bonnie ("What are you looking for?", "Buy Medicine", "Check-up", "Restore Stamina", "Restore Fatigue", "Just Chat", "Nothing", "Nothing")
  if response == "Buy Medicine"
    wait 10
    js Managers.Scenes.snapForBackground();
    js Managers.Scenes.push(GameScenes.OrangeTownMedicineShop);
    return
  end

  if response == "Check-up"
    play child bonnie_shop_checkup
    return
  end

  if response == "Restore Stamina"
    play child bonnie_shop_restore_stamina
    return
  end

  if response == "Restore Fatigue"
    play child bonnie_shop_restore_fatigue
    return
  end

  if response == "Just Chat"
    js Managers.Villagers.forceChatWithVillager('Bonnie');
    return
  end    

  Bonnie "Are you teasing me?"

:bonnie_shop_checkup
  if Managers.Items.gold >= 5
    Bonnie ("The check-up costs 5G, is that ok?", "Sure", "No way")
    if response == "No way"
      Bonnie "Fine, I'll do it for free."
    else
      js Managers.Items.loseGold(5);
    end
  end

  Bonnie "Let me see...<wait><wait> Hmm...<wait><wait> Alright, here's your data."
  js Managers.Health.printReport('Bonnie')


:bonnie_shop_restore_stamina
  Bonnie ("Do you want me to fully recover your stamina for $ 500?", "Yes", "No", "No")
  if response == "Yes"
    if has gold 500
      lose gold 500
      restore health full stamina
      Bonnie "Thank you! Your stamina has been restored."
    else
      Bonnie "But you don't have $ 500. Are you hiding your money, <name>?"
    end

    return
  end
  
:bonnie_shop_restore_fatigue
  Bonnie ("Do you want me to fully recover your fatigue for $ 700?", "Yes", "No", "No")
  if response == "Yes"
    if has gold 700
      lose gold 700
      restore health full fatigue
      Bonnie "Thank you! Your fatigue has been restored."
    else
      Bonnie "But you don't have $ 700. Are you hiding your money, <name>?"
    end

    return
  end