class Gemwarrior::Flower

Public Class Methods

new() click to toggle source
Calls superclass method Gemwarrior::Item::new
# File lib/gemwarrior/entities/items/flower.rb, line 8
def initialize
  super

  self.name         = 'flower'
  self.name_display = 'Flower'
  self.description  = 'Petals the color of clear sky and a stem of bright white. A most curious plant.'
  self.takeable     = true
end

Public Instance Methods

use(world) click to toggle source
# File lib/gemwarrior/entities/items/flower.rb, line 17
def use(world)
  puts 'You inhale the flower, metaphorically. Smells nice.'
  { type: nil, data: nil }
end