Fix bones id and BuryBoneAction delay.

The indices for bones were being set to "hash[:id], hash[:experience]".
instead of "hash[:id]" due to a syntax overlook.
This commit is contained in:
Dane
2014-04-07 14:43:52 -04:00
parent d8e447196a
commit 9da5b69b25
+3 -4
View File
@@ -23,7 +23,7 @@ end
class BuryBoneAction < Action
def initialize(mob, slot, bone)
super(2, false, mob)
super(1, false, mob)
@slot = slot
@bone = bone
@@ -56,9 +56,8 @@ end
# Appends a bone to the array
def append_bone(hash)
raise 'Hash must contain an id and an experience value.' unless hash.has_key?(:id) && hash.has_key?(:experience)
id = hash[:id], experience = hash[:experience]
BONES[id] = Bone.new(id, experience)
id = hash[:id]
BONES[id] = Bone.new(id, hash[:experience])
end
append_bone :name => :regular_bones, :id => 526, :experience => 5