debug: gen table

This commit is contained in:
Pakin 2026-04-17 10:30:19 +07:00
parent bcfab1ba89
commit 38a1510458

View file

@ -1848,7 +1848,11 @@ impl CommonRecipeTrait for MaterialSetting {
impl MaterialSetting {
pub fn get_definition_type(&mut self, country_code: Option<String>) -> MaterialType {
let pure_mat_id = if country_code.is_some() {
let cc = country_code.unwrap().parse::<i64>().expect("not a number");
let cc = country_code
.clone()
.unwrap()
.parse::<i64>()
.expect("not a number");
let mat_num = self.id.clone().as_i64().unwrap();
let check_if_start_with_cc = mat_num > MATERIAL_INTER_GUARD as i64;
@ -1862,6 +1866,8 @@ impl MaterialSetting {
self.id.clone().as_i64().expect("not a number")
};
println!("get def mat: {:?} # {pure_mat_id}", country_code.clone());
return match pure_mat_id {
8000 => MaterialType::Brew,
8001 => MaterialType::Clean,