Skip to content

More flexible condition comparisons #6

@jswigart

Description

@jswigart

There seems to be a predicate in the code that might be intended for something along these lines, but it doesn't seem to be exposed to the actions at all.

Something like
preconditions.Set("hasLog", 10, predicateGreaterOrEqual);

Perhaps that last parameter takes an IComparer or just a Func like you have the current predicate defined as, and if excluded it is treated as a strict equality comparison.

The overall point is to allow more than equality comparison based action conditions, which are essential for gatherer/builder type planning where many types and quantities of resources might be necessary to complete a task.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions