| | |
| | | ChConfig.TYPE_Calc_BaseDefAddPer:baseAttrList,
|
| | | ChConfig.TYPE_Calc_BaseHitAddPer:baseAttrList,
|
| | | ChConfig.TYPE_Calc_BaseMissAddPer:baseAttrList,
|
| | | ChConfig.TYPE_Calc_FaQiMaxHPPer:funcAttrInfoList[ChConfig.Def_CalcAttrFunc_FaQi],
|
| | | ChConfig.TYPE_Calc_FaQiAtkPer:funcAttrInfoList[ChConfig.Def_CalcAttrFunc_FaQi],
|
| | | ChConfig.TYPE_Calc_FaQiDefPer:funcAttrInfoList[ChConfig.Def_CalcAttrFunc_FaQi],
|
| | | ChConfig.TYPE_Calc_GodWeaponMaxHPPer:funcAttrInfoList[ChConfig.Def_CalcAttrFunc_GodWeapon],
|
| | | ChConfig.TYPE_Calc_GodWeaponAtkPer:funcAttrInfoList[ChConfig.Def_CalcAttrFunc_GodWeapon],
|
| | | ChConfig.TYPE_Calc_StoneMaxHPPer:funcAttrInfoList[ChConfig.Def_CalcAttrFunc_Stone],
|
| | |
| | | # addAttrList[ChConfig.CalcAttr_BattleNoline] = {}
|
| | | # return addAttrList
|
| | | #===============================================================================
|
| | | ## 培养境界等级
|
| | | def GetTrainRealmLVReal(curPlayer, funcType):
|
| | | trainRealmLV = curPlayer.NomalDictGetProperty(ChConfig.Def_PDict_TrainRealmLV % funcType)
|
| | | return max(trainRealmLV, curPlayer.GetOfficialRank())
|
| | | def SetTrainRealmLV(curPlayer, funcType, trainRealmLV):
|
| | | NomalDictSetProperty(curPlayer, ChConfig.Def_PDict_TrainRealmLV % funcType, trainRealmLV)
|
| | | SyncTrainRealmLV(curPlayer, funcType)
|
| | | return
|
| | | def SyncTrainRealmLV(curPlayer, funcType=None):
|
| | | if funcType == None:
|
| | | syncFuncTypeList = range(1, 1 + 10)
|
| | | else:
|
| | | syncFuncTypeList = [funcType]
|
| | | infoList = []
|
| | | for fType in syncFuncTypeList:
|
| | | trainRealmLV = curPlayer.NomalDictGetProperty(ChConfig.Def_PDict_TrainRealmLV % fType)
|
| | | if not trainRealmLV and funcType == None:
|
| | | continue
|
| | | lvInfo = ChPyNetSendPack.tagMCTrainRealmLV()
|
| | | lvInfo.FuncType = fType
|
| | | lvInfo.TrainRealmLV = trainRealmLV
|
| | | infoList.append(lvInfo)
|
| | | if not infoList:
|
| | | return
|
| | | clientPack = ChPyNetSendPack.tagMCTrainRealmLVInfo()
|
| | | clientPack.InfoList = infoList
|
| | | clientPack.Count = len(clientPack.InfoList)
|
| | | NetPackCommon.SendFakePack(curPlayer, clientPack)
|
| | | return
|
| | |
|
| | | ## 魅力等级
|
| | | def GetCharmLV(curPlayer): return curPlayer.NomalDictGetProperty(ChConfig.Def_PDict_CharmLV)
|
| | | def SetCharmLV(curPlayer, charmLV):
|
| | |
| | | # 基础闪避百分比
|
| | | def GetBaseMissAddPer(curPlayer): return curPlayer.GetDictByKey(ChConfig.Def_PlayerKey_BaseMissAddPer)
|
| | | def SetBaseMissAddPer(curPlayer, value): curPlayer.SetDict(ChConfig.Def_PlayerKey_BaseMissAddPer, value)
|
| | | # 法器生命百分比
|
| | | def GetFaQiMaxHPPer(curPlayer): return curPlayer.GetDictByKey(ChConfig.Def_PlayerKey_FaQiMaxHPPer)
|
| | | def SetFaQiMaxHPPer(curPlayer, value): curPlayer.SetDict(ChConfig.Def_PlayerKey_FaQiMaxHPPer, value)
|
| | | # 法器攻击百分比
|
| | | def GetFaQiAtkPer(curPlayer): return curPlayer.GetDictByKey(ChConfig.Def_PlayerKey_FaQiAtkPer)
|
| | | def SetFaQiAtkPer(curPlayer, value): curPlayer.SetDict(ChConfig.Def_PlayerKey_FaQiAtkPer, value)
|
| | | # 法器防御百分比
|
| | | def GetFaQiDefPer(curPlayer): return curPlayer.GetDictByKey(ChConfig.Def_PlayerKey_FaQiDefPer)
|
| | | def SetFaQiDefPer(curPlayer, value): curPlayer.SetDict(ChConfig.Def_PlayerKey_FaQiDefPer, value)
|
| | | # 神兵生命百分比
|
| | | def GetGodWeaponMaxHPPer(curPlayer): return curPlayer.GetDictByKey(ChConfig.Def_PlayerKey_GodWeaponMaxHPPer)
|
| | | def SetGodWeaponMaxHPPer(curPlayer, value): curPlayer.SetDict(ChConfig.Def_PlayerKey_GodWeaponMaxHPPer, value)
|