Sha256: bb6eee950681445fb6152294f2f30208d66c139f9a95d8a9172cc46cd9b5e44f

Contents?: true

Size: 553 Bytes

Versions: 12

Compression:

Stored size: 553 Bytes

Contents

# lib/gemwarrior/entities/items/cup.rb
# Entity::Item::Cup

require_relative '../item'

module Gemwarrior
  class Cup < Item
    def initialize
      super

      self.name         = 'cup'
      self.name_display = 'Cup'
      self.description  = 'A nice stone mug, perfect for putting things into and then using to carry such things from place to place.'
      self.takeable     = true
    end

    def use(world)
      puts 'Nothing in the cup at the moment, so not very usable.'
      { type: nil, data: nil }
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
gemwarrior-0.15.20 lib/gemwarrior/entities/items/cup.rb
gemwarrior-0.15.19 lib/gemwarrior/entities/items/cup.rb
gemwarrior-0.15.18 lib/gemwarrior/entities/items/cup.rb
gemwarrior-0.15.17 lib/gemwarrior/entities/items/cup.rb
gemwarrior-0.15.16 lib/gemwarrior/entities/items/cup.rb
gemwarrior-0.15.15 lib/gemwarrior/entities/items/cup.rb
gemwarrior-0.15.14 lib/gemwarrior/entities/items/cup.rb
gemwarrior-0.15.13 lib/gemwarrior/entities/items/cup.rb
gemwarrior-0.15.12 lib/gemwarrior/entities/items/cup.rb
gemwarrior-0.15.11 lib/gemwarrior/entities/items/cup.rb
gemwarrior-0.15.10 lib/gemwarrior/entities/items/cup.rb
gemwarrior-0.15.9 lib/gemwarrior/entities/items/cup.rb