Class: Gemwarrior::Garynetty

Inherits:
Monster show all
Defined in:
lib/gemwarrior/entities/monsters/bosses/garynetty.rb

Constant Summary

Constants inherited from Monster

Monster::INVENTORY_ITEMS_DEFAULT

Instance Attribute Summary

Attributes inherited from Monster

#battlecry, #inventory, #is_boss

Attributes inherited from Creature

#atk_hi, #atk_lo, #defense, #dexterity, #face, #hands, #hp_cur, #hp_max, #inventory, #level, #mood, #rox, #xp

Attributes inherited from Entity

#description, #name

Instance Method Summary collapse

Methods inherited from Monster

#describe

Methods inherited from Entity

#status

Constructor Details

#initializeGarynetty

Returns a new instance of Garynetty.



8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# File 'lib/gemwarrior/entities/monsters/bosses/garynetty.rb', line 8

def initialize
  self.name         = 'Garynetty'
  self.description  = 'Conservative, yet odd, the Garynetty is not messing around.'
  self.face         = 'irregular'
  self.hands        = 'sharp'
  self.mood         = 'abrasive'

  self.level        = rand(12..15)
  self.hp_cur       = rand((level * 2.5).floor..(level * 3.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    = Inventory.new
  self.rox          = rand((level * 2)..(level * 3))
  self.xp           = rand((level * 3)..(level * 4))

  self.battlecry    = '...?!'
  self.is_boss      = true
end