Sha256: 562b8b60de88944d9ca52d01db207112e9758b5ae073c33570eddfcc389b1f58
Contents?: true
Size: 1017 Bytes
Versions: 46
Compression:
Stored size: 1017 Bytes
Contents
# lib/gemwarrior/entities/monsters/diaman.rb # Diaman monster require_relative '../monster' module Gemwarrior class Diaman < Monster def initialize super self.name = 'diaman' self.description = 'Crystalline structure in the form of a man, lumbering toward you, with outstretched, edged pincers.' self.face = 'bright' self.hands = 'jagged' self.mood = 'adamant' self.level = rand(8..10) self.hp_cur = rand((level * 2)..(level * 3)) self.hp_max = hp_cur self.atk_lo = rand(level..(level * 2.5).floor) self.atk_hi = rand((level * 2.5).floor..(level * 3).floor) self.defense = rand(5..7) self.dexterity = rand(8..10) self.rox = rand((level * 2)..(level * 3)) self.xp = rand(level..(level * 2)) self.battlecry = 'Precious human, prepare to be lost to the annals of time!' end end end
Version data entries
46 entries across 46 versions & 1 rubygems