basicdpstree.py (1250B)
1 #Embedded file name: C:\BuildAgent\work\20d73f1b24eed06e\eve\release\V24.01\packages\behaviors\trees\miners\basicdpstree.py 2 from behaviors.actions import WaitAction 3 from behaviors.behaviortree import BehaviorTree 4 from behaviors.composites import PrioritySelector 5 from behaviors.const.behaviorroles import ROLE_DPS 6 from behaviors.trees.combat import CreateTargetSwitchingBehavior, CreateEntityCombatBehavior 7 from behaviors.trees.regroup import CreateReGroupBehavior 8 from behaviors.trees.reinforcements import CreateReinforceLocationBehavior 9 from behaviors.trees.role import CreateRegisterEntityRole 10 from behaviors.trees.unspawn import CreateUnspawnBehavior 11 from brennivin.itertoolsext import Bundle 12 13 def CreateBasicDpsBehaviorTree(): 14 root = PrioritySelector(Bundle(name='Basic Dps Tree')) 15 root.AddSubTask(CreateRegisterEntityRole(ROLE_DPS)) 16 root.AddSubTask(CreateTargetSwitchingBehavior()) 17 root.AddSubTask(CreateEntityCombatBehavior()) 18 root.AddSubTask(CreateUnspawnBehavior()) 19 root.AddSubTask(CreateReinforceLocationBehavior()) 20 root.AddSubTask(CreateReGroupBehavior()) 21 root.AddSubTask(WaitAction(Bundle(name='Do nothing'))) 22 behaviorTree = BehaviorTree() 23 behaviorTree.StartRootTask(root) 24 return behaviorTree