dungeonseekertree.py (1123B)
1 #Embedded file name: C:\BuildAgent\work\20d73f1b24eed06e\eve\release\V24.01\packages\behaviors\trees\incursions\dungeonseekertree.py 2 from behaviors import composites 3 from behaviors.actions import WaitAction 4 from behaviors.actions.combatnavigation import DEFAULT_COMBAT_ORBIT_RANGE, DEFAULT_COMBAT_ATTACK_RANGE 5 from behaviors.behaviortree import BehaviorTree 6 from behaviors.trees.combat import CreateTargetSwitchingBehavior, CreateEntityCombatBehavior 7 from behaviors.trees.guardobject import CreateGuardObjectBehavior 8 from brennivin.itertoolsext import Bundle 9 COMBAT_ORBIT_VELOCITY = 600 10 11 def CreateDungeonSeekerBehaviorTree(): 12 root = composites.PrioritySelector(Bundle(name='Dungeon Seeker Root')) 13 root.AddSubTask(CreateTargetSwitchingBehavior()) 14 root.AddSubTask(CreateEntityCombatBehavior(orbitVelocity=COMBAT_ORBIT_VELOCITY, orbitRange=DEFAULT_COMBAT_ORBIT_RANGE, attackRange=DEFAULT_COMBAT_ATTACK_RANGE)) 15 root.AddSubTask(CreateGuardObjectBehavior()) 16 root.AddSubTask(WaitAction(Bundle(name='Do nothing'))) 17 behaviorTree = BehaviorTree() 18 behaviorTree.StartRootTask(root) 19 return behaviorTree