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.20 lib/gemwarrior/entities/items/bullet.rb
gemwarrior-0.15.19 lib/gemwarrior/entities/items/bullet.rb
gemwarrior-0.15.18 lib/gemwarrior/entities/items/bullet.rb
gemwarrior-0.15.17 lib/gemwarrior/entities/items/bullet.rb
gemwarrior-0.15.16 lib/gemwarrior/entities/items/bullet.rb
gemwarrior-0.15.15 lib/gemwarrior/entities/items/bullet.rb
gemwarrior-0.15.14 lib/gemwarrior/entities/items/bullet.rb
gemwarrior-0.15.13 lib/gemwarrior/entities/items/bullet.rb
gemwarrior-0.15.12 lib/gemwarrior/entities/items/bullet.rb
gemwarrior-0.15.11 lib/gemwarrior/entities/items/bullet.rb
gemwarrior-0.15.10 lib/gemwarrior/entities/items/bullet.rb
gemwarrior-0.15.9 lib/gemwarrior/entities/items/bullet.rb
gemwarrior-0.15.8 lib/gemwarrior/entities/items/bullet.rb
gemwarrior-0.15.7 lib/gemwarrior/entities/items/bullet.rb
gemwarrior-0.15.6 lib/gemwarrior/entities/items/bullet.rb
gemwarrior-0.15.5 lib/gemwarrior/entities/items/bullet.rb
gemwarrior-0.15.4 lib/gemwarrior/entities/items/bullet.rb
gemwarrior-0.15.3 lib/gemwarrior/entities/items/bullet.rb
gemwarrior-0.15.2 lib/gemwarrior/entities/items/bullet.rb
gemwarrior-0.15.1 lib/gemwarrior/entities/items/bullet.rb