Find file
Fetching contributors…
Cannot retrieve contributors at this time
21 lines (17 sloc) 491 Bytes
---
syntax:
- "unlock <prop:item>"
- "unlock <prop:item> with <prop:with_prop>"
- "use <prop:with_prop> to unlock <prop:item>"
- "unlock <door:item>"
- "unlock <door:item> with <prop:with_prop>"
- "use <prop:with_prop> to unlock <door:item>"
logic: |
prop = arg['item']
with_prop = arg['with_prop']
# we should prolly change so just send the object, not id
if (with_prop)
@game.attempt_open_item(prop.id, with_prop.id)
else
"Unlock #{prop.noun} with what?\n"
end