8971 【主干】【BT2】仙玉和灵石增加支持负数(上线A709通知货币负值,有值才通知)
1个文件已修改
14 ■■■■■ 已修改文件
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerControl.py 14 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerControl.py
@@ -2939,6 +2939,19 @@
        notifyStruct.Value = value
        notifyList.append(notifyStruct)
        
    # 负值货币
    for moneyType, refreshType in ShareDefine.MoneyMinusRefreshDict.items():
        if refreshType == None:
            # 不需要通知客户端
            continue
        value = curPlayer.NomalDictGetProperty(ChConfig.Def_PDict_MoneyMinus % moneyType)
        if not value:
            continue
        notifyStruct = ChPyNetSendPack.tagRefreshType()
        notifyStruct.RefreshType = refreshType
        notifyStruct.Value = value
        notifyList.append(notifyStruct)
    #属性组合包 通知自己
    sendPack = ChPyNetSendPack.tagObjInfoListRefresh()
    sendPack.Clear()
@@ -2947,6 +2960,7 @@
    sendPack.Count = len(notifyList)
    sendPack.RefreshType = notifyList
    NetPackCommon.SendFakePack(curPlayer, sendPack)
    return
##玩家是否有钱款