From 9da5b69b250226ebc73de9f184b553c11c52f2ac Mon Sep 17 00:00:00 2001 From: Dane Date: Mon, 7 Apr 2014 14:43:52 -0400 Subject: [PATCH] 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. --- data/plugins/skill-prayer/bury.rb | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/data/plugins/skill-prayer/bury.rb b/data/plugins/skill-prayer/bury.rb index 6f85d466..7109c6b1 100644 --- a/data/plugins/skill-prayer/bury.rb +++ b/data/plugins/skill-prayer/bury.rb @@ -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