From 74eaf157601e3ed4f90493abcbe99435f7d1172e Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期五, 09 一月 2026 20:40:02 +0800
Subject: [PATCH] 358 【内政】红颜系统-服务端(红颜消耗物品激活改为消耗背包中的物品;)

---
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerControl.py |   45 +++------------------------------------------
 1 files changed, 3 insertions(+), 42 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 61490aa..7e95c2f 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerControl.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerControl.py
@@ -2803,6 +2803,9 @@
         # 累加未结算战锤 - 经验
         unXiantaoCntExp = curPlayer.NomalDictGetProperty(ChConfig.Def_PDict_UnXiantaoCntExp)
         NomalDictSetProperty(curPlayer, ChConfig.Def_PDict_UnXiantaoCntExp, unXiantaoCntExp + price)
+        # 累加最后一档品质装备保底
+        lastColorEquipLucky = curPlayer.NomalDictGetProperty(ChConfig.Def_PDict_LastColorEquipLucky)
+        NomalDictSetProperty(curPlayer, ChConfig.Def_PDict_LastColorEquipLucky, lastColorEquipLucky + price)
         # 累加未结算战锤 - 装备
         AddUnXiantaoCntEquip(curPlayer, price)
         # 累加未结算战锤 - 战利品
@@ -4528,48 +4531,6 @@
     #    atkInterval *= 100
     
     return atkInterval
-
-##玩家增加真气
-# @param curPlayer 玩家
-# @param value 增加数值
-# @param canOverbrim 可否溢出(默认不行) 
-# @param isSysMsg 是否系统提示(默认需要) 
-# @return None
-def PlayerAddZhenQi(curPlayer, addValue, canOverbrim=False, isSysMsg=True, eventName="unknown", eventData=""):
-    if addValue <= 0:
-        return True
-    
-    curZhenQi = GetZhenQi(curPlayer)  # 当前真气
-    
-    value = curZhenQi + addValue
-    
-    if value == curZhenQi:
-        #真气值没有改变
-        return False
-    SetZhenQi(curPlayer, value)
-    return True
-
-
-##玩家减少真气
-# @param curPlayer 玩家
-# @param lostValue 减少数值
-# @return None
-def PlayerLostZhenQi(curPlayer, lostValue, eventName="unknown", eventData=""):
-    if lostValue <= 0:
-        return True
-    
-    curZhenQi = GetZhenQi(curPlayer)  # 当前真气
-    
-    value = max(0, curZhenQi - lostValue)
-    if value < 0:
-        GameWorld.ErrLog("curZhenQi = %s, lostValue = %s" % (curZhenQi, lostValue))
-        return False
-    SetZhenQi(curPlayer, value)
-    return True
-
-## SP真气值 - 暂废弃 ExAttr7、ExAttr8 改为专精选择通知,用于前端表现其他玩家的不同专精特效
-def GetZhenQi(curPlayer): return 0
-def SetZhenQi(curPlayer, totalZhenQi): return
 
 #===============================================================================
 # #@warning: ExAttr6~ExAttr10, 新增2个布尔默认参数, 是否通知客户端, 是否通知GameServer, 默认值为False

--
Gitblit v1.8.0