JavaGOAP icon indicating copy to clipboard operation
JavaGOAP copied to clipboard

Tracking integer values?

Open jjbrunton opened this issue 2 years ago • 0 comments

I am trying to use this library to track the increasing of an inventory count. For example, the user needs to collect wood to build a house:

  • Precondition: hasAxe = true
  • Effect: Wood += 1

And then another action:

  • Precondition: wood >= 10
  • Effect: Planks 2

But it doesn't seem possible to impact the world state from the constructor of an action, am I missing something simple?

jjbrunton avatar Dec 28 '23 16:12 jjbrunton