I recently realized that you can access builtin data files like “modifiers.txt” using file_to_map. With that in mind, I think it would be very helpful for LatteRequest.java to be reworked such that the map of latte ingredients is stored as a separate data file, rather than being hard-coded. It is incredibly tedious for everyone to handle latte ingredients independently, and this has the benefit of being maintained should any changes be made in the future.
For instance, one of the ingredients still hasn’t been found, and it is reasonable to assume it will be eventually. It’s also not improbable that ingredients will be added in the future, as some IotMs like this get minor content updates.
If this is infeasible for some reason (I’m not very well-versed in KoLmafia’s design, which is why I’m not making a patch for this), then at least make it possible to access the data through functions or proxy record fields.