comparison api/Objects/UnitEquipmentItemObj.cs @ 38:548cfc776f54

Fixes #34 - Remove "Choices" and "Base/Increment" from Category * Remove Choices and Base/Increment from code Re #47: Remove magic numbers * Replace "-1" magic number with WarFoundryCore.INFINITY * Use INFINITY instead of -1 in code * Use INF in schemas instead of -1 * Handle and parse INF as a special value in XML Factory
author IBBoard <dev@ibboard.co.uk>
date Thu, 19 Mar 2009 20:11:07 +0000
parents 306558904c2a
children
comparison
equal deleted inserted replaced
37:465a215a21a2 38:548cfc776f54
56 { 56 {
57 return Math.Round(amount * 100) + "%"; 57 return Math.Round(amount * 100) + "%";
58 } 58 }
59 else 59 else
60 { 60 {
61 if (amount == -1) 61 if (amount == WarFoundryCore.INFINITY)
62 { 62 {
63 return "all"; 63 return "all";
64 } 64 }
65 else 65 else
66 { 66 {