DC23 / scriptabit

Python scripting for Habitica
Apache License 2.0
8 stars 4 forks source link

sb-pets does not hatch all kinds of eggs #26

Closed therealmaxmoon closed 7 years ago

therealmaxmoon commented 7 years ago

sb-pets --hatch-pets says:

"Hatched 0 new pets"

But there are hatchable eggs in the inventory, like rooster, spider, tyrannosaur and whale eggs. Maybe those are just too new.

therealmaxmoon commented 7 years ago

Found something useful here: https://scriptabit.readthedocs.io/en/latest/usage/petcare.html

The following command will hatch all kind of eggs: sb-pets --hatch-pets --quest-pets

DC23 commented 7 years ago

Yes. The base pets are on by default, you can turn them off with --no-base-pets. The extra quest pets are off by default, and they can be turned on with --quest-pets. There is also a --magic-pets flag for the other special pets.

The same flags work for both hatching and feeding. I need to update the code though, since I don't currently have handling for a couple of the newest pet types. I might see if I can rethink my implementation so I don't need to manually update the pets. The only problem is knowing which pets have a preferred food and which ones eat anything (mostly just the magic pets).

Also, I don't think the new purple potion is supported yet either.

therealmaxmoon commented 7 years ago

Thanks a lot for the explanation. So the correct command to hatch all kind of eggs would be: sb-pets --hatch-pets --quest-pets --magic-pets

DC23 commented 7 years ago

That looks right.