class Gemwarrior::Alexandrat
Public Class Methods
new()
click to toggle source
Calls superclass method
Gemwarrior::Monster::new
# File lib/gemwarrior/entities/monsters/alexandrat.rb, line 8 def initialize super self.name = 'alexandrat' self.name_display = 'Alexandrat' self.description = 'Tiny, but fierce, color-changing rodent.' self.battlecry = 'Bitey, bitey!' self.face = 'ugly' self.hands = 'gnarled' self.mood = 'unchipper' self.level = rand(1..2) 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)) self.defense = rand(1..2) self.dexterity = rand(1..3) self.rox = rand((level * 2)..(level * 3)) self.xp = rand(level..(level * 2)) end