From 7730bc2cd0bb4524e59d979eae556df202bd7fd6 Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期二, 08 六月 2021 10:42:56 +0800
Subject: [PATCH] 8971 【主干】【BT2】仙玉和灵石增加支持负数(上线A709通知货币负值,有值才通知)

---
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerControl.py |   14 ++++++++++++++
 1 files changed, 14 insertions(+), 0 deletions(-)

diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerControl.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerControl.py
index a8fe4ce..cfddc4b 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerControl.py
+++ b/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
 
 
 ##玩家是否有钱款

--
Gitblit v1.8.0