This commit is contained in:
aozhiwei 2023-04-04 13:50:09 +08:00
parent 3c726e6c34
commit 86abb84c23
3 changed files with 59 additions and 1 deletions

View File

@ -0,0 +1,42 @@
<?xml version="1.0" encoding="utf-8"?>
<!--EXPORTED BY TOOL, DON'T MODIFY IT!-->
<!--Source File: hero_9012.xml-->
<behavior name="hero_9012" agenttype="HeroAgent" version="5">
<node class="IfElse" id="0">
<node class="Condition" id="1">
<property Operator="Greater" />
<property Opl="Self.HeroAgent::GetMasterDistance()" />
<property Opr="const float 300" />
</node>
<node class="Action" id="2">
<property Method="Self.HeroAgent::DoFlyToMasterAround()" />
<property ResultOption="BT_INVALID" />
</node>
<node class="IfElse" id="3">
<node class="Condition" id="4">
<property Operator="Greater" />
<property Opl="Self.BaseAgent::HasTarget(300)" />
<property Opr="const bool true" />
</node>
<node class="Action" id="5">
<property Method="Self.HeroAgent::DoPursuit()" />
<property ResultOption="BT_INVALID" />
</node>
<node class="IfElse" id="6">
<node class="Condition" id="7">
<property Operator="Greater" />
<property Opl="Self.HeroAgent::GetMasterDistance()" />
<property Opr="const float 150" />
</node>
<node class="Action" id="8">
<property Method="Self.HeroAgent::DoFollowMaster()" />
<property ResultOption="BT_INVALID" />
</node>
<node class="Action" id="9">
<property Method="Self.HeroAgent::DoIdle(500,1500)" />
<property ResultOption="BT_SUCCESS" />
</node>
</node>
</node>
</node>
</behavior>

View File

@ -0,0 +1,16 @@
<?xml version="1.0" encoding="utf-8"?>
<!--EXPORTED BY TOOL, DON'T MODIFY IT!-->
<!--Source File: hero_help_attack.xml-->
<behavior name="hero_help_attack" agenttype="HeroAgent" version="5">
<pars>
<par name="_$local_task_param_$_0" type="int" value="0" />
</pars>
<node class="Task" id="0">
<property Prototype="Self.HeroAgent::OnMasterAttackTarget(0)" />
<property IsHTN="false" />
<node class="Action" id="1">
<property Method="Self.HeroAgent::DoHelpAttack(int Self.HeroAgent::_$local_task_param_$_0)" />
<property ResultOption="BT_INVALID" />
</node>
</node>
</behavior>

View File

@ -75,7 +75,7 @@ void Android::Update(int delta_time)
}
}
#ifdef DEBUG
{
if (room->BattleStarted()) {
if (!dead &&
App::Instance()->debug_params.find(119) != App::Instance()->debug_params.end()) {
BeKill(VP_Gas,