Mercurial > repos > snowblizz-super-API-ideas
diff api/Objects/UnitEquipmentItem.cs @ 157:6ff68daab5dc
Fixes #188: Add equipment window doesn't feature cost accurately
* Make ToString() use UnitEquipmentItem's Cost property (which includes cost multiplier) rather than base cost
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Tue, 29 Sep 2009 19:33:03 +0000 |
parents | 4a02c07278e7 |
children | 81abc04b3dbe |
line wrap: on
line diff
--- a/api/Objects/UnitEquipmentItem.cs Tue Sep 29 19:21:50 2009 +0000 +++ b/api/Objects/UnitEquipmentItem.cs Tue Sep 29 19:33:03 2009 +0000 @@ -184,7 +184,7 @@ public override string ToString() { - return EquipmentItem.Name+ " ("+EquipmentItem.Cost+"pts each)"; + return EquipmentItem.Name + " (" + Cost + "pts each)"; } public bool HasAlternatives()