Sha256: a6b0fff2b16845d49a971ca6c44d389060421b0b99640bda90c4bcc7d0b59927
Contents?: true
Size: 1.48 KB
Versions: 1
Compression:
Stored size: 1.48 KB
Contents
Gamefic.script do respond :insert, Use.available, Use.available do |actor, thing, target| actor.tell "You can't put #{the thing} inside #{the target}." end respond :insert, Use.available, Use.available(Receptacle) do |actor, thing, receptacle| actor.execute :take, thing unless thing.parent == actor next unless thing.parent == actor thing.parent = receptacle actor.tell "You put #{the thing} in #{the receptacle}." end respond :insert, Use.available, Use.available(Container) do |actor, _thing, container| if container.open? actor.proceed else actor.tell "#{The container} is closed." end end interpret "drop :item in :container", "insert :item :container" interpret "put :item in :container", "insert :item :container" interpret "place :item in :container", "insert :item :container" interpret "insert :item in :container", "insert :item :container" interpret "drop :item inside :container", "insert :item :container" interpret "put :item inside :container", "insert :item :container" interpret "place :item inside :container", "insert :item :container" interpret "insert :item inside :container", "insert :item :container" interpret "drop :item into :container", "insert :item :container" interpret "put :item into :container", "insert :item :container" interpret "place :item into :container", "insert :item :container" interpret "insert :item into :container", "insert :item :container" end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
gamefic-standard-2.4.0 | lib/gamefic-standard/actions/insert.rb |