Sha256: df1f26b66664cfdd505685c0032c76e0ac1b7088a873e7dec64f051bacf0526d

Contents?: true

Size: 401 Bytes

Versions: 1

Compression:

Stored size: 401 Bytes

Contents

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
gamefic-sdk-1.7.0 scripts/standard/clothing/actions/inventory.plot.rb