Skip to content
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

Add support for objects (dot notation) in card requirements #8

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mjhawkins
Copy link
Contributor

The changes in this branch add support for objects (using dot notation) within card requirements. The changes work in both tag and comment style requirement syntax. I added minimal examples of both approaches. The comment style example is a copy of your card with covers example. The only change is that it uses of $pc.strength rather than $strength. The simple dot notation example using the text and most of logic behind that same example. However, I did not include any of the code for the covers in order to keep things as simple as possible. I added one extra option (sneak past the beast) so that the player character could have more than one property. All javascript and examples have been rebuilt, unlike my last commit.

I was unable to figure out how/where to put the object/dot notation change within the brief docs summary.

@matthew30903
Copy link

I was looking for something like this. Your changes have worked well so far for one of my projects I've started working on. Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants