Merge pull request #19 from thedaneeffect/master.

Multiple Tiny Fixes.
This commit is contained in:
Major-
2014-04-14 15:52:38 +01:00
5 changed files with 15 additions and 9 deletions
+2 -2
View File
@@ -14,8 +14,8 @@ class BankAction < DistancedAction
end
def executeAction
character.turn_to @position
BankUtils.open_bank character
mob.turn_to @position
BankUtils.open_bank mob
stop
end
+7
View File
@@ -41,4 +41,11 @@ end
# Clears the player's own inventory.
on :command, :empty, RIGHTS_MOD do |player, command|
player.inventory.clear
end
# Gives the player one thousand of each rune.
on :command, :runes, RIGHTS_ADMIN do |player, command|
(554..566).each do |i|
player.inventory.add(i, 1000)
end
end
+1 -1
View File
@@ -273,7 +273,7 @@ class FinishedMixingAction < MixingAction
name = @potion.item.definition.name.sub('(3)', '')
player.send_message("You add the #{ingredient} to the mixture to make an #{name}.", true)
player.skill_set.add_experience(HERBLORE_ID, @potion.experience)
player.skill_set.add_experience(HERBLORE_SKILL_ID, @potion.experience)
inventory = player.inventory
+2 -2
View File
@@ -35,7 +35,7 @@ class TeleportingAction < SpellAction
end
def execute_action
@spell.ancient ? execute_modern : execute_ancient
@spell.ancient ? execute_ancient : execute_modern
end
def execute_modern
@@ -58,7 +58,7 @@ class TeleportingAction < SpellAction
mob.play_graphic(ANCIENT_TELE_GRAPHIC)
mob.play_animation(ANCIENT_TELE_ANIM)
delay = 2
elsif @pulses == 1
elsif @pulses == 2
mob.stop_graphic
mob.stop_animation
mob.teleport(@spell.destination)
+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