8375 【主干】【后端】秘境探索修改(经验格式修改)
| | |
| | | import PlayerVip
|
| | | import datetime
|
| | | import time
|
| | | import FormulaControl
|
| | |
|
| | | #关联类型
|
| | | (
|
| | |
| | | PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_PDict_ActivityPlaceExpCount, expCount + addExpCount)
|
| | | lv = curPlayer.GetLV()
|
| | | reExp = PlayerControl.GetPlayerReExp(curPlayer)
|
| | | addExp = eval(IpyGameDataPY.GetFuncCompileCfg("ActivityPlaceExp", 2)) * addExpCount # 获得经验公式,参数 lv, reExp
|
| | | expLV, expFormat = 0, ""
|
| | | lvFormatList = IpyGameDataPY.GetFuncEvalCfg("ActivityPlaceExp", 2) # [[小于等于等级, "公式"],...]
|
| | | for eLV, eFormat in lvFormatList:
|
| | | if lv <= eLV:
|
| | | expLV, expFormat = eLV, eFormat
|
| | | break
|
| | | if not expLV:
|
| | | expLV, expFormat = lvFormatList[-1]
|
| | | addExp = eval(FormulaControl.GetCompileFormula("ActivityPlaceExp_%s" % expLV, expFormat))
|
| | | playerControl = PlayerControl.PlayerControl(curPlayer)
|
| | | addExp = playerControl.AddExp(addExp, ShareDefine.Def_ViewExpType_Activity)
|
| | |
|