From cd2435dbb070f45fabd529c243919a5b01eb0670 Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Sun, 6 May 2018 09:00:00 +0200 Subject: [PATCH] spell xml does not define an index attribute --- res/core/spells.xml | 40 ++--- res/e3a/spells.xml | 270 ++++++++++++++++----------------- res/eressea/spells.xml | 330 ++++++++++++++++++++--------------------- src/xmlreader.c | 2 +- 4 files changed, 321 insertions(+), 321 deletions(-) diff --git a/res/core/spells.xml b/res/core/spells.xml index fba087855..7a6d9a13e 100644 --- a/res/core/spells.xml +++ b/res/core/spells.xml @@ -2,115 +2,115 @@ - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + diff --git a/res/e3a/spells.xml b/res/e3a/spells.xml index f3edbd9f6..c6f466eb4 100644 --- a/res/e3a/spells.xml +++ b/res/e3a/spells.xml @@ -3,99 +3,99 @@ - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + @@ -103,87 +103,87 @@ - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + @@ -191,185 +191,185 @@ - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + @@ -441,211 +441,211 @@ - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + diff --git a/res/eressea/spells.xml b/res/eressea/spells.xml index 7680f2f3b..2adc132e5 100644 --- a/res/eressea/spells.xml +++ b/res/eressea/spells.xml @@ -3,608 +3,608 @@ - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + diff --git a/src/xmlreader.c b/src/xmlreader.c index cdaf6b809..dcf51707b 100644 --- a/src/xmlreader.c +++ b/src/xmlreader.c @@ -1166,7 +1166,7 @@ static int parse_spells(xmlDocPtr doc) xmlFree(propValue); /* level, rank and flags */ #endif - sp->rank = (char)xml_ivalue(node, "rank", -1); + sp->rank = (char)xml_ivalue(node, "rank", 0); if (xml_bvalue(node, "los", false)) sp->sptyp |= TESTCANSEE; /* must see or have contact */ if (!xml_bvalue(node, "target_global", false))