Sha256: 6fedb1a66b2ff51a6e6ab9851348b9214f0f06481ec63349d8c22968a5fc08ef
Contents?: true
Size: 360 Bytes
Versions: 1
Compression:
Stored size: 360 Bytes
Contents
# @gamefic.script standard/edible module Edibility attr_writer :edible def edible? @edible ||= false end end class Thing include Edibility end respond :eat, Use.available do |actor, item| actor.tell "You can't eat #{the item}." end respond :eat, Use.available(:edible?) do |actor, item| actor.tell "You eat #{the item}." destroy item end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
gamefic-sdk-1.7.0 | scripts/standard/edible.plot.rb |