comparison API/Objects/UnitEquipmentNumericSelection.cs @ 431:c8002429ab45

Re #366: Rewrite equipment handling and limits * Remove code added for #356 and work without limiting * Move "Calculate number taken" method to util class
author IBBoard <dev@ibboard.co.uk>
date Sat, 12 Nov 2011 20:35:15 +0000
parents 7179c585d31d
children
comparison
equal deleted inserted replaced
430:7e95b880f9cc 431:c8002429ab45
21 21
22 public override int NumberTaken 22 public override int NumberTaken
23 { 23 {
24 get 24 get
25 { 25 {
26 return RawNumberTaken;
27 }
28 }
29
30 public override int RawNumberTaken
31 {
32 get
33 {
34 return (int)AmountTaken; 26 return (int)AmountTaken;
35 } 27 }
36 } 28 }
37 29
38 protected bool IsWholeNumber(double newValue) 30 protected bool IsWholeNumber(double newValue)