comparison API/Objects/Unit.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 e6c93ceba119
comparison
equal deleted inserted replaced
430:7e95b880f9cc 431:c8002429ab45
509 { 509 {
510 int amount = 0; 510 int amount = 0;
511 511
512 foreach (AbstractUnitEquipmentItemSelection selection in selections) 512 foreach (AbstractUnitEquipmentItemSelection selection in selections)
513 { 513 {
514 amount += selection.RawNumberTaken; 514 amount += selection.NumberTaken;
515 } 515 }
516 516
517 return amount; 517 return amount;
518 } 518 }
519 519