hxp
2026-01-21 3c9851cf6305114c7107136d2acb09f1a033f49a
438 【方案】方案预设-服务端(增加解锁类型2-命格感悟等级;)
1个文件已修改
9 ■■■■■ 已修改文件
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerPreset.py 9 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerPreset.py
@@ -99,6 +99,15 @@
        infoDict = {"funcPresetType":funcPresetType, "presetID":presetID}
        if not PlayerControl.PayMoney(curPlayer, IPY_GameWorld.TYPE_Price_Gold_Money, needGold, "FuncPresetUnlock", infoDict):
            return
    # 命格感悟等级
    elif unlockType == 2:
        needGWLV = unlockValue
        ganwuLV = curPlayer.NomalDictGetProperty(ChConfig.Def_PDict_MGGanwuLV)
        if ganwuLV < needGWLV:
            GameWorld.DebugLog("命格感悟等级不足无法解锁该预设! funcPresetType=%s,presetID=%s,ganwuLV=%s < %s" % (funcPresetType, presetID, ganwuLV, needGold))
            return
    else:
        return