Class: Gemwarrior::Apatiger

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

Constant Summary

Constants inherited from Monster

Monster::ITEM_POOL

Instance Attribute Summary

Attributes inherited from Monster

#battlecry, #is_boss, #is_dead

Attributes inherited from Creature

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

Attributes inherited from Entity

#consumable, #describe, #describe_detailed, #description, #display_shopping_cart, #equippable, #equipped, #name, #name_display, #number_of_uses, #takeable, #talkable, #useable, #useable_battle, #used, #used_again

Instance Method Summary collapse

Methods inherited from Monster

#describe_detailed

Methods inherited from Creature

#describe, #describe_detailed

Methods inherited from Entity

#puts, #use

Constructor Details

#initializeApatiger

Returns a new instance of Apatiger.



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/apatiger.rb', line 8

def initialize
  super

  self.name         = 'apatiger'
  self.name_display = 'Apatiger'
  self.description  = 'Apathetic about most everything as it lazes around, save for eating you.'
  self.battlecry    = 'Gggggggggrrrrrrrrrrrrrrrrooooooooooowwwwwwwwwwwwlllllllll!'
  self.face         = 'calloused'
  self.hands        = 'soft'
  self.mood         = 'apathetic'

  self.level        = rand(4..5)
  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(4..7)
  self.dexterity    = rand(3..7)

  self.rox          = rand((level * 2)..(level * 3))
  self.xp           = rand(level..(level * 2))
end