Mercurial > repos > IBBoard.WarFoundry.API
diff api/Exporters/WarFoundryHtmlExporter.cs @ 216:65553d2c8612
* Line-ending fix
no-open-ticket
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Sun, 22 Nov 2009 20:14:51 +0000 |
parents | 1b718b67f7f6 |
children | bf4f04f385d0 |
line wrap: on
line diff
--- a/api/Exporters/WarFoundryHtmlExporter.cs Sun Nov 22 20:08:45 2009 +0000 +++ b/api/Exporters/WarFoundryHtmlExporter.cs Sun Nov 22 20:14:51 2009 +0000 @@ -10,7 +10,7 @@ using System.Xml.Schema; using IBBoard.Lang; using IBBoard.Xml; -using IBBoard.WarFoundry.API.Objects; +using IBBoard.WarFoundry.API.Objects; using IBBoard.WarFoundry.API.Util; namespace IBBoard.WarFoundry.API.Exporters @@ -159,29 +159,29 @@ else { sb.Append(", "); - } - - string amountString; - double amount = UnitEquipmentUtil.GetEquipmentAmount(unit, equip); - - if (UnitEquipmentUtil.GetEquipmentAmountIsRatio(unit, equip)) - { - int number = UnitEquipmentUtil.GetEquipmentAmountTaken(unit, equip); - - if (amount == 100) - { - amountString = Translation.GetTranslation("armyHtmlExportEquipAmountAll", "all ({1})", amount, number); - } - else - { - amountString = Translation.GetTranslation("armyHtmlExportEquipAmountPercentage", "{0}% ({1})", amount, number); - } - } - else - { - amountString = amount.ToString(); - } - + } + + string amountString; + double amount = UnitEquipmentUtil.GetEquipmentAmount(unit, equip); + + if (UnitEquipmentUtil.GetEquipmentAmountIsRatio(unit, equip)) + { + int number = UnitEquipmentUtil.GetEquipmentAmountTaken(unit, equip); + + if (amount == 100) + { + amountString = Translation.GetTranslation("armyHtmlExportEquipAmountAll", "all ({1})", amount, number); + } + else + { + amountString = Translation.GetTranslation("armyHtmlExportEquipAmountPercentage", "{0}% ({1})", amount, number); + } + } + else + { + amountString = amount.ToString(); + } + sb.Append(Translation.GetTranslation("armyHtmlExportEquipAmountRatio", "{0} for {1}", equip.Name, amountString)); }