gemwarrior 0.9.12 → 0.9.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/gemwarrior/repl.rb +7 -5
- data/lib/gemwarrior/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 2882237d0ae680196fd53ba40b980b971cb98827
|
|
4
|
+
data.tar.gz: 8526b2c173b534c5179b6a77f7ca9f6f084240f8
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: df7ee21d2dea13af1bbaf0c418c83cfc789782542404950b864bc3f52d8068d7590fd7a6468dd194c8b64feeb019c8ea9965b1ee4ceb497de31800c1b0042fcf
|
|
7
|
+
data.tar.gz: 750f4ee539610fd37cba7ae432458044fe1a76d1ef1dd37369a3b95f707565ffefa3b708371949c2efe5d16973b42332d941a9801c2349e37f6be096e43a569e
|
data/lib/gemwarrior/repl.rb
CHANGED
|
@@ -15,8 +15,9 @@ module Gemwarrior
|
|
|
15
15
|
class Repl
|
|
16
16
|
# CONSTANTS
|
|
17
17
|
## MESSAGES
|
|
18
|
-
QUIT_MESSAGE
|
|
19
|
-
|
|
18
|
+
QUIT_MESSAGE = 'Temporal flux detected. Shutting down...'.colorize(:red)
|
|
19
|
+
MAIN_MENU_QUIT_MESSAGE = 'Giving up so soon? Jool will be waiting...'.colorize(:yellow)
|
|
20
|
+
SPLASH_MESSAGE = 'Welcome to the land of *Jool*, where randomized fortune is just as likely as mayhem.'
|
|
20
21
|
|
|
21
22
|
attr_accessor :world, :eval
|
|
22
23
|
|
|
@@ -94,8 +95,8 @@ module Gemwarrior
|
|
|
94
95
|
|
|
95
96
|
def print_help
|
|
96
97
|
puts '* Basic functions: look, go, character, inventory, attack *'
|
|
97
|
-
puts '* Type \'help\' while in-game for complete
|
|
98
|
-
puts '* Most commands can be abbreviated to their first letter
|
|
98
|
+
puts '* Type \'help\' while in-game for complete list of commands *'
|
|
99
|
+
puts '* Most commands can be abbreviated to their first letter *'
|
|
99
100
|
puts
|
|
100
101
|
end
|
|
101
102
|
|
|
@@ -126,7 +127,7 @@ module Gemwarrior
|
|
|
126
127
|
print_main_menu if show_choices
|
|
127
128
|
print_main_menu_prompt if show_choices
|
|
128
129
|
|
|
129
|
-
choice = STDIN.getch
|
|
130
|
+
choice = STDIN.getch.downcase
|
|
130
131
|
|
|
131
132
|
case choice
|
|
132
133
|
when 'n'
|
|
@@ -144,6 +145,7 @@ module Gemwarrior
|
|
|
144
145
|
run_main_menu
|
|
145
146
|
when 'e', 'x'
|
|
146
147
|
puts choice
|
|
148
|
+
puts MAIN_MENU_QUIT_MESSAGE
|
|
147
149
|
exit(0)
|
|
148
150
|
else
|
|
149
151
|
run_main_menu(show_choices = false)
|
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.9.
|
|
4
|
+
version: 0.9.13
|
|
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-08-
|
|
11
|
+
date: 2015-08-05 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: os
|