| | |
| | | var diffRate = littleRateValue + (bigRateValue - littleRateValue) / (float)(bigValue - littleValue) * (value - littleValue); |
| | | rateList.Add((int)diffRate); |
| | | } |
| | | |
| | | |
| | | return rateList; |
| | | } |
| | | |
| | |
| | | { |
| | | if (isStart) |
| | | { |
| | | |
| | | |
| | | bool canStart = false; |
| | | for (int i = 0; i < autoSetList.Count; i++) |
| | | { |
| | |
| | | if (!ItemLogicUtility.CheckItemCount(PackType.Item, tyItemID, useAutoCostCnt, 2)) |
| | | { |
| | | isStartAuto = false; |
| | | TimingGiftManager.Instance.TryAddWhenInsufficient(6, PackType.Item, tyItemID, useAutoCostCnt); |
| | | return; |
| | | } |
| | | UIManager.Instance.CloseWindow<MinggeAutoSetWin>(); |
| | | TimingGiftManager.Instance.TryAddWhenExactConsumption(6, PackType.Item, tyItemID, useAutoCostCnt); |
| | | |
| | | } |
| | | |
| | | |
| | | isStartAuto = isStart; |
| | | if (isStartAuto) |
| | | { |
| | |
| | | |
| | | return deFightAttrOK && fightAttrOK; |
| | | } |
| | | |
| | | |
| | | bool IsFightPowerOK(ItemModel mgEquip, MinggeAutoSet autoSet) |
| | | { |
| | | long showFightPower = FightPowerManager.Instance.GetFightPowerMinggeChange(mgEquip, autoSet.presetID); |
| | |
| | | { |
| | | isStartAuto = false; |
| | | SysNotifyMgr.Instance.ShowTip("MinggeAuto1"); |
| | | TimingGiftManager.Instance.TryAddWhenInsufficient(6, PackType.Item, tyItemID, useAutoCostCnt); |
| | | return; |
| | | } |
| | | |
| | | TimingGiftManager.Instance.TryAddWhenExactConsumption(6, PackType.Item, tyItemID, useAutoCostCnt); |
| | | |
| | | autoTYTime = Time.time; |
| | | SendTY(useAutoCostCnt); |
| | | |
| | | |
| | | |
| | | |
| | | } |
| | | |
| | | void OnMSEvent() |
| | |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | } |