From efd2dea7e421d0d62270029ed45a60b6931f618a Mon Sep 17 00:00:00 2001 From: kaetemi Date: Mon, 5 Jul 2021 20:40:07 +0800 Subject: [PATCH] No need to specify melee type, since it's inherited from the equipped weapon --- ryzom/tools/extract_r2_required/generate_aiaction.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/ryzom/tools/extract_r2_required/generate_aiaction.py b/ryzom/tools/extract_r2_required/generate_aiaction.py index 79d667648..788dfdeaa 100644 --- a/ryzom/tools/extract_r2_required/generate_aiaction.py +++ b/ryzom/tools/extract_r2_required/generate_aiaction.py @@ -12,7 +12,7 @@ if not os.path.isdir(aiActionFolder): base = { "combat": { "fauna": meleeSpec, - "melee": meleeSpec, + "melee": [ "" ], "range": meleeSpec, }, # "enchanted": { # These 1.5x the damage (regular melee plus 0.5x magic damage) @@ -187,6 +187,8 @@ printEgsConfiguration() for skill in base["combat"]: for spec in base["combat"][skill]: name = "combat_" + skill + "_" + spec + if spec == "": + name = "combat_" + skill type = "Melee" if skill == "range": type = "Range" @@ -206,7 +208,8 @@ for skill in base["combat"]: f.write(" \n") f.write(" \n") f.write(" \n") - f.write(" \n") + if behaviour != "UNKNOWN_BEHAVIOUR": + f.write(" \n") f.write(" \n") f.write("\n")