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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 30320b17fc348bcf979a232b45e942b2760a6f7d
4
- data.tar.gz: 33a63526a76eeb98fae273542b3a55fbfb9b0287
3
+ metadata.gz: 2882237d0ae680196fd53ba40b980b971cb98827
4
+ data.tar.gz: 8526b2c173b534c5179b6a77f7ca9f6f084240f8
5
5
  SHA512:
6
- metadata.gz: 9c795a7c3823054838aa6e8149a37e320124736e112abb7cfc47db8aa58684addf7830e412c6efd04d167fee7719634ce75e24548786c899c20c03ea2a33fb7a
7
- data.tar.gz: ee7df37798af7556b855ad3c8fb639cd19514d6d1d45ed719f26c72c35543ea89efa25132cbe79f6deb44a15a09db84e52859a5c68ac58d42b7e97b571af98d0
6
+ metadata.gz: df7ee21d2dea13af1bbaf0c418c83cfc789782542404950b864bc3f52d8068d7590fd7a6468dd194c8b64feeb019c8ea9965b1ee4ceb497de31800c1b0042fcf
7
+ data.tar.gz: 750f4ee539610fd37cba7ae432458044fe1a76d1ef1dd37369a3b95f707565ffefa3b708371949c2efe5d16973b42332d941a9801c2349e37f6be096e43a569e
@@ -15,8 +15,9 @@ module Gemwarrior
15
15
  class Repl
16
16
  # CONSTANTS
17
17
  ## MESSAGES
18
- QUIT_MESSAGE = 'Temporal flux detected. Shutting down...'.colorize(:red)
19
- SPLASH_MESSAGE = 'Welcome to the land of *Jool*, where randomized fortune is just as likely as mayhem.'
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 command list'
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)
@@ -2,5 +2,5 @@
2
2
  # Version of Gem Warrior
3
3
 
4
4
  module Gemwarrior
5
- VERSION = '0.9.12'
5
+ VERSION = '0.9.13'
6
6
  end
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.12
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-04 00:00:00.000000000 Z
11
+ date: 2015-08-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: os