| | |
| | |
|
| | | public List<int> equipPlaces { get; private set; }
|
| | |
|
| | | public int redpointLimitLevel { get; private set; }
|
| | | public int redpointLimitMoney { get; private set; }
|
| | |
|
| | | private bool isChangeBool = true;
|
| | | public bool IsChangeBool {
|
| | | get { return isChangeBool; }
|
| | |
| | | GetEquipLevelMax();
|
| | | GetEvolutionTypeMax();
|
| | |
|
| | | var funcConfig = FuncConfigConfig.Get("StrengthenRedPointLevel");
|
| | | redpointLimitLevel = int.Parse(funcConfig.Numerical1);
|
| | | redpointLimitMoney = int.Parse(funcConfig.Numerical2);
|
| | |
|
| | | equipPlaces = new List<int>(12);
|
| | | for (int i = 1; i <= 12; i++)
|
| | | {
|
| | |
| | |
|
| | | private void PlayerDataRefreshEvent(PlayerDataType dataType)
|
| | | {
|
| | | if (dataType == PlayerDataType.Silver)
|
| | | if (dataType == PlayerDataType.Silver
|
| | | || dataType == PlayerDataType.LV)
|
| | | {
|
| | | if (isServerPrepare)
|
| | | {
|
| | |
| | | return m_EquipStrengthRedpoints.TryGetValue(packIndex, out _redpoint);
|
| | | } |
| | | |
| | | public void SetDayRemind()
|
| | | {
|
| | | if (redpoint.state == RedPointState.Simple)
|
| | | {
|
| | | DayRemind.Instance.SetDayRemind(DayRemind.EQUIPSTRENGTH_REDPOINT, true);
|
| | | UpdateRedpoint();
|
| | | }
|
| | | } |
| | | |
| | | void UpdateRedpoint()
|
| | | {
|
| | | if (!FuncOpen.Instance.IsFuncOpen((int)FuncOpenEnum.Strength))
|
| | |
| | | return;
|
| | | }
|
| | |
|
| | | if (PlayerDatas.Instance.baseData.LV >= redpointLimitLevel)
|
| | | {
|
| | | if (DayRemind.Instance.GetDayRemind(DayRemind.EQUIPSTRENGTH_REDPOINT))
|
| | | {
|
| | | RefreshRedpoint(Int2.zero, 0);
|
| | | return;
|
| | | }
|
| | | }
|
| | | else
|
| | | {
|
| | | var money = UIHelper.GetMoneyCnt(3);
|
| | | if (money < (ulong)redpointLimitMoney)
|
| | | {
|
| | | RefreshRedpoint(Int2.zero, 0);
|
| | | return;
|
| | | }
|
| | | }
|
| | |
|
| | | var equipSets = equipModel.GetAllEquipSets();
|
| | | foreach (var level in equipSets)
|
| | | {
|