mirror of
https://github.com/2006-Scape/apollo.git
synced 2026-07-03 00:38:21 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user