hxp
2020-01-13 cb9519432b4e8bee01d2d5f1fc7f82efae3c9210
8369 境界修改(升级境界可学习技能或增加灵根点)
4个文件已修改
55 ■■■■■ 已修改文件
PySysDB/PySysDBPY.h 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/IpyGameDataPY.py 6 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerPrestigeSys.py 9 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/GameSkills/SkillCommon.py 38 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
PySysDB/PySysDBPY.h
@@ -48,6 +48,8 @@
    DWORD        BuffID;    //给全服在线玩家增加buff
    DWORD        ExpRate;    //修为池经验速率
    DWORD        ExpLimit;    //修为池经验上限
    list        LearnSkillIDInfo;    //学习技能ID信息 [职业1技能ID,职业2技能ID, ...]
    BYTE        AddFreePoint;    //增加自由属性点
};
//神兵表 #tagGodWeapon
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/IpyGameDataPY.py
@@ -70,6 +70,8 @@
                        ("DWORD", "BuffID", 0),
                        ("DWORD", "ExpRate", 0),
                        ("DWORD", "ExpLimit", 0),
                        ("list", "LearnSkillIDInfo", 0),
                        ("BYTE", "AddFreePoint", 0),
                        ),
                "GodWeapon":(
@@ -1642,6 +1644,8 @@
        self.BuffID = 0
        self.ExpRate = 0
        self.ExpLimit = 0
        self.LearnSkillIDInfo = []
        self.AddFreePoint = 0
        return
        
    def GetLv(self): return self.Lv # 境界等级
@@ -1655,6 +1659,8 @@
    def GetBuffID(self): return self.BuffID # 给全服在线玩家增加buff
    def GetExpRate(self): return self.ExpRate # 修为池经验速率
    def GetExpLimit(self): return self.ExpLimit # 修为池经验上限
    def GetLearnSkillIDInfo(self): return self.LearnSkillIDInfo # 学习技能ID信息 [职业1技能ID,职业2技能ID, ...]
    def GetAddFreePoint(self): return self.AddFreePoint # 增加自由属性点
# 神兵表
class IPY_GodWeapon():
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerPrestigeSys.py
@@ -30,6 +30,7 @@
import PlayerBillboard
import EventShell
import DataRecordPack
import SkillCommon
import time
#------------------------------------------------------------------------------
@@ -204,6 +205,14 @@
        else:
            PlayerControl.WorldNotify(0, 'RealmUpSuccess', [curPlayer.GetName(), curPlayer.GetID(), nextRealmLv])
            
    SkillCommon.GivePlayerSkillByJobSkillList(curPlayer, nextRealmIpyData.GetLearnSkillIDInfo())
    addFreePoint = nextRealmIpyData.GetAddFreePoint()
    if addFreePoint:
        updFreePoint = curPlayer.GetFreePoint() + addFreePoint
        curPlayer.SetFreePoint(updFreePoint)
        GameWorld.DebugLog("    addFreePoint=%s,updFreePoint=%s" % (addFreePoint, updFreePoint))
    RefreshOfficialAttr(curPlayer)
    GameFuncComm.DoFuncOpenLogic(curPlayer)
    SyncRealmFBState(curPlayer)
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/GameSkills/SkillCommon.py
@@ -188,6 +188,44 @@
    return
def GivePlayerSkillByJobSkillList(curPlayer, jobSkillList):
    ## 根据职业技能ID列表给玩家技能
    if not jobSkillList:
        return
    skillLV = 1
    giveSkill = None
    for skillID in jobSkillList:
        skillData = GameWorld.GetGameData().FindSkillByType(skillID, skillLV)
        if skillData == None:
            continue
        if not CheckSkillJob(curPlayer, skillData):
            continue
        if not SkillShell.CheckLearnSkillCondition(curPlayer, skillData):
            continue
        giveSkill = skillData
        break
    if not giveSkill:
        GameWorld.ErrLog("找不到可以给的技能!jobSkillList=%s" % str(jobSkillList))
        return
    skillTypeID = giveSkill.GetSkillTypeID()
    skillManager = curPlayer.GetSkillManager()
    if skillManager.FindSkillBySkillTypeID(skillTypeID):
        #GameWorld.DebugLog("已经有该技能!")
        return
    skillManager.LVUpSkillBySkillTypeID(skillTypeID)
    GameWorld.DebugLog("    给玩家技能: skillTypeID=%s" % (skillTypeID), curPlayer.GetID())
    if isPassiveSkill(giveSkill):
        PassiveBuffEffMng.GetPassiveEffManager().RegistPassiveEff(curPlayer, skillTypeID)
    DataRecordPack.DR_LearnORUPSkill(curPlayer, skillTypeID, skillLV)
    PlayerControl.PlayerControl(curPlayer).RefreshSkillFightPowerEx(skillTypeID, 0)
    return
## 玩家登录检查学习技能(上线)
#  @param curPlayer 当前玩家
#  @return None