2996 子 【设计】新增一个可均摊的技能 / 【后端】新增一个伤害均摊的技能, 修复均摊保底数值为1%

fix:当客户端和服务端tick不一致时,立即同步一次
2个文件已修改
4 ■■■ 已修改文件
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Attack/BaseAttack.py 3 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerControl.py 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Attack/BaseAttack.py
@@ -741,13 +741,14 @@
        resultDict[familyID].append(obj)
        
    skillEffect = SkillCommon.GetSkillEffectByEffectID(curSkill, ChConfig.Def_Skill_Effect_AvgHurtFMCnt)
    minSkillPer = 100   # 如果未配置默认最低值
    minSkillPer = 0.01   # 如果未配置默认最低值
    if skillEffect:
        minSkillPer = skillEffect.GetEffectValue(0)
        
    attackList = []
    for familyID in resultDict:
        cnt = len(resultDict[familyID]) if familyID != 0 else 1 # 无仙盟承受100%伤害
        skillPercent = max(skillPercent/cnt, minSkillPer)
        attackList.extend(__DoAreaAttack(attacker, curSkill, skillEnhance/cnt, skillPercent, resultDict[familyID],
                                     [], g_skillHurtList, tick))
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerControl.py
@@ -116,6 +116,7 @@
        #时间相差过大,可能因网络引起,拉回
        GameWorld.DebugLog("PlayerMoveCheckClientWorldTick -- 服务器tick %s-客户端%s时间相差过大,可能因网络引起,拉回" % (
                            gameWorldTick, clientWorldTick), curPlayer.GetID())
        curPlayer.Sync_ClientTick()
        return False
    
    if gameWorldTick - curPlayer.GetDictByKey("CheckTick") > 60000: