class Gemwarrior::Bullet

Constants

USE_TEXT

CONSTANTS

Public Class Methods

new() click to toggle source
Calls superclass method Gemwarrior::Item::new
# File lib/gemwarrior/entities/items/bullet.rb, line 11
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

Public Instance Methods

use(world) click to toggle source
# File lib/gemwarrior/entities/items/bullet.rb, line 20
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