10084 【主干】【港台】【越南】【BT0.1】【BT0.1-1元】100%聚灵丹(仙界秘境)与50%聚灵丹(仙界秘境)效果修改(支持共存)
2个文件已修改
25 ■■■■ 已修改文件
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChConfig.py 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/FBProcess/GameLogic_BZZD.py 24 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChConfig.py
@@ -775,7 +775,6 @@
Def_SkillID_LFZ = 47100   # 龙凤镯技能(打怪概率经验加成)
Def_SkillID_HorsePetRobBossKillCntBuff = 21020   # 骑宠的怨念buff
Def_SkillID_RealmBuff = 6100   # 境界经验buff
Def_SkillID_BZZDBuff = 21220   # 百战之地经验buff
Def_SkillID_FamilyWar_CWinBuff = 22101 # 仙盟联赛 - 连胜buff, 由连胜次数决定等级
Def_SkillID_FamilyWar_JoinBuff = 22131 # 仙盟联赛 - 参与buff, 由人数决定等级
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/FBProcess/GameLogic_BZZD.py
@@ -524,14 +524,7 @@
    playerID = curPlayer.GetPlayerID()
    
    enterLV = curPlayer.GetLV()
    expRateEx = 0
    expRateLayerBuff = SkillCommon.FindBuffByID(curPlayer, ChConfig.Def_SkillID_BZZDBuff)[0]
    if expRateLayerBuff:
        hasEffect = SkillCommon.GetSkillEffectByEffectID(expRateLayerBuff.GetSkill(), ChConfig.TYPE_Calc_AttrFightExpRate)
        if hasEffect:
            expRateEx = hasEffect.GetEffectValue(0)   # 能叠加的最大上限
        DoReduceExpBuff(curPlayer, expRateLayerBuff)
    expRateEx = DoReduceExpBuff(curPlayer)
    GameWorld.DebugLog("仙界秘境扫荡: mapID=%s,lineID=%s,sweepCnt=%s,expRateEx=%s" % (mapID, lineID, sweepCnt, expRateEx), playerID)
    
    totalExp = 0
@@ -588,10 +581,19 @@
    __SendBZZDOverInfo(curPlayer, overDict)
    return
def DoReduceExpBuff(curPlayer, buff=None):
    BuffSkill.ReduceBuffLayer(curPlayer, buff, ChConfig.Def_SkillID_BZZDBuff, 1)
def DoReduceExpBuff(curPlayer):
    buffExpRate = 0
    buffSkillTypeIDList = IpyGameDataPY.GetFuncEvalCfg("XjmjMonsterExp", 3)
    for skillTypeID in buffSkillTypeIDList:
        buff = SkillCommon.FindBuffByID(curPlayer, skillTypeID)[0]
        if not buff:
            continue
        hasEffect = SkillCommon.GetSkillEffectByEffectID(buff.GetSkill(), ChConfig.TYPE_Calc_AttrFightExpRate)
        if hasEffect:
            buffExpRate += hasEffect.GetEffectValue(0)
        BuffSkill.ReduceBuffLayer(curPlayer, buff, skillTypeID, 1)
    PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_PDict_BZZD_NeedReduceExpBuff, 0)
    return
    return buffExpRate
def ReduceExpBuffOnLogin(curPlayer):
    if not curPlayer.NomalDictGetProperty(ChConfig.Def_PDict_BZZD_NeedReduceExpBuff):