Class: Gemwarrior::SparklyThing
- Defined in:
- lib/gemwarrior/entities/items/sparkly_thing.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 ⇒ SparklyThing
constructor
A new instance of SparklyThing.
- #use(world) ⇒ Object
Methods inherited from Item
Methods inherited from Entity
Constructor Details
#initialize ⇒ SparklyThing
Returns a new instance of SparklyThing.
8 9 10 11 12 13 14 15 |
# File 'lib/gemwarrior/entities/items/sparkly_thing.rb', line 8 def initialize super self.name = 'sparkly_thing' self.name_display = 'SparklyThing(tm)' self.description = 'The sparkling that this thing does is unimaginably brilliant.' self.takeable = true end |
Instance Method Details
#use(world) ⇒ Object
17 18 19 20 |
# File 'lib/gemwarrior/entities/items/sparkly_thing.rb', line 17 def use(world) puts 'Everything, and I mean *everything*, begins to sparkle. Huh.' { type: nil, data: nil } end |