yyl
2025-08-29 9e91c51e4ece0002b58e22e27ec57fd8d23176a9
Main/System/Battle/BattleField/OperationAgent/HandModeOperationAgent.cs
@@ -19,14 +19,14 @@
   //   通过主界面的按钮推动(调用)DoNext
   public override void DoNext()
   {
      Debug.LogError("HandModeOperationAgent DoNext");
      BattleDebug.LogError("HandModeOperationAgent DoNext");
      base.DoNext();
      //   当前没有在播放战斗录像
      if (!battleField.recordPlayer.IsPlaying())
      {
         Debug.LogError("HandModeOperationAgent DoNext  1");
         BattleDebug.LogError("HandModeOperationAgent DoNext  1");
         // 没有下一个包可以发了
         if (!BattleManager.Instance.DistributeNextPackage())
         {
@@ -38,15 +38,15 @@
            //   检查一下锤子的消耗
            //FightPoint             用于记录消耗战锤倍数,小于等于1时默认1倍,大于1时为对应消耗倍值,0418刷新类型22
            Debug.LogError("HandModeOperationAgent DoNext  2");
            long costRate = PlayerDatas.Instance.GetPlayerDataByType(PlayerDataType.FightPoint);
            //useHarmerCount            用于记录消耗战锤倍数,小于等于1时默认1倍,大于1时为对应消耗倍值,0418刷新类型22
            BattleDebug.LogError("HandModeOperationAgent DoNext  2");
            long costRate = PlayerDatas.Instance.GetPlayerDataByType(PlayerDataType.UseHarmerCount);
            long cost = (costRate > 1 ? costRate : 1) * 1; // 1是默认消耗
            Debug.LogError("HandModeOperationAgent DoNext  3");
            BattleDebug.LogError("HandModeOperationAgent DoNext  3");
            byte reqType;
            if (storyBattleField.battleState == StoryBattleState.Break)
@@ -66,11 +66,11 @@
            }
            else
            {
               Debug.LogError("unknown battle state");
               BattleDebug.LogError("unknown battle state");
               return;
            }
            Debug.LogError("HandModeOperationAgent DoNext  4   reqType is " + reqType);
            BattleDebug.LogError("HandModeOperationAgent DoNext  4   reqType is " + reqType);
            //   检查一下锤子的消耗
            if (!ItemLogicUtility.CheckCurrencyCount(41, cost, true))
@@ -90,7 +90,7 @@
      }
      else
      {
         Debug.LogError("action doesnt finish, wait a moment please");
         BattleDebug.LogError("action doesnt finish, wait a moment please");
      }
   }