From f643459eb04674d0239ebe6e60050f5fe64f2c44 Mon Sep 17 00:00:00 2001 From: lBaah <40009702+lBaah@users.noreply.github.com> Date: Tue, 29 Oct 2019 03:19:53 -0300 Subject: [PATCH] Remove unused code --- spawnConvert.py | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/spawnConvert.py b/spawnConvert.py index fc7ab1f..dbdd584 100644 --- a/spawnConvert.py +++ b/spawnConvert.py @@ -2,16 +2,6 @@ tree = ET.parse('spawn.xml') root = tree.getroot() -#remove npc spawn from spawns.xml -''' -spawns = root.findall('spawn') -for spawn in spawns: - npcs = spawn.findall('npc') # change to monster to select monster - for npc in npcs: - spawn.remove(npc) #remove npc tag from spawns -tree.write('out.xml') -''' - #get all npc/monster spawns f = open("monsterSpawnList.lua", "x") #create a new file. make sure the file dont exist already i = 0