Sha256: 340612b3ead8742e9097e47f6bd15c1d38f135f534db9f68c3f96b30e945c569
Contents?: true
Size: 1009 Bytes
Versions: 10
Compression:
Stored size: 1009 Bytes
Contents
# lib/gemwarrior/entities/monsters/aquamarine.rb # Aquamarine monster require_relative '../monster' module Gemwarrior class Aquamarine < Monster def initialize self.name = 'aquamarine' self.description = 'It is but one of the few, the proud, the underwater.' self.face = 'strained' self.hands = 'hairy' self.mood = 'tempered' self.level = rand(3..4) self.hp_cur = rand((level * 2)..(level * 3)) self.hp_max = hp_cur self.atk_lo = rand(level..(level * 1.5).floor) self.atk_hi = rand((level * 1.5).floor..(level * 2.5).floor) self.defense = rand(3..5) self.dexterity = rand(4..6) self.inventory = Inventory.new self.rox = rand((level * 2)..(level * 3)) self.xp = rand(level..(level * 2)) self.battlecry = 'Attention! You are about to get smashed!' end end end
Version data entries
10 entries across 10 versions & 1 rubygems