@@ -51,7 +51,7 @@ def initialize(world)
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 v m st tp sp lb rf )
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 @@ def initialize(world)
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 @@ def initialize(world)
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 @@ def evaluate(input)
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' , 'v '
121
+ when 'vars' , 'vs '
121
122
world . print_vars
122
123
when 'list' , 'ls'
123
124
if param1 . nil?
@@ -519,8 +520,10 @@ def evaluate(input)
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
0 commit comments