Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use mall_price if historical_price of consumable is 0 #1126

Merged
merged 6 commits into from
May 17, 2022
Merged
8 changes: 6 additions & 2 deletions RELEASE/scripts/autoscend/auto_acquire.ash
Original file line number Diff line number Diff line change
Expand Up @@ -135,10 +135,14 @@ int auto_mall_price(item it)
string it_type = item_type(it);
if(it_type == "food" || it_type == "booze")
{
//autoscend does Bulk cache mall prices for food,booze,hprestore,mprestore so mafia will give historical_price when asked for mall_price
//directly ask for historical_price here because if mafia session has to be restarted mafia will forget it has already cached these prices
//autoscend does Bulk cache mall prices for food,booze,hprestore,mprestore so that when asking for mall_price it gets a cached mafia session price
//directly ask for historical_price here if it exists because if mafia session has to be restarted mafia will do another search despite recent price
//hprestore and mprestore types corresponding with mall_prices search categories are not available
retval = historical_price(it);
if(retval == 0)
{
retval = mall_price(it);
}
}
else
{
Expand Down