From 5a34b3dc5992aa69ed3073b88f0368c9f04c9fbe Mon Sep 17 00:00:00 2001 From: kaetemi Date: Tue, 6 Jul 2021 22:41:44 +0800 Subject: [PATCH] Tweak xp level --- ryzom/tools/extract_r2_required/generate_creature_npc.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ryzom/tools/extract_r2_required/generate_creature_npc.py b/ryzom/tools/extract_r2_required/generate_creature_npc.py index dd58cc5f4..2cdd86fa6 100644 --- a/ryzom/tools/extract_r2_required/generate_creature_npc.py +++ b/ryzom/tools/extract_r2_required/generate_creature_npc.py @@ -102,6 +102,7 @@ def writeNpcCreature(name, type, level, spec, actionlist): attackLevel = varyLevel(baseLevel + types[type]["attackOffset"], "Attack_" + name) defenseLevel = varyLevel(baseLevel + types[type]["defenseOffset"], "Defense_" + name) avgLevel = int(round((attackLevel + defenseLevel) / 2, 0)) + xpLevel = int(round((baseLevel + attackLevel + defenseLevel) / 3, 0)) playerHpLevel = int(getScore(baseLevel) / 100.0) hp = round(varyFloat(getScore(baseLevel), hpVariance, "life" + name) * types[type]["hpFactor"], 0) regen = varyFloat(hp / regenTimeAi, hpVariance, "LifeRegen" + name) @@ -158,7 +159,7 @@ def writeNpcCreature(name, type, level, spec, actionlist): f.write(" \n") f.write(" \n") f.write(" \n") - f.write(" \n") + f.write(" \n") f.write(" \n") f.write(" \n") f.write(" \n") # TODO