Sha256: bab4f5a0f34a33643ac7c3f1c892ab3841370b9ee8e2beb976dae867cc84561e
Contents?: true
Size: 588 Bytes
Versions: 2
Compression:
Stored size: 588 Bytes
Contents
# lib/gemwarrior/entities/items/cow.rb # Item::Cow require_relative '../item' module Gemwarrior class Cow < Item def initialize super self.name = 'cow' self.description = 'Grazing on some fake grass, unperturbed, this black and white herd animal looks bored.' 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 '>> "Moo."' { 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/cow.rb |
gemwarrior-0.10.7 | lib/gemwarrior/entities/items/cow.rb |