Class: Gemwarrior::Throne

Inherits:
Item show all
Defined in:
lib/gemwarrior/entities/items/throne.rb

Instance Attribute Summary

Attributes inherited from Item

#is_armor, #is_weapon

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 Item

#describe_detailed

Methods inherited from Entity

#puts

Constructor Details

#initializeThrone

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