hch
2019-09-25 6f0ab62aed23e675e999179ce92339428d11fc85
0312 人物扩展16用于记录灵根点最大的系,用于角色界面显示
2个文件已修改
17 ■■■■■ 已修改文件
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/ChPlayer.py 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerControl.py 16 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/ChPlayer.py
@@ -1711,6 +1711,7 @@
    playerControl = PlayerControl.PlayerControl(curPlayer)
    playerControl.RefreshPlayerAttrState()
    EventShell.EventRespons_AddPoint(curPlayer)
    PlayerControl.SetLingGenMaxIndex(curPlayer)
    return
#// B2 07 重置加点 #tagCMResetAttrPoint
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerControl.py
@@ -5902,6 +5902,22 @@
    return [attr15%1000, attr15/1000%1000, attr15/1000000]
def SetFaceEquipIndex(curPlayer, value): return curPlayer.SetExAttr15(value)
# 返回最大的灵根系
def GetLingGenMaxIndex(curPlayer):
    return curPlayer.GetExAttr16()
def SetLingGenMaxIndex(curPlayer):
    indexList = [ChConfig.TYPE_Calc_Metal,                        # 金 1
                ChConfig.TYPE_Calc_Wood,                         # ľ 2
                ChConfig.TYPE_Calc_Water,                        # ˮ 3
                ChConfig.TYPE_Calc_Fire,                         # 火 4
                ChConfig.TYPE_Calc_Earth,                        # 土 11
                ]
    tempList = [GetMetal(curPlayer), GetWood(curPlayer), GetWater(curPlayer),
                GetFire(curPlayer), GetEarth(curPlayer)]
    curPlayer.SetExAttr16(indexList[tempList.index(max(tempList))])
##获得玩家威望值
def GetPrestige(curPlayer): return 0
def SetPrestige(curPlayer, value): return