Mercurial > repos > IBBoard.WarFoundry.API
changeset 426:61fae5cbba02
Re #338: WarFoundry.API - Save System Data
* Fix copy-and-paste errors to pass test
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Fri, 28 Oct 2011 20:52:29 +0100 |
parents | 5b3e3fb11de9 |
children | 3882b533d99d |
files | API/Savers/Xml/WarFoundryXmlGameSystemSaver.cs |
diffstat | 1 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/API/Savers/Xml/WarFoundryXmlGameSystemSaver.cs Wed Oct 26 15:39:55 2011 +0100 +++ b/API/Savers/Xml/WarFoundryXmlGameSystemSaver.cs Fri Oct 28 20:52:29 2011 +0100 @@ -68,15 +68,15 @@ catElem.SetAttribute("name", (cat.HasDefaultName() ? "" : cat.Name)); if (cat.MinimumPoints > 0) { - catElem.SetAttribute("minPoints", cat.MaximumPercentage.ToString()); + catElem.SetAttribute("minPoints", cat.MinimumPoints.ToString()); } - if (cat.MaximumPoints < 100) + if (cat.MaximumPoints != WarFoundryCore.INFINITY) { - catElem.SetAttribute("maxPoints", cat.MaximumPercentage.ToString()); + catElem.SetAttribute("maxPoints", cat.MaximumPoints.ToString()); } if(cat.MinimumPercentage > 0) { - catElem.SetAttribute("minPercentage", cat.MaximumPercentage.ToString()); + catElem.SetAttribute("minPercentage", cat.MinimumPercentage.ToString()); } if(cat.MaximumPercentage < 100) {