Sha256: 6a8972a8720e09e4a57c523ccbacc2e1eb621303c16ae2aa4ea6ca956b89c5bc

Contents?: true

Size: 264 Bytes

Versions: 6

Compression:

Stored size: 264 Bytes

Contents

Gamefic.script do
  respond :inventory do |actor|
    if actor.children.length > 0
      actor.tell "You are carrying #{actor.children.join_and}."
    else
      actor.tell "You aren't carrying anything."
    end
  end

  interpret "i", "inventory"
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
gamefic-standard-2.4.0 lib/gamefic-standard/actions/inventory.rb
gamefic-standard-2.3.1 lib/gamefic-standard/actions/inventory.rb
gamefic-standard-2.3.0 lib/gamefic-standard/actions/inventory.rb
gamefic-standard-2.2.0 lib/gamefic-standard/actions/inventory.rb
gamefic-standard-2.1.0 lib/gamefic-standard/actions/inventory.rb
gamefic-standard-2.0.0 lib/gamefic-standard/actions/inventory.rb