Sha256: cdeb59b29356eb035100fe179f40f68d6850f9bd843df555d955261b676ce3f0

Contents?: true

Size: 694 Bytes

Versions: 9

Compression:

Stored size: 694 Bytes

Contents

# lib/gemwarrior/entities/items/stone.rb
# Item::Stone

require_relative '../item'

module Gemwarrior
  class Stone < Item
    def initialize
      super

      self.name         = 'stone'
      self.description  = 'A small, sharp mega pebble, suitable for tossing in amusement, and perhaps combat.'
      self.atk_lo       = 1
      self.atk_hi       = 2
      self.takeable     = true
      self.useable      = true
      self.equippable   = true
    end
    
    def use(player = nil)
      puts 'You toss the stone a few feet into the air, and then it falls back into your palm. The experience was truly thrilling.'
      { type: nil, data: nil }
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
gemwarrior-0.10.8 lib/gemwarrior/entities/items/stone.rb
gemwarrior-0.10.7 lib/gemwarrior/entities/items/stone.rb
gemwarrior-0.10.6 lib/gemwarrior/entities/items/stone.rb
gemwarrior-0.10.5 lib/gemwarrior/entities/items/stone.rb
gemwarrior-0.10.4 lib/gemwarrior/entities/items/stone.rb
gemwarrior-0.10.2 lib/gemwarrior/entities/items/stone.rb
gemwarrior-0.10.1 lib/gemwarrior/entities/items/stone.rb
gemwarrior-0.10.0 lib/gemwarrior/entities/items/stone.rb
gemwarrior-0.9.39 lib/gemwarrior/entities/items/stone.rb