Theraze
Active member
Nope. What you're trying to do is make it no longer keep your current familiar active if it's already reached it's target, which is not your goal.
What that means is that we count to_int(get_property("_dreamJarDrops")), which should tell us how many Dream Jars have dropped today. As long as mafia sees the drops, you should be fine. Once that count reaches 5, stop switching. Your problem probably lies in that you want a default familiar but only when done farming. And the code is designed for either an override familiar (is_100_run) or familiar farming, but not both.
What you want to add is an additional line between these:
Specifically if you always want that override, probably turning it into this:
Alternatively, you could try this (untested) bit to always use the last farming familiar after:
But your problem is that the current code is completely DONE with a familiar once it drops. It isn't switching to the Angry Jung Man because he's done. He's had his drop. He's no longer relevant to drop-farming.
What that means is that we count to_int(get_property("_dreamJarDrops")), which should tell us how many Dream Jars have dropped today. As long as mafia sees the drops, you should be fine. Once that count reaches 5, stop switching. Your problem probably lies in that you want a default familiar but only when done farming. And the code is designed for either an override familiar (is_100_run) or familiar farming, but not both.
What you want to add is an additional line between these:
Code:
foreach f,d in dfams if (d.count < 5) return use_fam(d.fam);
return true;
Code:
foreach f,d in dfams if (d.count < 5) return use_fam(d.fam);
if (have_familiar($familiar[angry jung man])) return use_fam($familiar[angry jung man]);
return true;
Code:
foreach f,d in dfams if (d.count < 5) return use_fam(d.fam);
if (count(dfams) > 0) return use_fam(dfams[count(dfams)-1]);
return true;
But your problem is that the current code is completely DONE with a familiar once it drops. It isn't switching to the Angry Jung Man because he's done. He's had his drop. He's no longer relevant to drop-farming.