Closed taltamir closed 5 years ago
there's a pullXWhenHaveY($item[Pantsgiving], 1, 0);
lying around, which tries to mallbuy the item. Huh, good find. I couldn't find any code changes that would have introduced this behavior, which surprises me.
In industry I would rename pullXWhenHaveY()
to something like pullXWhenHaveY_UNSAFE_MALLBUY()
to avoid future footguns of this sort. Might be worth doing.
Oh, it doesn't actually buy the item even if you have enough meat. The log is misleading, will fix.
Oh, interesting. well its good that it doesn't buy it even if you have the meat.
Probably want two different functions, one that only pulls if you have it, and one that mallbuys and pulls. maybe buyandpull() to buy and then pull something. removing the buying aspect of pullXWhenHaveY() And putting a built in meat limit on buyandpull()
Actually letting the user configure the meatlimit might be a good idea.
I tried to run sl_ascend in bees hate you path and CLI said:
when it was buying and pulling things. that really shouldn't be doing this. Luckily i was short 10 million meat and so it couldn't afford to buy pantsgiving for 240 million