goliath.yml 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. - type: htnCompound
  2. id: GoliathCompound
  3. branches:
  4. - tasks:
  5. - !type:HTNCompoundTask
  6. task: GoliathMeleeCombatPrecondition
  7. - tasks:
  8. - !type:HTNCompoundTask
  9. task: IdleCompound
  10. - type: htnCompound
  11. id: GoliathMeleeCombatPrecondition
  12. branches:
  13. - preconditions:
  14. - !type:BuckledPrecondition
  15. isBuckled: true
  16. tasks:
  17. - !type:HTNPrimitiveTask
  18. operator: !type:UnbuckleOperator
  19. shutdownState: TaskFinished
  20. - preconditions:
  21. - !type:InContainerPrecondition
  22. isInContainer: true
  23. tasks:
  24. - !type:HTNCompoundTask
  25. task: EscapeCompound
  26. - preconditions:
  27. - !type:PulledPrecondition
  28. isPulled: true
  29. tasks:
  30. - !type:HTNPrimitiveTask
  31. operator: !type:UnPullOperator
  32. shutdownState: TaskFinished
  33. - tasks:
  34. - !type:HTNPrimitiveTask
  35. operator: !type:UtilityOperator
  36. proto: NearbyMeleeTargets
  37. - !type:HTNCompoundTask
  38. task: GoliathAttackTargetCompound
  39. - type: htnCompound
  40. id: GoliathAttackTargetCompound
  41. branches:
  42. - preconditions:
  43. - !type:KeyExistsPrecondition
  44. key: Target
  45. tasks:
  46. - !type:HTNPrimitiveTask
  47. operator: !type:MoveToOperator
  48. shutdownState: PlanFinished
  49. pathfindInPlanning: true
  50. removeKeyOnFinish: false
  51. targetKey: TargetCoordinates
  52. pathfindKey: TargetPathfind
  53. rangeKey: MeleeRange
  54. - !type:HTNPrimitiveTask
  55. operator: !type:JukeOperator
  56. jukeType: AdjacentTile
  57. - !type:HTNPrimitiveTask
  58. operator: !type:MeleeOperator
  59. targetKey: Target
  60. preconditions:
  61. - !type:KeyExistsPrecondition
  62. key: Target
  63. - !type:TargetInRangePrecondition
  64. targetKey: Target
  65. rangeKey: MeleeRange
  66. services:
  67. - !type:UtilityService
  68. id: MeleeService
  69. proto: NearbyMeleeTargets
  70. key: Target