mirror of
https://github.com/2006-Scape/apollo.git
synced 2026-07-03 08:39:11 +00:00
20 lines
382 B
Ruby
20 lines
382 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
|