Adding an update- I've got the GOAP setup working with single PreConditions now
Here's what the FSM for the planner looks like- the red states are loops
The World states, Actions, PreConditions and Effects are stored in Hash Tables
It will get all possible working plans with this setup then compare their costs and give you the cheapest plan as an array that holds the actions in proper order-
Now I need to figure out how to get it to use multiple PreConditions