Class: Gemwarrior::Coraliz
- Defined in:
- lib/gemwarrior/entities/monsters/coraliz.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
Instance Method Summary collapse
-
#initialize ⇒ Coraliz
constructor
A new instance of Coraliz.
Methods inherited from Monster
Methods inherited from Entity
Constructor Details
#initialize ⇒ Coraliz
Returns a new instance of Coraliz.
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/coraliz.rb', line 8 def initialize super self.name = 'coraliz' self.description = 'Small blue lizard that slithers around, nipping at your ankles.' self.face = 'spotted' self.hands = 'slippery' self.mood = 'emotionless' self.level = rand(5..8) self.hp_cur = rand((level * 2)..(level*3)) self.hp_max = hp_cur self.atk_lo = rand(level..(level * 3).floor) self.atk_hi = rand((level * 3).floor..(level * 3).floor) self.defense = rand(4..6) self.dexterity = rand(7..9) self.rox = rand((level * 2)..(level * 3)) self.xp = rand(level..(level * 3)) self.battlecry = 'Where am I? You\'ll never guess!' end |