} else {
if(historical_age(it) > 2) price = historical_price(it);
else price = mall_price(it);
if(historical_price(it) == max(2* autosell_price(),100)) {
if(auto_q != 0)
auto[auto_line]= auto[auto_line] + ", ";
auto_total = autosell_price(it) * (item_amount(it)-ocd[it].q) + auto_total;
auto[auto_line]= auto[auto_line] + to_string(item_amount(it)-ocd[it].q)+ " "+to_string(it);
auto_q = auto_q + 1;
if(auto_q == 11) {
auto_line = auto_line +1;
auto_q = 0;
}
} else {
if(mall_q != 0)
mall[mall_line]= mall[mall_line] + ", ";
mall_total = price * item_amount(it) + mall_total;
mall[mall_line]= mall[mall_line] + to_string(item_amount(it))+ " "+to_string(it)+ " @ "+to_string(price);
mall_q = mall_q + 1;
if(mall_q == 11) {
mall_line = mall_line +1;
mall_q = 0;
}
}
}