Sha256: e32e445667648fc722bdc51a30afbc24151ead7495ef684a971e12a229e8c715
Contents?: true
Size: 745 Bytes
Versions: 2
Compression:
Stored size: 745 Bytes
Contents
# frozen_string_literal: true module Gamefic module Standard module Actions module Move extend Gamefic::Scriptable respond :move, Thing do |actor, thing| if thing.portable? actor.tell 'Maybe you want to <em>take</em> it?' else actor.tell "You can't move #{the thing}." end end respond :move, children(Thing) do |actor, thing| actor.tell "You're already carrying #{the thing}." end interpret 'push :thing', 'move :thing' interpret 'pull :thing', 'move :thing' interpret 'drag :thing', 'move :thing' interpret 'lift :thing', 'move :thing' end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
gamefic-standard-4.0.0 | lib/gamefic/standard/actions/move.rb |
gamefic-standard-3.3.0 | lib/gamefic-standard/actions/move.rb |