soolar
Member
There are a lot of familiars that can drop a certain amount of items per day, and they each have a property that tracks how many have dropped that day. A lot of scripts have to manually set up a switch case associating every familiar that has a drop with its specific drop counter, and then they also have to update that list every time a new one is added.
I think it would be awesome if familiars had two extra fields: a string that says what the drop property is named, and an int that said how many could drop in one day. That or just two ints, a max drop, and a drops so far. Maybe also an item saying what it is that drops.
Also cool would be a function, boolean [familiar] drop_familiars() that just returns a list of all familiars that can drop anything, but that's not really necessary since one could just iterate through all familiars and check for drops that way if needed.
Or, if you want to avoid bloating the familiar data type, just some functions that operate on familiars and return info about their drop progress, if applicable, would be very much appreciated.
I dunno what the general policy is on letting people contribute to KoLmafia, but I'd be willing to implement any of these myself.
I think it would be awesome if familiars had two extra fields: a string that says what the drop property is named, and an int that said how many could drop in one day. That or just two ints, a max drop, and a drops so far. Maybe also an item saying what it is that drops.
Also cool would be a function, boolean [familiar] drop_familiars() that just returns a list of all familiars that can drop anything, but that's not really necessary since one could just iterate through all familiars and check for drops that way if needed.
Or, if you want to avoid bloating the familiar data type, just some functions that operate on familiars and return info about their drop progress, if applicable, would be very much appreciated.
I dunno what the general policy is on letting people contribute to KoLmafia, but I'd be willing to implement any of these myself.