Sha256: 7f5330f73a1ff0bf70edf7a771a376169a56e9c9a3d668e507a343715fc67d95

Contents?: true

Size: 628 Bytes

Versions: 48

Compression:

Stored size: 628 Bytes

Contents

# lib/gemwarrior/entities/items/bullet.rb
# Entity::Item::Bullet

require_relative '../item'

module Gemwarrior
  class Bullet < Item
    # CONSTANTS
    USE_TEXT = '** ZZZZZ **'

    def initialize
      super

      self.name         = 'bullet'
      self.name_display = 'Bullet'
      self.description  = 'Gunpowder packed into a small metallic tube, ready to be fired from...something.'
      self.takeable     = true
    end

    def use(world)
      puts 'You could throw this at a monster, but somehow the force of it would be less than desired.'
      { type: nil, data: nil }
    end
  end
end

Version data entries

48 entries across 48 versions & 1 rubygems

Version Path
gemwarrior-0.15.0 lib/gemwarrior/entities/items/bullet.rb
gemwarrior-0.14.8 lib/gemwarrior/entities/items/bullet.rb
gemwarrior-0.14.7 lib/gemwarrior/entities/items/bullet.rb
gemwarrior-0.14.6 lib/gemwarrior/entities/items/bullet.rb
gemwarrior-0.14.5 lib/gemwarrior/entities/items/bullet.rb
gemwarrior-0.14.4 lib/gemwarrior/entities/items/bullet.rb
gemwarrior-0.14.3 lib/gemwarrior/entities/items/bullet.rb
gemwarrior-0.14.2 lib/gemwarrior/entities/items/bullet.rb
gemwarrior-0.14.1 lib/gemwarrior/entities/items/bullet.rb
gemwarrior-0.14.0 lib/gemwarrior/entities/items/bullet.rb
gemwarrior-0.13.2 lib/gemwarrior/entities/items/bullet.rb
gemwarrior-0.13.1 lib/gemwarrior/entities/items/bullet.rb
gemwarrior-0.13.0 lib/gemwarrior/entities/items/bullet.rb
gemwarrior-0.12.8 lib/gemwarrior/entities/items/bullet.rb
gemwarrior-0.12.7 lib/gemwarrior/entities/items/bullet.rb
gemwarrior-0.12.6 lib/gemwarrior/entities/items/bullet.rb
gemwarrior-0.12.5 lib/gemwarrior/entities/items/bullet.rb
gemwarrior-0.12.4 lib/gemwarrior/entities/items/bullet.rb
gemwarrior-0.12.3 lib/gemwarrior/entities/items/bullet.rb
gemwarrior-0.12.2 lib/gemwarrior/entities/items/bullet.rb