phreddrickk
Active member
The van/duffel nerf brought with it a significant and meaningful change to a behind-the-scenes function that KoL uses, which, for the purposes of this thread, I'll call well_stocked. This function is used in generating the pools for things like van keys and duffels, obviously, but also the party rat, the boxing daycare, guzzlr boozes, and the gift basket from this most recent Crimbo.
well_stocked works something like this: it takes an input of a price and a quantity, and it returns an array of all items which have a sufficient supply under that price. In other words, well_stocked(11, 23) would return all items such that at least 11 are available for 23 or less meat in the mall. Until recently, this would bypass store limits, but now it counts store limits the same way mafia's mall_price does.
I know mafia is very careful about the ways it deals with the mall. It returns the 5th smallest mall price, paying attention to store limits, and doesn't update prices frequently. I think it even messes with visit_url calls to the mall, which makes perfect sense. That being said, now that KoL's well_stocked function pays attention to store limits, I think a similar function may be appropriate to add to mafia.
The mafia version would be primarily different insofar as it would be a boolean with an additional item input, rather than something that iterates over the set of all items, because obviously ding a mallsearch for every item in the game is a bad idea. This behavior cannot currently be replicated by using mafia's mall_price function, so it would be helpful to be able to access this sort of information.
I'm curious to see how other people feel about this. I know that mafia is rightfully cautious about the way it approaches the mall, but I do think that a well_stocked function would be appropriate, given that a function similar to that exists behind-the-scenes in KoL, and the behavior WRT store limits means that it would be harder to abuse this for mallbotting reasons.
well_stocked works something like this: it takes an input of a price and a quantity, and it returns an array of all items which have a sufficient supply under that price. In other words, well_stocked(11, 23) would return all items such that at least 11 are available for 23 or less meat in the mall. Until recently, this would bypass store limits, but now it counts store limits the same way mafia's mall_price does.
I know mafia is very careful about the ways it deals with the mall. It returns the 5th smallest mall price, paying attention to store limits, and doesn't update prices frequently. I think it even messes with visit_url calls to the mall, which makes perfect sense. That being said, now that KoL's well_stocked function pays attention to store limits, I think a similar function may be appropriate to add to mafia.
The mafia version would be primarily different insofar as it would be a boolean with an additional item input, rather than something that iterates over the set of all items, because obviously ding a mallsearch for every item in the game is a bad idea. This behavior cannot currently be replicated by using mafia's mall_price function, so it would be helpful to be able to access this sort of information.
I'm curious to see how other people feel about this. I know that mafia is rightfully cautious about the way it approaches the mall, but I do think that a well_stocked function would be appropriate, given that a function similar to that exists behind-the-scenes in KoL, and the behavior WRT store limits means that it would be harder to abuse this for mallbotting reasons.