Implement various fixes from Major-/Apollo.

This commit is contained in:
Major-
2013-10-27 19:31:44 +00:00
parent 08c72bf9aa
commit e0c7287af5
26 changed files with 565 additions and 370 deletions
+7 -7
View File
@@ -1,6 +1,6 @@
GEMS = {}
GEMSTONES = {}
class Gem
class Gemstone
attr_reader :id, :chance
def initialize(id, chance)
@@ -10,10 +10,10 @@ class Gem
end
def append_gem(gem)
GEMS[gem.id] = gem
GEMSTONES[gem.id] = gem
end
append_gem(Gem.new(1623, 0)) # uncut sapphire
append_gem(Gem.new(1605, 0)) # uncut emerald
append_gem(Gem.new(1619, 0)) # uncut ruby
append_gem(Gem.new(1617, 0)) # uncut diamond
append_gem(Gemstone.new(1623, 0)) # uncut sapphire
append_gem(Gemstone.new(1605, 0)) # uncut emerald
append_gem(Gemstone.new(1619, 0)) # uncut ruby
append_gem(Gemstone.new(1617, 0)) # uncut diamond
+1 -1
View File
@@ -45,7 +45,7 @@ class MiningAction < DistancedAction
def executeAction
skills = character.skill_set
level = skills.get_skill(Skill::MINING).maximum_level # TODO: is using max level correct?
level = skills.get_skill(Skill::MINING).current_level
pickaxe = find_pickaxe
# verify the player can mine with their pickaxe