phreddrickk
Active member
I'm not sure if this is a bug per se, but:
When calling retrieve_price (or retrievePrice) for an item that can be created, it'll print the "Using cached search results" message every time. This message appears to be coming from MallPriceManager.searchMall.
That does not appear to happen for mall_price.
Looking at the runtime library, mall_price calls MallPriceManager.getMallPrice (which looks like it calls searchMall, which should then print the message, which is confusing), while retrieve_price calls
InventoryManager.priceToAcquire. By default, retrieve_price doesn't tell priceToAcquire to be "exact".
I'm still wading through this, but it's not clear to me why other functions don't print this. I can keep looking into this in the morning, but I figured I'd make a post in case this is intended behavior that shouldn't be touched, or in case someone else has immediate knowledge of where to look.
> js retrievePrice(Item.get("possessed sugar cube"))
Returned: 15000
> js mallPrice(Item.get("possessed sugar cube"))
Searching for "possessed sugar cube"...
Search complete.
Returned: 15000
> js mallPrice(Item.get("possessed sugar cube"))
Returned: 15000
> js mallPrice(Item.get("sweet tooth"))
Searching for "sweet tooth"...
Search complete.
Returned: 269069
> js retrievePrice(Item.get("sweet tooth"))
Using cached search results for possessed sugar cube...
Returned: 165000
When calling retrieve_price (or retrievePrice) for an item that can be created, it'll print the "Using cached search results" message every time. This message appears to be coming from MallPriceManager.searchMall.
That does not appear to happen for mall_price.
Looking at the runtime library, mall_price calls MallPriceManager.getMallPrice (which looks like it calls searchMall, which should then print the message, which is confusing), while retrieve_price calls
InventoryManager.priceToAcquire. By default, retrieve_price doesn't tell priceToAcquire to be "exact".
I'm still wading through this, but it's not clear to me why other functions don't print this. I can keep looking into this in the morning, but I figured I'd make a post in case this is intended behavior that shouldn't be touched, or in case someone else has immediate knowledge of where to look.