Sha256: 7158b8b5bdef317534c1b156f490a46061331ffe0bc6c4d2a870f48b015d54d9
Contents?: true
Size: 467 Bytes
Versions: 2
Compression:
Stored size: 467 Bytes
Contents
Gamefic.script do respond :inventory do |actor| if actor.children.length > 0 carried = actor.children.that_are_not(:attached?) worn = actor.children.that_are(:attached?) if carried.length > 0 actor.tell "You are carrying #{carried.join_and}." end if worn.length > 0 actor.tell "You are wearing #{worn.join_and}." end else actor.tell "You aren't carrying anything." end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
gamefic-standard-2.2.0 | lib/gamefic-standard/clothing/actions/inventory.rb |
gamefic-standard-2.1.0 | lib/gamefic-standard/clothing/actions/inventory.rb |