Fix mining; rename to skill-mining.

This commit is contained in:
Major-
2013-11-25 21:26:49 +00:00
parent 53a552118f
commit f3799391c8
6 changed files with 23 additions and 23 deletions
+19
View File
@@ -0,0 +1,19 @@
GEMSTONES = {}
class Gemstone
attr_reader :id, :chance
def initialize(id, chance)
@id = id
@chance = chance
end
end
def append_gem(gem)
GEMSTONES[gem.id] = gem
end
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