Merge branch 'master' of http://192.168.0.87:10010/r/snxxz_scripts
| | |
| | | public PlayerRankData rank { get { return m_Rank; } }
|
| | |
|
| | | StoreModel m_StoreModel;
|
| | | StoreModel StoreModel
|
| | | {
|
| | | StoreModel StoreModel {
|
| | | get { return m_StoreModel ?? (m_StoreModel = ModelCenter.Instance.GetModel<StoreModel>()); }
|
| | | }
|
| | |
|
| | |
| | | }
|
| | | break;
|
| | | case PlayerDataRefresh.HP:
|
| | | baseData.HP = value;
|
| | | if (CrossServerUtility.IsCrossServer())
|
| | | {
|
| | | if (!isMainServerData)
|
| | | {
|
| | | baseData.HP = value;
|
| | | }
|
| | | }
|
| | | else
|
| | | {
|
| | | baseData.HP = value;
|
| | | }
|
| | | break;
|
| | | case PlayerDataRefresh.MaxMP:
|
| | | extersion.MaxMP = (int)value;
|
| | |
| | | public static int fairyLandBuffId { get; private set; } |
| | | public static int achievementEarlierStageLevel { get; private set; } |
| | | public static int DemonJarAutoTime { get; private set; } |
| | | public static List<int> CrossUseItemIds { get; private set; } |
| | | public static Dictionary<int, Dictionary<int, GA_NpcFightSgzcZZ.EquipRandomInfo>> SgzzRobotEquipDict { get; private set; } |
| | | public static Dictionary<int, int> SgzcRealm { get; private set; } |
| | | |
| | |
| | | { |
| | | try |
| | | { |
| | | CrossUseItemIds = new List<int>(GetIntArray("CrossUseItem")); |
| | | CompareEquipPlaces = GetIntArray("EquipUpType"); |
| | | greatMasterStartLV = GetInt("GreatMasterStartLV"); |
| | | playerMaxLevel = GetInt("PlayerMaxLV"); |
| | |
| | | return;
|
| | | }
|
| | |
|
| | | bool isCrossServer = CrossServerUtility.IsCrossServerBoss();
|
| | | bool isCrossUseItem = GeneralDefine.CrossUseItemIds.Contains(itemModel.itemId);
|
| | | if(isCrossServer && isCrossUseItem)
|
| | | {
|
| | | SendCrossServerMakeUseItem(index);
|
| | | }
|
| | | else
|
| | | {
|
| | | SendMainServerMakeUseItem(index,useCnt,extra);
|
| | | }
|
| | | SendMainServerMakeUseItem(index, useCnt, extra);
|
| | | }
|
| | |
|
| | | public void SendMainServerMakeUseItem(int index,int useCnt,int extra)
|
| | |
| | | m_RealmPoint.text = StringUtility.Contact(UIHelper.AppendStringColor(realmPoint >= config.NeedPoint ? TextColType.Green : TextColType.Red,
|
| | | realmPoint.ToString()), "/", config.NeedPoint);
|
| | |
|
| | | m_OpenRemind.text = realmPoint < config.NeedPoint ? Language.Get("RealmCollecting", config.NeedPoint - realmPoint) : string.Empty;
|
| | | m_OpenRemind.text = realmPoint < config.NeedPoint ?
|
| | | UIHelper.ReplaceNewLine(Language.Get("RealmCollecting", config.NeedPoint - realmPoint)) : string.Empty;
|
| | | m_OpenRemind.transform.localPosition = m_OpenRemind.transform.localPosition.SetX(m_ContainerPoint.rect.width * (leftRatio + deltaRatio * 0.5f));
|
| | | }
|
| | |
|