mirror of
https://github.com/2006-Scape/apollo.git
synced 2026-07-03 08:39:11 +00:00
Implement various fixes from Major-/Apollo.
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user