diff --git a/src/recipe_functions/common.rs b/src/recipe_functions/common.rs index b3b9294..1718b10 100644 --- a/src/recipe_functions/common.rs +++ b/src/recipe_functions/common.rs @@ -125,11 +125,15 @@ pub fn get_mat_prefix(country: &str) -> String { pub fn check_allowed_change_mat_prefix(mat_id: Value) -> bool { let mat_id_i = mat_id.as_i64().unwrap(); - let exception_list = [ - 2101, 1031, 1, 9100, 8101, 8102, 8111, 8112, 8113, 8114, 8115, 8116, 8117, 8118, 8119, - 8120, 8001, 8002, 8888, 8889, 200000, 201001, 201002, 100004, 0, + let mut exception_list = vec![ + 2101, 1031, 1, 9100, 8101, 8102, 8001, 8002, 8888, 8889, 200000, 201001, 201002, 100004, 0, ]; + // topping slot + for i in 1..21 { + exception_list.push(8110 + i); + } + !exception_list.contains(&mat_id_i) }