From f6e55772b80bf536223e6e949e28fb7b1812a54d Mon Sep 17 00:00:00 2001 From: hxp <ale99527@vip.qq.com> Date: 星期五, 19 九月 2025 12:02:36 +0800 Subject: [PATCH] 129 【战斗】战斗系统-服务端(甘夫人潜能1、3;增加使用技能后触发方式9;层级buff属性支持;) --- ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerOnline.py | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerOnline.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerOnline.py index f639650..2f18462 100644 --- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerOnline.py +++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerOnline.py @@ -717,9 +717,9 @@ } if attrID in ChConfig.BaseAttrIDList: - attrValue = FormulaControl.Eval("baseAttrFormula", baseAttrFormula, attrParamDict) + attrValue = FormulaControl.Eval("baseAttrFormula", baseAttrFormula, attrParamDict, toInt=False, ndigits=3) else: - attrValue = FormulaControl.Eval("otherAttrFormula", otherAttrFormula, attrParamDict) + attrValue = FormulaControl.Eval("otherAttrFormula", otherAttrFormula, attrParamDict, toInt=False, ndigits=3) #GameWorld.DebugLog(" attrID=%s,attrValue=%s,attrParamDict=%s" % (attrID, attrValue, attrParamDict)) attrIpyData = IpyGameDataPY.GetIpyGameData("PlayerAttr", attrID) @@ -735,7 +735,7 @@ logAttrDict["%s-%s" % (attrID, attrName)] = attrValue # 计算战力 - fightPower = FormulaControl.Eval("fightPowerFormula", fightPowerFormula, fightPowerParamDict) + fightPower = FormulaControl.Eval("fightPowerFormula", fightPowerFormula, fightPowerParamDict, toInt=True) GameWorld.DebugLog(" heroID=%s,fightPower=%s,heroSkillIDList=%s" % (heroID, fightPower, lineupHero.heroSkillIDList), playerID) skillTypeIDDict = {} @@ -759,7 +759,7 @@ skillID = skillData.GetSkillID() lineupHero.heroSkillIDList.append(skillID) paramDict = {"SkillPower":skillData.GetFightPower(), "PlayerLV":PlayerLV, "OfficialLV":OfficialLV} - sFightPower = FormulaControl.Eval("skillFPFormula", skillFPFormula, paramDict) + sFightPower = FormulaControl.Eval("skillFPFormula", skillFPFormula, paramDict, toInt=True) skillFightPower += sFightPower GameWorld.DebugLog(" skillFightPower=%s,heroSkillIDList=%s" % (skillFightPower, lineupHero.heroSkillIDList), playerID) -- Gitblit v1.8.0