Default apollo.

This commit is contained in:
Major-
2013-10-27 17:45:36 +00:00
commit 08c72bf9aa
406 changed files with 23043 additions and 0 deletions
+19
View File
@@ -0,0 +1,19 @@
GEMS = {}
class Gem
attr_reader :id, :chance
def initialize(id, chance)
@id = id
@chance = chance
end
end
def append_gem(gem)
GEMS[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