From 625796be89e0114d5a617c7d7b10d25aa075b878 Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期日, 09 十月 2022 16:26:59 +0800
Subject: [PATCH] 9687 【后端】【越南】【主干】【BT7】野外根据境界动态刷怪(境界怪击杀经验计算等级取值修改)
---
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/NPC/NPCCommon.py | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/NPC/NPCCommon.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/NPC/NPCCommon.py
index f2320ef..988e9cf 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/NPC/NPCCommon.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/NPC/NPCCommon.py
@@ -5177,8 +5177,10 @@
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()))
@@ -5198,7 +5200,6 @@
# 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"
--
Gitblit v1.8.0