Sha256: 1c0309645239e996ec59d899844594e635af1d18a88c1e9cdbec0c0091f00c69

Contents?: true

Size: 468 Bytes

Versions: 1

Compression:

Stored size: 468 Bytes

Contents

# frozen_string_literal: true

module Gamefic
  module Standard
    module Actions
      module Inventory
        extend Gamefic::Scriptable

        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
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
gamefic-standard-3.3.0 lib/gamefic-standard/actions/inventory.rb