Merge branch 'master' of http://192.168.0.87:10010/r/snxxz_scripts
| | |
| | |
|
| | | owner.needSyncGroundHeight = true;
|
| | |
|
| | | //if (owner.ActorType == GameObjType.gotNPC)
|
| | | //{
|
| | | // GAMgr.Instance.Release(owner);
|
| | | //}
|
| | | if (owner is GA_NpcClientFightNorm)
|
| | | {
|
| | | GAMgr.Instance.Release(owner);
|
| | | }
|
| | |
|
| | | #if UNITY_EDITOR
|
| | | string _content = string.Format("Dead_4 => {0} 退出了Dead状态", owner.ServerInstID);
|
| | |
| | | m_ItemCell.Init(cellModel);
|
| | | if (advancedLv == 0)
|
| | | {
|
| | | m_TextAttributesA.text = "装备强化等级到达" + evolveNext.NeedPlusLV + "级";
|
| | | m_TextAttributesB.text = "消耗" + evolveNext.CostItemCount + "个强化水晶";
|
| | | |
| | | m_TextAttributesA.text = Language.Get("ZBQH_05", evolveNext.NeedPlusLV);
|
| | | m_TextAttributesB.text = Language.Get("ZBQH_06", evolveNext.CostItemCount);
|
| | | }
|
| | | else
|
| | | {
|
| | | m_TextAttributesA.text = "装备强化等级到达" + evolve.NeedPlusLV + "级";
|
| | | m_TextAttributesB.text = "消耗" + evolve.CostItemCount + "个强化水晶";
|
| | | m_TextAttributesA.text = Language.Get("ZBQH_05", evolve.NeedPlusLV);
|
| | | m_TextAttributesB.text = Language.Get("ZBQH_06", evolve.CostItemCount);
|
| | | }
|
| | |
|
| | | } |
| | |
| | | itemCount = playerPack.GetItemCountByID(PackType.Item, equipPlusEvolve.CostItemID);
|
| | | if (equipPlusEvolve.NeedPlusLV > equipLv)
|
| | | {
|
| | | ServerTipDetails.DisplayNormalTip(Language.Get("ZBQH_07"));
|
| | | DebugEx.LogError("所需强化等级不足");
|
| | | return false;
|
| | | }
|
| | |
| | | ulong needMoney = (ulong)itemPlusConfig.costCount;
|
| | | string MoneyStr = ItemLogicUtility.Instance.OnChangeCoinsUnit(UIHelper.GetMoneyCnt(3));
|
| | | string NeedMoneyStr = ItemLogicUtility.Instance.OnChangeCoinsUnit(needMoney);
|
| | | if (money >= needMoney)
|
| | | if (money >= needMoney) |
| | | {
|
| | | strMoneyText = "<color=#fffaf0>" + NeedMoneyStr + "/" + MoneyStr + "</color>";
|
| | | }
|
| | | else
|
| | | {
|
| | | strMoneyText = "<color=#ff0000>" + NeedMoneyStr + "/" + MoneyStr + "</color>";
|
| | | strMoneyText = Language.Get("ZBQH_03", NeedMoneyStr, MoneyStr); |
| | | } |
| | | else |
| | | { |
| | | strMoneyText = Language.Get("ZBQH_04", NeedMoneyStr, MoneyStr); |
| | | }
|
| | | return strMoneyText;
|
| | | } |
| | |
| | | string MoneyStr = ItemLogicUtility.Instance.OnChangeCoinsUnit(UIHelper.GetMoneyCnt(3)); |
| | | string NeedMoneyStr = ItemLogicUtility.Instance.OnChangeCoinsUnit(needMoney); |
| | | if (money >= needMoney) |
| | | { |
| | | strMoneyText = "<color=#fffaf0>" + NeedMoneyStr + "/"+ MoneyStr + "</color>"; |
| | | { |
| | | strMoneyText = Language.Get("ZBQH_03", NeedMoneyStr, MoneyStr); |
| | | } |
| | | else |
| | | { |
| | | strMoneyText = "<color=#ff0000>" + NeedMoneyStr + "/" + MoneyStr + "</color>"; |
| | | strMoneyText = Language.Get("ZBQH_04", NeedMoneyStr, MoneyStr); |
| | | } |
| | | return strMoneyText; |
| | | } |
| | |
| | | ulong needMoney = (ulong)itemPlusConfig.costCount;
|
| | | string MoneyStr = ItemLogicUtility.Instance.OnChangeCoinsUnit(UIHelper.GetMoneyCnt(3));
|
| | | string NeedMoneyStr = ItemLogicUtility.Instance.OnChangeCoinsUnit(needMoney);
|
| | | if (money >= needMoney)
|
| | | if (money >= needMoney) |
| | | {
|
| | | strMoneyText = "<color=#fffaf0>" + NeedMoneyStr + "/" + MoneyStr + "</color>";
|
| | | }
|
| | | else
|
| | | {
|
| | | strMoneyText = "<color=#ff0000>" + NeedMoneyStr + "/" + MoneyStr + "</color>";
|
| | | strMoneyText = Language.Get("ZBQH_03", NeedMoneyStr, MoneyStr); |
| | | } |
| | | else |
| | | { |
| | | strMoneyText = Language.Get("ZBQH_04", NeedMoneyStr, MoneyStr); |
| | | }
|
| | | return strMoneyText;
|
| | | }
|
| | |
| | | |
| | | if (moneyNeed > moneyOwn) |
| | | { |
| | | WindowCenter.Instance.Open<RechargeTipWin>(); |
| | | return; |
| | | } |
| | | } |
| | |
| | | var item = packModel.GetItemByGuid(guid);
|
| | | if (item != null && item.isAuction)
|
| | | {
|
| | | return 99;
|
| | | return 0;
|
| | | }
|
| | |
|
| | | if (item != null && ItemLogicUtility.Instance.IsOverdue(guid, itemId, item.useDataDict))
|