Sha256: 5e66d925c2233590e76a7f85ab5063dea087fb61b90410fb0d7649bcbd7e0009
Contents?: true
Size: 627 Bytes
Versions: 1
Compression:
Stored size: 627 Bytes
Contents
respond :wear, Use.available(Clothing) do |actor, clothing| if clothing.parent != actor actor.tell "You don't have #{the clothing}." end if clothing.attached? actor.tell "You're already wearing #{the clothing}." else already = actor.children.that_are(clothing.class).that_are(:attached?) if already.length == 0 clothing.attached = true actor.tell "You put on #{the clothing}." else actor.tell "You're already wearing #{an already[0]}." end end end xlate "put on :clothing", "wear :clothing" xlate "put :clothing on", "wear :clothing" xlate "don :clothing", "wear :clothing"
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
gamefic-sdk-1.7.0 | scripts/standard/clothing/actions/wear.plot.rb |