From fd935e6ddec284ad872fc6a3d16a47c0c4038516 Mon Sep 17 00:00:00 2001 From: hch <305670599@qq.com> Date: 星期一, 17 六月 2019 20:23:46 +0800 Subject: [PATCH] 6603 【后端】【2.0】增加新版的sp和被动技能 - 嗜天风暴重击多触发一次伤害问题,射日魔吸攻速数值不对问题 --- ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Event/EventSrc/Operate_EquipStar.py | 7 ++++--- 1 files changed, 4 insertions(+), 3 deletions(-) diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Event/EventSrc/Operate_EquipStar.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Event/EventSrc/Operate_EquipStar.py index c07efa9..45cb7d5 100644 --- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Event/EventSrc/Operate_EquipStar.py +++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Event/EventSrc/Operate_EquipStar.py @@ -122,9 +122,8 @@ itemPack = curPlayer.GetItemManager().GetPack(IPY_GameWorld.rptItem) delEquipIndexList = [] totalEquipStars = ChEquip.GetTotalEquipStars(curPlayer) - if totalEquipStars < IpyGameDataPY.GetFuncCfg('EquipStarCustomized'): - curRate = 100 - elif not costEquipCnt: + + if not costEquipCnt: curRate = suitTotalRate / 2 else: singleSuitRate = float(suitTotalRate) / costEquipCnt @@ -148,6 +147,8 @@ isSuite = costEquip.GetSuiteID() addRate = singleSuitRate if isSuite else singleSuitRate / 2 curRate += addRate + if totalEquipStars < IpyGameDataPY.GetFuncCfg('EquipStarCustomized'): + curRate = 100 if curRate <= 0: GameWorld.Log('装备升星异常 概率为0!!equipPackIndex=%s'%equipPackIndex) return result -- Gitblit v1.8.0