少年修仙传客户端代码仓库
client_Wu Xijin
2018-09-18 bbd7bbe9ed3a1eae6cd9ca45ca149cc7f882daa2
System/SystemSetting/SettingEffectMgr.cs
@@ -81,6 +81,11 @@
    float halfSecondTimer = 0;
    private void LateUpdate()
    {
        if (!(StageManager.Instance.CurrentStage is DungeonStage))
        {
            return;
        }
        secondTimer += Time.deltaTime;
        halfSecondTimer += Time.deltaTime;
        if(halfSecondTimer >= 0.5f)
@@ -126,14 +131,14 @@
    private void OnStartHandupAI()
    {
        DesignDebug.Log("OnStartHandupAI");
        DebugEx.Log("OnStartHandupAI");
        _isAutoHangUp = true;
        RefreshBagItem();
    }
    
    private void OnStopHandupAI()
    {
        DesignDebug.Log("OnStopHandupAI");
        DebugEx.Log("OnStopHandupAI");
        _isAutoHangUp = false;
    }
@@ -157,7 +162,7 @@
    {
        if (!_isAutoHangUp)
        {
            DesignDebug.Log("请开启自动挂机,否则无法出售");
            DebugEx.Log("请开启自动挂机,否则无法出售");
            return;
        }
@@ -178,12 +183,14 @@
                if (list !=  null &&  list.Count > 0)
                {
                    playerPack.SendEquipdevourQuest();
                    return;
                }
            }
            if (HangUpSetModel.Instance.GetBool(HangUpAutoBoolType.isAutoSell))
            if (HangUpSetModel.Instance.GetBool(HangUpAutoBoolType.isAutoSell) && modelInterface.GetSellItemList().Count > 0)
            {
                modelInterface.SendOneKeySellQuest(modelInterface.GetSellItemList());
                return;
            }
        }
    }
@@ -201,14 +208,14 @@
            if (singlePack == null)
                return;
            _tagFuncModel = ConfigManager.Instance.GetTemplate<FuncConfigConfig>("AutoBuyDrug");
            _tagFuncModel = Config.Instance.Get<FuncConfigConfig>("AutoBuyDrug");
            shopIdlist = ConfigParse.GetMultipleStr<int>(_tagFuncModel.Numerical1);
            int i = 0;
            int length = shopIdlist.Length;
            for (i = length - 1; i > -1; i--)
            {
                _tagShopModel = ConfigManager.Instance.GetTemplate<StoreConfig>(shopIdlist[i]);
                _tagItemModel = ConfigManager.Instance.GetTemplate<ItemConfig>(_tagShopModel.ItemID);
                _tagShopModel = Config.Instance.Get<StoreConfig>(shopIdlist[i]);
                _tagItemModel = Config.Instance.Get<ItemConfig>(_tagShopModel.ItemID);
                if (PlayerDatas.Instance.baseData.LV >= _tagItemModel.LV)
                {
                    List<ItemModel> list = null;
@@ -248,7 +255,7 @@
            || !DeadModel.IsCanReborn || IsDungeon())
            return;
        _tagFuncModel = ConfigManager.Instance.GetTemplate<FuncConfigConfig>("RebornArguments");
        _tagFuncModel = Config.Instance.Get<FuncConfigConfig>("RebornArguments");
        RebornConditions = ConfigParse.GetMultipleStr<int>(_tagFuncModel.Numerical1);
        rebornPrice = RebornConditions[2];
        StartCoroutine(PlayerReborn(5));
@@ -257,7 +264,7 @@
    private bool IsDungeon()
    {
        var mapId = PlayerDatas.Instance.baseData.MapID;
        var mapConfig = ConfigManager.Instance.GetTemplate<MapConfig>(mapId);
        var mapConfig = Config.Instance.Get<MapConfig>(mapId);
        return mapConfig != null && mapConfig.MapFBType != 0;
    }
@@ -265,7 +272,7 @@
    {
        while(true)
        {
            DesignDebug.Log("PlayerReborn");
            DebugEx.Log("PlayerReborn");
            time -= 1;
            if (time <= 0 && DeadModel.playerIsDie)
            {
@@ -294,9 +301,9 @@
    private int CompareDrugLv(ItemModel start, ItemModel next)
    {
        _tagItemModel = ConfigManager.Instance.GetTemplate<ItemConfig>((int)start.itemInfo.ItemID);
        _tagItemModel = Config.Instance.Get<ItemConfig>((int)start.itemInfo.ItemID);
        int lv1 = _tagItemModel.LV;
        _tagItemModel = ConfigManager.Instance.GetTemplate<ItemConfig>((int)next.itemInfo.ItemID);
        _tagItemModel = Config.Instance.Get<ItemConfig>((int)next.itemInfo.ItemID);
        int lv2 = _tagItemModel.LV;
        return -lv1.CompareTo(lv2);
    }