9687 【后端】【越南】【主干】【BT7】野外根据境界动态刷怪(境界怪击杀经验计算等级取值修改)
| | |
| | | realmNPCIpyData = IpyGameDataPY.GetIpyGameDataNotLog("NPCRealmStrengthen", npcID, realmLV)
|
| | | if realmNPCIpyData:
|
| | | baseExp = realmNPCIpyData.GetExp()
|
| | | npcLV = realmNPCIpyData.GetLV()
|
| | | else:
|
| | | baseExp = curNPC.GetExp()
|
| | | npcLV = curNPC.GetLV()
|
| | |
|
| | | if baseExp == 0:
|
| | | #GameWorld.Log("杀怪经验异常,该NPC = %s,无经验"%(curNPC.GetID()))
|
| | |
| | | # GameWorld.DebugLog("个人击杀基础经验: npcID=%s,baseExp=%s" % (curNPC.GetNPCID(), baseExp), playerID)
|
| | |
|
| | | #经验衰减公式 = max(杀怪经验 * max(1-max(玩家等级-怪物等级-10,0)*0.02),0),1)
|
| | | npcLV = curNPC.GetLV()
|
| | | exp = eval(FormulaControl.GetCompileFormula("ExpAttenuation", IpyGameDataPY.GetFuncCfg("ExpAttenuation", 1)))
|
| | | #exp = CalcNPCExp(baseExp, playerLV, npcLV)
|
| | | #GameWorld.DebugLog("击杀NPC最终基础经验: npcID=%s,npcLV=%s,playerLV=%s,baseExp=%s,exp=%s"
|