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

Update to effect variables #156

Merged
merged 1 commit into from
Jan 31, 2022
Merged

Conversation

draconas1
Copy link
Collaborator

@draconas1 draconas1 commented Jan 30, 2022

custom variables and attack/damage effects can now use @variables - the standard set that are used in attacks / damages.

By quirk this also allows for attack/damage effects to use custom variables.

attack/damage effects have to evaluate a non numerical expression to compute if its larger or not, but custom variables can just use the appended string method that @EndlesNights factored in.

Moved the custom variable substitution to last and did a pre check to see if there were any @variables left to improve performance - there is no need to iterate the effects on a character if there are no variables left to substitute.

custom variables and attack/damage effects can now use @variables - the standard set that are used in attacks / damages.

By quirk this also allows for attack/damage effects to use custom variables.

attack/damage effects have to evaluate a non numerical expression to compute if its larger or not, but custom variables can just use the appended string method that @endlessnights factored in.

Moved the custom variable substitution to last and did a pre check to see if there were any @variables left to improve performance - there is no need to iterate the effects on a character if there are no variables left to substitute.
@EndlesNights EndlesNights merged commit 0ce9f3a into EndlesNights:dev Jan 31, 2022
@draconas1 draconas1 deleted the effect-vars branch February 18, 2022 17:49
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