Skip to content

Commit

Permalink
use mall_price if historical_price of consumable is 0 (#1126)
Browse files Browse the repository at this point in the history
  • Loading branch information
quarklikeadork authored May 17, 2022
1 parent d3cf35a commit 880e4bc
Showing 1 changed file with 6 additions and 2 deletions.
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

0 comments on commit 880e4bc

Please sign in to comment.