comparison 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
comparison
equal deleted inserted replaced
156:62ff1ac132d2 157:6ff68daab5dc
182 get { return item; } 182 get { return item; }
183 } 183 }
184 184
185 public override string ToString() 185 public override string ToString()
186 { 186 {
187 return EquipmentItem.Name+ " ("+EquipmentItem.Cost+"pts each)"; 187 return EquipmentItem.Name + " (" + Cost + "pts each)";
188 } 188 }
189 189
190 public bool HasAlternatives() 190 public bool HasAlternatives()
191 { 191 {
192 if (MutexGroups.Length == 0) 192 if (MutexGroups.Length == 0)