Module: Wackelkoepfe::TreasureTrove

Defined in:
lib/Wackelkoepfe/treasure_trove.rb

Constant Summary collapse

TREASURES =
[
Treasure.new(:Kirsche, 5),
Treasure.new(:Flasche, 25),
Treasure.new(:Schriftrolle, 50),
Treasure.new(:Muenze, 100),
Treasure.new(:Ruestung, 200),
Treasure.new(:Armbrust, 400)]

Class Method Summary collapse

Class Method Details

.randomObject



12
13
14
# File 'lib/Wackelkoepfe/treasure_trove.rb', line 12

def self.random
    TREASURES.sample
end