-
Notifications
You must be signed in to change notification settings - Fork 249
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Multi resource costs #218
Multi resource costs #218
Conversation
const toContainer = Parser.parseDot(toArg, player.room.items); | ||
const toContainer = Parser.parseDot(toArg, player.room.items) || | ||
Parser.parseDot(toArg, player.inventory) || | ||
Parser.parseDot(toArg, player.equipment); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Woops, this commit snuck in. I'll chop it out.
Should also probably update the docs.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Alright, removed the irrelevant commit and added some documentation.
da134cc
to
a30c937
Compare
LGTM |
Now the resource costs can be an array or a single object, as long as each object has an attribute and a cost property.