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 dry_run parameter to goap::action::apply_effects #3

Merged
merged 1 commit into from
Jan 10, 2024

Conversation

linkdd
Copy link
Owner

@linkdd linkdd commented Jan 10, 2024

Actual behavior

In the apply_effects() method of a GOAP action, there is no way to determine if the method is called during the planning phase, or during the plan execution phase.

Desired behavior

Add a bool dry_run parameter to the method, will be true during the planning phase, will be false during the plan execution phase.

@linkdd linkdd self-assigned this Jan 10, 2024
@linkdd linkdd merged commit d30f78e into main Jan 10, 2024
3 checks passed
@linkdd linkdd deleted the goap-dryrun branch January 10, 2024 12:25
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.

1 participant