lib/GameApp.rb
# Allows player to spend experience points to improve their hero's health or power.
Allows player to spend experience points to improve their hero's health or power.
Allows player to spend experience points to improve their hero ' s health or power .
def shop
    display_shop
    selection = @@prompt.select("What would you like to buy?", %w(EXP10-Potion(Restore\ Health) EXP5-Weapons(Increase\ Power) Back\ to\ Menu), cycle: true)
    case selection
    when "EXP10-Potion(Restore Health)"
      shop_health
    when "EXP5-Weapons(Increase Power)"
      shop_power
    when "Back to Menu"
      current_game
    end
  end
def shop display_shop selection = @@prompt . select ( "What would you like to buy?" , %w( EXP10-Potion(Restore\ Health) EXP5-Weapons(Increase\ Power) Back\ to\ Menu ) , cycle : true ) case selection when "EXP10-Potion(Restore Health)" shop_health when "EXP5-Weapons(Increase Power)" shop_power when "Back to Menu" current_game end end
Allows player to spend experience points to improve their hero's health or power.
Allows player to spend experience points to improve their hero ' s health or power .