class Gemwarrior::Garynetty

Public Class Methods

new() click to toggle source
Calls superclass method Gemwarrior::Monster::new
# File lib/gemwarrior/entities/monsters/bosses/garynetty.rb, line 9
def initialize
  super

  self.name         = 'garynetty'
  self.name_display = 'Garynetty'
  self.description  = 'Conservative, yet odd, the Garynetty is not messing around.'
  self.battlecry    = '...?!'
  self.face         = 'irregular'
  self.hands        = 'sharp'
  self.mood         = 'abrasive'

  self.level        = rand(10..12)
  self.hp_cur       = rand((level * 4.5).floor..(level * 5.5).floor)
  self.hp_max       = hp_cur
  self.atk_lo       = rand((level * 2)..(level * 2.5).floor)
  self.atk_hi       = rand((level * 2.5).floor..(level * 3).floor)
  self.defense      = rand(7..9)
  self.dexterity    = rand(10..12)

  self.inventory    = random_item
  self.rox          = rand((level * 5)..(level * 6))
  self.xp           = rand((level * 7)..(level * 11))

  self.is_boss      = true
end

Private Instance Methods

random_item() click to toggle source
# File lib/gemwarrior/entities/monsters/bosses/garynetty.rb, line 37
def random_item
  if [true, false].sample
    Inventory.new(items = [Tent.new])
  end
end