mirror of
https://github.com/2006-Scape/apollo.git
synced 2026-07-03 16:49:11 +00:00
19 lines
381 B
Ruby
19 lines
381 B
Ruby
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 |