Ejemplo n.º 1
0
        private bool IsInImportantCombatAction()
        {
            Agent.ActionCodeType currentActionType = this.Agent.GetCurrentActionType(1);
            switch (currentActionType)
            {
            case Agent.ActionCodeType.ReadyRanged:
            case Agent.ActionCodeType.ReleaseRanged:
            case Agent.ActionCodeType.ReleaseThrowing:
            case Agent.ActionCodeType.ReadyMelee:
            case Agent.ActionCodeType.ReleaseMelee:
                return(true);

            default:
                return(currentActionType == Agent.ActionCodeType.DefendShield);
            }
        }
Ejemplo n.º 2
0
 protected virtual bool DoesActionTypeStopUsingGameObject(Agent.ActionCodeType actionType) => actionType == Agent.ActionCodeType.Jump || actionType == Agent.ActionCodeType.Kick || actionType == Agent.ActionCodeType.WeaponBash;