Sha256: 2d03946e12a0fc9abfa44a560ac6b8e20a2e9d9da452c4ae7a46e96499bf804c

Contents?: true

Size: 566 Bytes

Versions: 2

Compression:

Stored size: 566 Bytes

Contents

# lib/gemwarrior/entities/items/pig.rb
# Item::Pig

require_relative '../item'

module Gemwarrior
  class Pig < Item
    def initialize
      super

      self.name         = 'pig'
      self.description  = 'Dirty, eating slop, but still kind of cute. Yep, this is a pig.'
      self.atk_lo       = nil
      self.atk_hi       = nil
      self.takeable     = true
      self.useable      = true
      self.equippable   = false
      self.talkable     = true
    end

    def use(player = nil)
      puts '>> "Oink."'
      { type: nil, data: nil }
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
gemwarrior-0.10.8 lib/gemwarrior/entities/items/pig.rb
gemwarrior-0.10.7 lib/gemwarrior/entities/items/pig.rb