Open bmf57 opened 6 years ago
In addition to checking the quantity, I've also included a unit simplification/conversion feature to this class. Since ingredient quantities are not comparable unless they have the same units, I've created a simplification method that standardizes any units, primarily ones not obtained from the IDatabase, so that they can be converted and compared later.
Create a class for the comparitor to use that compares the quantities of ingredients to determine if there are sufficient amounts.