From ccbc8e1929b2e844639c2bb1ac6da369a0875c5c Mon Sep 17 00:00:00 2001 From: hxp <ale99527@vip.qq.com> Date: 星期五, 03 十二月 2021 18:54:54 +0800 Subject: [PATCH] 9341 【BT5】【主干】【后端】情缘系统(增加魅力等级属性;伴侣亲密度等级属性;优化已成亲的伴侣再次提亲时直接成亲 主干冲突) --- ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerControl.py | 9 +++++++++ 1 files changed, 9 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 b25c494..575ba44 100644 --- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerControl.py +++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerControl.py @@ -95,6 +95,7 @@ import QuestCommon import PlayerDogz import PlayerFaQi +import PlayerCharm import PlayerLove import ChPlayer import GMShell @@ -4516,6 +4517,7 @@ PlayerCoat.CalcClothesCoatSkinAttr(curPlayer) PlayerFaQi.CalcFaQiAttr(curPlayer) PlayerLove.CalcLoveAttr(curPlayer) + PlayerCharm.CalcCharmAttr(curPlayer) self.RefreshAllState(isForce=True) GameWorld.DebugLog("End ReCalcAllState!!!") return @@ -6644,6 +6646,13 @@ # addAttrList[ChConfig.CalcAttr_BattleNoline] = {} # return addAttrList #=============================================================================== +## 魅力等级 +def GetCharmLV(curPlayer): return curPlayer.NomalDictGetProperty(ChConfig.Def_PDict_CharmLV) +def SetCharmLV(curPlayer, charmLV): + NomalDictSetProperty(curPlayer, ChConfig.Def_PDict_CharmLV, charmLV) + SendPropertyRefresh(curPlayer, ShareDefine.CDBPlayerRefresh_CharmLV, charmLV) + return + def GetTotalLingGenPoint(curPlayer): # 总灵根点数(金木水火土+自由点数) return GetMetal(curPlayer) + GetWood(curPlayer) + GetWater(curPlayer) + GetFire(curPlayer) + GetEarth(curPlayer) + curPlayer.GetFreePoint() -- Gitblit v1.8.0