gemwarrior 0.15.1 → 0.15.2
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/bin/gemwarrior +0 -0
- data/lib/gemwarrior/evaluator.rb +1 -1
- data/lib/gemwarrior/version.rb +1 -1
- data/lib/gemwarrior/world.rb +9 -0
- 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: 863f3657cde113ee4b7c5dbbb045a4cdc5fe7077
|
|
4
|
+
data.tar.gz: cd06e19a9fa199b07afe772180611bf5c9745068
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 44a4fb551d5731c317aaa8d08cd44e3aab838258c7b69d46d5cb42f016f9e954740989b01d65784de70fe7d543881ad8606b354fc5e47c1910373d399c8c3037
|
|
7
|
+
data.tar.gz: c19b4794e439a5f11f4d707fc40cfa79d476a7c08c65f12b4b6eb60327e0783f6b003895fc79d837acbadcb4f9166cafc5dedca97368f17c92e166730af58d64
|
data/bin/gemwarrior
CHANGED
|
File without changes
|
data/lib/gemwarrior/evaluator.rb
CHANGED
|
@@ -14,7 +14,7 @@ module Gemwarrior
|
|
|
14
14
|
|
|
15
15
|
GO_PARAMS = 'Options: north, east, south, west'
|
|
16
16
|
CHANGE_PARAMS = 'Options: name'
|
|
17
|
-
DEBUG_LIST_PARAMS = 'Options: players, creatures, items, locations, monsters, weapons'
|
|
17
|
+
DEBUG_LIST_PARAMS = 'Options: players, creatures, items, locations, monsters, weapons, armor'
|
|
18
18
|
DEBUG_STAT_PARAMS = 'Options: hp_cur, atk_lo, atk_hi, experience, rox, strength, dexterity, defense, inventory'
|
|
19
19
|
|
|
20
20
|
ERROR_COMMAND_INVALID = 'That is not something the game yet understands.'
|
data/lib/gemwarrior/version.rb
CHANGED
data/lib/gemwarrior/world.rb
CHANGED
|
@@ -197,6 +197,14 @@ module Gemwarrior
|
|
|
197
197
|
else
|
|
198
198
|
">> weapons: #{GameWeapons.data.map(&:name).join(', ')}"
|
|
199
199
|
end
|
|
200
|
+
when 'armor'
|
|
201
|
+
puts "[ARMOR](#{GameArmor.data.length})".colorize(:yellow)
|
|
202
|
+
if details
|
|
203
|
+
GameArmor.data.map { |w| print w.describe_detailed }
|
|
204
|
+
return
|
|
205
|
+
else
|
|
206
|
+
">> armor: #{GameArmor.data.map(&:name).join(', ')}"
|
|
207
|
+
end
|
|
200
208
|
else
|
|
201
209
|
ERROR_LIST_PARAM_INVALID
|
|
202
210
|
end
|
|
@@ -210,6 +218,7 @@ module Gemwarrior
|
|
|
210
218
|
puts "#{list('creatures', show_details)}\n\n"
|
|
211
219
|
puts "#{list('monsters', show_details)}\n\n"
|
|
212
220
|
puts "#{list('items', show_details)}\n\n"
|
|
221
|
+
puts "#{list('armor', show_details)}\n\n"
|
|
213
222
|
puts "#{list('weapons', show_details)}\n\n"
|
|
214
223
|
puts "#{list('locations', show_details)}\n"
|
|
215
224
|
puts
|
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.15.
|
|
4
|
+
version: 0.15.2
|
|
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-30 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: os
|
|
@@ -367,6 +367,4 @@ rubygems_version: 2.4.8
|
|
|
367
367
|
signing_key:
|
|
368
368
|
specification_version: 4
|
|
369
369
|
summary: RubyGem text adventure
|
|
370
|
-
test_files:
|
|
371
|
-
- spec/gemwarrior_spec.rb
|
|
372
|
-
- spec/spec_helper.rb
|
|
370
|
+
test_files: []
|