mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-09-21 20:06:40 +00:00
Remove some semicolons at end of line in a python script.
This was SVN commit r19073.
This commit is contained in:
@@ -29,7 +29,7 @@ Resources = ["food", "wood", "stone", "metal"]
|
||||
# The way this works is it tries all generic templates
|
||||
# But only loads those who have one of the following parents
|
||||
# EG adding "template_unit.xml" will load all units.
|
||||
LoadTemplatesIfParent = ["template_unit_infantry.xml", "template_unit_cavalry.xml", "template_unit_champion.xml", "template_unit_hero.xml"];
|
||||
LoadTemplatesIfParent = ["template_unit_infantry.xml", "template_unit_cavalry.xml", "template_unit_champion.xml", "template_unit_hero.xml"]
|
||||
|
||||
# Those describe Civs to analyze.
|
||||
# The script will load all entities that derive (to the nth degree) from one of the above templates.
|
||||
@@ -50,7 +50,7 @@ AddSortingOverlay = True
|
||||
basePath = os.path.realpath(__file__).replace("unitTables.py","") + "../../../binaries/data/mods/public/simulation/templates/"
|
||||
|
||||
# For performance purposes, cache opened templates files.
|
||||
globalTemplatesList = {};
|
||||
globalTemplatesList = {}
|
||||
|
||||
def htbout(file, balise, value):
|
||||
file.write("<" + balise + ">" + value + "</" + balise + ">\n" )
|
||||
@@ -68,7 +68,7 @@ def hasParentTemplate(UnitName, parentName):
|
||||
Template = fastParse(UnitName)
|
||||
|
||||
found = False
|
||||
Name = UnitName;
|
||||
Name = UnitName
|
||||
while found != True and Template.getroot().get("parent") != None:
|
||||
Name = Template.getroot().get("parent") + ".xml"
|
||||
if Name == parentName:
|
||||
@@ -341,7 +341,7 @@ f.write("</table>")
|
||||
CivTemplates = {}
|
||||
|
||||
for Civ in Civs:
|
||||
CivTemplates[Civ] = {};
|
||||
CivTemplates[Civ] = {}
|
||||
# Load all templates that start with that civ indicator
|
||||
for template in list(glob.glob('units/' + Civ + '_*.xml')):
|
||||
if os.path.isfile(template):
|
||||
|
||||
Reference in New Issue
Block a user