Class: Gemwarrior::Amethystle

Inherits:
Monster show all
Defined in:
lib/gemwarrior/entities/monsters/amethystle.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

#initializeAmethystle

Returns a new instance of Amethystle.



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

def initialize
  super

  self.name         = 'amethystle'
  self.description  = 'Sober and contemplative, it moves with purplish tentacles swaying in the breeze.'
  self.face         = 'sharp'
  self.hands        = 'loose'
  self.mood         = 'mesmerizing'

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

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

  self.battlecry    = 'You\'ve found yourself in quite the thorny issue!'
end