gemwarrior 0.9.35 → 0.9.36
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/evaluator.rb +9 -6
- data/lib/gemwarrior/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 2aea546b78bf2cba84a7ecd3e059c892dc180ae1
|
|
4
|
+
data.tar.gz: 1a55c01aed90707d339fef86724e8727906134e5
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c0996702785d7da641fe4d0c88551f8dc73daec3b68307e5fb5e8aa73e213c88a1b04845199af9681c853067ad35aec1a40d1fc83803586570e3c3c9c2c42a88
|
|
7
|
+
data.tar.gz: 12bb7240e97fbb57857e89abc733ebeb2c23a0c7d6afca227204d48bbc04f3da9400e1133b5f9793008c574afd6dfc2f19a6a61554ae00556acb55a7b15f1d11
|
data/lib/gemwarrior/evaluator.rb
CHANGED
|
@@ -51,7 +51,7 @@ module Gemwarrior
|
|
|
51
51
|
self.world = world
|
|
52
52
|
|
|
53
53
|
self.devcommands = %w(god beast list vars map stat teleport spawn levelbump restfight)
|
|
54
|
-
self.devaliases = %w(gd bs ls
|
|
54
|
+
self.devaliases = %w(gd bs ls vs m st tp sp lb rf)
|
|
55
55
|
self.devextras = %w()
|
|
56
56
|
self.devcmd_descriptions = [
|
|
57
57
|
'Toggle god mode (i.e. invincible)',
|
|
@@ -66,9 +66,9 @@ module Gemwarrior
|
|
|
66
66
|
'Rest, but ensure battle for testing'
|
|
67
67
|
]
|
|
68
68
|
|
|
69
|
-
self.commands = %w(character inventory rest look take use drop equip unequip go north east south west attack change help quit quit!)
|
|
70
|
-
self.aliases = %w(c i r l t u d eq ue g n e s w a ch h q qq)
|
|
71
|
-
self.extras = %w(exit exit! x xx fight f)
|
|
69
|
+
self.commands = %w(character inventory rest look take use drop equip unequip go north east south west attack change version help quit quit!)
|
|
70
|
+
self.aliases = %w(c i r l t u d eq ue g n e s w a ch v h q qq)
|
|
71
|
+
self.extras = %w(exit exit! x xx fight f ? ?? ???)
|
|
72
72
|
self.cmd_descriptions = [
|
|
73
73
|
'Display character information',
|
|
74
74
|
'Look in your inventory',
|
|
@@ -86,6 +86,7 @@ module Gemwarrior
|
|
|
86
86
|
'Go west (shortcut)',
|
|
87
87
|
'Attack a monster',
|
|
88
88
|
'Change something',
|
|
89
|
+
'Display game version',
|
|
89
90
|
'This help menu',
|
|
90
91
|
'Quit w/ confirmation (also exit/x)',
|
|
91
92
|
'Quit w/o confirmation (also exit!/xx)'
|
|
@@ -117,7 +118,7 @@ module Gemwarrior
|
|
|
117
118
|
return GameOptions.data['god_mode'] = !GameOptions.data['god_mode']
|
|
118
119
|
when 'beast', 'bs'
|
|
119
120
|
return GameOptions.data['beast_mode'] = !GameOptions.data['beast_mode']
|
|
120
|
-
when 'vars', '
|
|
121
|
+
when 'vars', 'vs'
|
|
121
122
|
world.print_vars
|
|
122
123
|
when 'list', 'ls'
|
|
123
124
|
if param1.nil?
|
|
@@ -519,8 +520,10 @@ module Gemwarrior
|
|
|
519
520
|
ERROR_CHANGE_PARAM_INVALID
|
|
520
521
|
end
|
|
521
522
|
end
|
|
522
|
-
when 'help', 'h'
|
|
523
|
+
when 'help', 'h', '?', '??', '???'
|
|
523
524
|
list_commands
|
|
525
|
+
when 'version', 'v'
|
|
526
|
+
Gemwarrior::VERSION
|
|
524
527
|
when 'quit', 'exit', 'q', 'x'
|
|
525
528
|
puts 'You sure you want to quit? (y/n): '
|
|
526
529
|
response = gets.chomp.downcase
|
data/lib/gemwarrior/version.rb
CHANGED