gemwarrior 0.14.5 → 0.14.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/gemwarrior +0 -0
- data/lib/gemwarrior/misc/audio.rb +3 -3
- data/lib/gemwarrior/repl.rb +8 -4
- data/lib/gemwarrior/version.rb +1 -1
- metadata +3 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 88f93a63ffbbc7334133b9ea23c40aae700d9f78
|
4
|
+
data.tar.gz: fa4a6078ecbc1b11687fc42861e6a955481e2e56
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2bb197442769ca3e5b792cfea0376a1adb5f8fb88af2d7ef75ff9c1d984f8dafdfa71dedcce4a2789fb7bf8d9f3a0d2ffcf77ad88a18d714f5797b60a50c6910
|
7
|
+
data.tar.gz: 33e4ea84b9312a221148b674d9ec9bff3c4d47793c6b257acb320d2897cf47eb0c8feb7c969c7ab623d2b67acd7b1b1b86a861968b8a14805ef8f983599d8881
|
data/bin/gemwarrior
CHANGED
File without changes
|
@@ -12,19 +12,19 @@ module Gemwarrior
|
|
12
12
|
begin
|
13
13
|
require 'win32/sound'
|
14
14
|
rescue LoadError => e
|
15
|
-
GameOptions.data['errors'] = "#{GameOptions.data['sound_system']} could not be loaded. You may need to run 'gem install #{GameOptions.data['sound_system']}'.
|
15
|
+
GameOptions.data['errors'] = "#{GameOptions.data['sound_system']} could not be loaded. You may need to run 'gem install #{GameOptions.data['sound_system']}'. Silence for now."
|
16
16
|
end
|
17
17
|
elsif GameOptions.data['sound_system'].eql?('feep')
|
18
18
|
begin
|
19
19
|
require 'feep'
|
20
20
|
rescue LoadError => e
|
21
|
-
GameOptions.data['errors'] = "#{GameOptions.data['sound_system']} could not be loaded. You may need to run 'gem install #{GameOptions.data['sound_system']}'.
|
21
|
+
GameOptions.data['errors'] = "#{GameOptions.data['sound_system']} could not be loaded. You may need to run 'gem install #{GameOptions.data['sound_system']}'. Silence for now."
|
22
22
|
end
|
23
23
|
elsif GameOptions.data['sound_system'].eql?('bloops')
|
24
24
|
begin
|
25
25
|
require 'bloops'
|
26
26
|
rescue LoadError => e
|
27
|
-
GameOptions.data['errors'] = "#{GameOptions.data['sound_system']} could not be loaded. You may need to run 'gem install #{GameOptions.data['sound_system']}aphone'.
|
27
|
+
GameOptions.data['errors'] = "#{GameOptions.data['sound_system']} could not be loaded. You may need to run 'gem install #{GameOptions.data['sound_system']}aphone'. Silence for now."
|
28
28
|
end
|
29
29
|
end
|
30
30
|
end
|
data/lib/gemwarrior/repl.rb
CHANGED
@@ -331,8 +331,8 @@ module Gemwarrior
|
|
331
331
|
if result.nil?
|
332
332
|
run_main_menu
|
333
333
|
else
|
334
|
-
|
335
|
-
|
334
|
+
print_errors
|
335
|
+
load_saved_world(result)
|
336
336
|
return
|
337
337
|
end
|
338
338
|
end
|
@@ -497,6 +497,11 @@ module Gemwarrior
|
|
497
497
|
end
|
498
498
|
end
|
499
499
|
|
500
|
+
def load_saved_world(result)
|
501
|
+
self.world = result
|
502
|
+
self.evaluator = Evaluator.new(self.world)
|
503
|
+
end
|
504
|
+
|
500
505
|
def setup_screen(initial_command = nil, extra_command = nil, new_skip = false, resume_skip = false)
|
501
506
|
# welcome player to game
|
502
507
|
clear_screen
|
@@ -514,8 +519,7 @@ module Gemwarrior
|
|
514
519
|
run_main_menu
|
515
520
|
else
|
516
521
|
print_errors
|
517
|
-
|
518
|
-
self.evaluator = Evaluator.new(self.world)
|
522
|
+
load_saved_world(result)
|
519
523
|
end
|
520
524
|
else
|
521
525
|
run_main_menu
|
data/lib/gemwarrior/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gemwarrior
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.14.
|
4
|
+
version: 0.14.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael Chadwick
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-09-
|
11
|
+
date: 2015-09-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: os
|
@@ -363,6 +363,4 @@ rubygems_version: 2.4.8
|
|
363
363
|
signing_key:
|
364
364
|
specification_version: 4
|
365
365
|
summary: RubyGem text adventure
|
366
|
-
test_files:
|
367
|
-
- spec/gemwarrior_spec.rb
|
368
|
-
- spec/spec_helper.rb
|
366
|
+
test_files: []
|