From f2aeecf0a02b97418b762bd6ee518c33d3ae2685 Mon Sep 17 00:00:00 2001 From: hxp <ale99527@vip.qq.com> Date: 星期五, 12 九月 2025 10:22:35 +0800 Subject: [PATCH] 129 【战斗】战斗系统-服务端(新增演武场;支持机器人;支持PVP战斗;每场战斗结束后支持查看战斗回放;榜单优化存储玩家形象Value5;主线关卡榜支持;支持查看玩家;) --- ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/GameBuffs/Buff_502.py | 56 ++++++++++++++++++++++++++++---------------------------- 1 files changed, 28 insertions(+), 28 deletions(-) diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/GameBuffs/Buff_502.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/GameBuffs/Buff_502.py index e948c74..0c4fa48 100644 --- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/GameBuffs/Buff_502.py +++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/GameBuffs/Buff_502.py @@ -25,34 +25,34 @@ # @return None def OnCalcBuffEx(defender, curEffect, calcDict, curBuff): - totalHP = 0 - equipPack = defender.GetItemManager().GetPack(IPY_GameWorld.rptEquip) - for i in xrange(equipPack.GetCount()): - curEquip = equipPack.GetAt(i) - - if curEquip.IsEmpty(): - continue - if i not in ChConfig.EquipPlace_BaseArmor: - continue - if not curEquip.GetItemQuality(): - continue - #基础属性效果 - for i in range(0, curEquip.GetEffectCount()): - equipEffect = curEquip.GetEffectByIndex(i) - if not equipEffect: - break - - effectID = equipEffect.GetEffectID() - if effectID == 0: - #最后一个 - break - if effectID != ShareDefine.Def_Effect_MaxHP: - continue - totalHP += equipEffect.GetEffectValue(0) - - totalHP = int(totalHP*float(curEffect.GetEffectValue(0))/ChConfig.Def_MaxRateValue) - - calcDict[ChConfig.TYPE_Calc_AttrMaxHP] = calcDict.get(ChConfig.TYPE_Calc_AttrMaxHP, 0) + totalHP +# totalHP = 0 +# equipPack = defender.GetItemManager().GetPack(IPY_GameWorld.rptEquip) +# for i in xrange(equipPack.GetCount()): +# curEquip = equipPack.GetAt(i) +# +# if curEquip.IsEmpty(): +# continue +# if i not in ChConfig.EquipPlace_BaseArmor: +# continue +# if not curEquip.GetItemQuality(): +# continue +# #基础属性效果 +# for i in range(0, curEquip.GetEffectCount()): +# equipEffect = curEquip.GetEffectByIndex(i) +# if not equipEffect: +# break +# +# effectID = equipEffect.GetEffectID() +# if effectID == 0: +# #最后一个 +# break +# if effectID != ShareDefine.Def_Effect_MaxHP: +# continue +# totalHP += equipEffect.GetEffectValue(0) +# +# totalHP = int(totalHP*float(curEffect.GetEffectValue(0))/ChConfig.Def_MaxRateValue) +# +# calcDict[ChConfig.TYPE_Calc_AttrMaxHP] = calcDict.get(ChConfig.TYPE_Calc_AttrMaxHP, 0) + totalHP return -- Gitblit v1.8.0