Class: Gemwarrior::Goat
- Defined in:
- lib/gemwarrior/entities/creatures/goat.rb
Instance Attribute Summary
Attributes inherited from Creature
#atk_hi, #atk_lo, #defense, #dexterity, #face, #hands, #hp_cur, #hp_max, #inventory, #level, #mood, #rox, #speak, #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
-
#initialize ⇒ Goat
constructor
A new instance of Goat.
- #use(world) ⇒ Object
Methods inherited from Creature
Methods inherited from Entity
Constructor Details
#initialize ⇒ Goat
Returns a new instance of Goat.
8 9 10 11 12 13 14 15 16 17 |
# File 'lib/gemwarrior/entities/creatures/goat.rb', line 8 def initialize super self.name = 'goat' self.name_display = 'Goat' self.description = 'The scruff is strong with this one as it chews through what appears to be a recent mystery novel most likely thrown into the pen by a passerby.' self.face = 'busy' self.hands = 'hoofy' self.mood = 'content' end |
Instance Method Details
#use(world) ⇒ Object
19 20 21 22 |
# File 'lib/gemwarrior/entities/creatures/goat.rb', line 19 def use(world) puts '>> "Baa."' { type: nil, data: nil } end |