Skip to content

Commit c426521

Browse files
accidentally added changes that were not functional yet, so this update comments them out for now
1 parent b14dc95 commit c426521

2 files changed

Lines changed: 9 additions & 8 deletions

File tree

lib/gemwarrior/repl.rb

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def start(initial_command, extra_command, new_game)
4040
world.duration = clocker.stop
4141
game.update_options_file
4242
log_stats(world.duration, world.player)
43-
save_game(world)
43+
#save_game(world)
4444
end
4545

4646
clocker.clock do
@@ -204,7 +204,7 @@ def print_main_menu
204204
puts " GW v#{Gemwarrior::VERSION}"
205205
puts '======================='
206206
puts ' (N)ew Game'
207-
puts ' (R)esume Game' if save_file_exist?
207+
#puts ' (R)esume Game' if save_file_exist?
208208
puts ' (A)bout'
209209
puts ' (H)elp'
210210
puts ' (O)ptions'
@@ -227,15 +227,16 @@ def run_main_menu(show_choices = true)
227227

228228
case choice
229229
when 'n'
230-
if overwrite_save?
230+
#if overwrite_save?
231231
clear_screen
232232
play_intro_tune
233233
print_splash_message
234234
print_fortune
235235
return
236-
else
237-
run_main_menu
238-
end
236+
#else
237+
# run_main_menu
238+
#end
239+
=begin
239240
when 'r'
240241
if save_file_exist?
241242
result = resume_game
@@ -245,6 +246,7 @@ def run_main_menu(show_choices = true)
245246
self.world = result
246247
end
247248
end
249+
=end
248250
when 'a'
249251
puts choice
250252
print_about_text
@@ -340,7 +342,6 @@ def resume_game
340342
if mode.eql? 'Y'
341343
if File.exist?(GameOptions.data['save_file_yaml_path'])
342344
File.open(GameOptions.data['save_file_yaml_path'], 'r') do |f|
343-
binding.pry
344345
return YAML::load(f)
345346
end
346347
else

lib/gemwarrior/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
# Version of Gem Warrior
33

44
module Gemwarrior
5-
VERSION = '0.9.38'
5+
VERSION = '0.9.39'
66
end

0 commit comments

Comments
 (0)