generic.yml 703 B

12345678910111213141516171819202122232425
  1. - type: htnCompound
  2. id: ClearActiveHandCompound
  3. branches:
  4. # Do nothing
  5. - preconditions:
  6. - !type:ActiveHandFreePrecondition
  7. tasks:
  8. - !type:HTNPrimitiveTask
  9. operator: !type:NoOperator
  10. # Swap to another free hand
  11. - tasks:
  12. - !type:HTNPrimitiveTask
  13. operator: !type:SwapToFreeHandOperator
  14. # TODO: Need to make sure this works with blackboard and handles storage + pockets + inventory slots
  15. # Put active hand into storage
  16. #- tasks:
  17. # - !type:HTNPrimitiveTask
  18. # operator: !type:StashActiveHandOperator
  19. # Drop active hand
  20. - tasks:
  21. - !type:HTNPrimitiveTask
  22. operator: !type:DropOperator