Move wilderness plguin to combat package, remove explicit return and fix typo.

This commit is contained in:
Ryley Kimmel
2015-03-04 03:07:55 -05:00
parent bc974d74cb
commit 556253abb2
4 changed files with 28 additions and 3 deletions
+2 -2
View File
@@ -10,7 +10,7 @@ class PlayerAction
def initialize(slot, primary, name)
index = [ :first, :second, :third, :fourth, :fifth ].find_index(slot)
raise "Unsupport action slot #{slot}." if index.nil?
raise "Unsupported action slot #{slot}." if index.nil?
@slot = index
@primary = primary
@@ -55,7 +55,7 @@ class Player
end
def has_action(action)
return actions[action.slot] == action.name
actions[action.slot] == action.name
end
end