Class: Gemwarrior::Throne
- Defined in:
- lib/gemwarrior/entities/items/throne.rb
Instance Attribute Summary
Attributes inherited from Item
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 ⇒ Throne
constructor
A new instance of Throne.
- #use(world) ⇒ Object
Methods inherited from Item
Methods inherited from Entity
Constructor Details
#initialize ⇒ Throne
Returns a new instance of Throne.
8 9 10 11 12 13 14 |
# File 'lib/gemwarrior/entities/items/throne.rb', line 8 def initialize super self.name = 'throne' self.name_display = 'Throne' self.description = 'Made of what appears to be unfulfilled desires and latent, flawed happiness, the well-crafted seat still looks kinda comfy. The wizard Emerald sits in it, glaring at you.' end |
Instance Method Details
#use(world) ⇒ Object
16 17 18 19 |
# File 'lib/gemwarrior/entities/items/throne.rb', line 16 def use(world) puts 'Your words fall on deaf chairs. Emerald continues to stare at you.' { type: nil, data: nil } end |