public static AiConfigParam.CheckHealthStateParam GetCheckHealthParam(AiConfigParam.ActionContext context) { AiConfigParam.CheckHealthStateParam result = null; switch (context) { case AiConfigParam.ActionContext.At_Home_Add_Hp: result = new AiConfigParam.CheckHealthStateParam(-1f, 0.95f, -1f, -1f); break; case AiConfigParam.ActionContext.Eat_Buff: result = new AiConfigParam.CheckHealthStateParam(-1f, 0.7f, -1f, -1f); break; case AiConfigParam.ActionContext.Near_Enemy_Tower: result = new AiConfigParam.CheckHealthStateParam(-1f, 0.5f, -1f, -1f); break; case AiConfigParam.ActionContext.Back_Home_Use_Skill: result = new AiConfigParam.CheckHealthStateParam(-1f, 0.4f, -1f, -1f); break; case AiConfigParam.ActionContext.Back_Home_On_Foot: result = new AiConfigParam.CheckHealthStateParam(-1f, 0.3f, -1f, -1f); break; } return(result); }
public static AiConfigParam.LeaveTowerParam GetLeaveTowerParam(AiConfigParam.ActionContext context) { return(new AiConfigParam.LeaveTowerParam(0.5f)); }