Sha256: fcb78dc40248c2379b847ead0c49387c1180bc53c45e6d3473097c5abf3e6672
Contents?: true
Size: 451 Bytes
Versions: 1
Compression:
Stored size: 451 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
gamefic-standard-2.0.0 | lib/gamefic-standard/clothing/actions/inventory.rb |