Mercurial > repos > snowblizz-super-API-ideas
changeset 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 | 62ff1ac132d2 |
children | eb9a6d91a6db |
files | api/Objects/UnitEquipmentItem.cs |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
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()