diff --git a/ryzom/tools/extract_r2_required/generate_aiaction.py b/ryzom/tools/extract_r2_required/generate_aiaction.py index dacfd088a..2361c2e88 100644 --- a/ryzom/tools/extract_r2_required/generate_aiaction.py +++ b/ryzom/tools/extract_r2_required/generate_aiaction.py @@ -7,9 +7,12 @@ meleeSpec = specialization["melee"] curseSpec = specialization["curse"] magicSpec = specialization["magic"] -aiActionFolder = "R:\\leveldesign\\game_elem\\creature\\npc\\bestiary\\aiaction\\generic" -if not os.path.isdir(aiActionFolder): - os.makedirs(aiActionFolder) +npcActionFolder = "R:\\leveldesign\\game_elem\\creature\\npc\\aiaction\\generic" +if not os.path.isdir(npcActionFolder): + os.makedirs(npcActionFolder) +faunaActionFolder = "R:\\leveldesign\\game_elem\\creature\\fauna\\aiaction\\generic" +if not os.path.isdir(faunaActionFolder): + os.makedirs(faunaActionFolder) base = { "combat": { @@ -87,7 +90,7 @@ for skill in base["magic"]: damageType = spec.upper() if damageType == "SHOCKWAVE": damageType = "SHOCK" - with open(aiActionFolder + "\\" + name + ".aiaction", "w") as f: + with open(npcActionFolder + "\\" + name + ".aiaction", "w") as f: f.write("\n") f.write("