Actually the numbers have to be figured out and written as well:
WAEC_eCart1_QuantityDiscount645
WAEC_eCart1_QuantityDiscount646()
etc.
and this line as well:
$this->Discounts[] = new WA_eCart_Rule(urldecode("QuantityDiscount648"), true, "WAEC_eCart1_QuantityDiscount648");
So, it's a little more involved although I think doable.