yyl
2 天以前 a010f1fb633c4a9eebb496e3bab19cac5fa963d3
Main/System/Main/AutoFightModel.cs
@@ -7,7 +7,7 @@
using UnityEngine;
public class AutoFightModel : GameSystemManager<AutoFightModel>
{
    //战斗倍数:值越大越快,影响战斗表现,掉落速度等
    //战斗倍数:值越大越快,影响战斗表现,掉落速度等,这里的倍数是索引,对应配置里的实际速率
    public int fightSpeed
    {
        get
@@ -17,7 +17,9 @@
        }
        set
        {
            QuickSetting.Instance.SetQuickSetting(QuickSettingType.AutoFight_Speed, value);
            var num = Math.Max(1, value);
            BattleManager.Instance.storyBattleField.SetSpeedRatio(BattleManager.Instance.speedGear[num - 1]);
            QuickSetting.Instance.SetQuickSetting(QuickSettingType.AutoFight_Speed, num);
        }
    }
@@ -82,11 +84,12 @@
    public event Action ChangeAutoEvent;
    public int maxSpeed = 3; //最高速度
    public int maxSpeed = 3; //最高速度 索引
    public int maxCost; //最高消耗
    public int[] autoCostWithBlessLV; //自动战斗消耗倍数关联祝福等级
    public int speed2UnlockMissionID;
    public int speed3UnlockCTGID;
    public override void Init()
    {
        ParseConfig();
@@ -191,7 +194,7 @@
            return;
        }
        BattleManager.Instance.storyBattleField.SetSpeedRatio(BattleManager.Instance.speedGear[fightSpeed - 1]);
        isAutoAttack = isAutoAttackSet;
        //手动会一直进入这个逻辑, 自动触发一次