Skip to content

Instantly share code, notes, and snippets.

@AdrienLemaire
Last active August 29, 2015 14:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AdrienLemaire/d130eda27aa45238ebee to your computer and use it in GitHub Desktop.
Save AdrienLemaire/d130eda27aa45238ebee to your computer and use it in GitHub Desktop.
Habitica Auto-feed pets
window.confirm=function(){return true};$.each($(".pet-button"),function(){s=$(this).scope();if(!s.cp){s.cp=s.choosePet.bind({});s.choosePet=function(e,p){f=s.selectedFood.key;nb=Math.min((50-s.user.items.pets[e+"-"+p])/5,s.user.items.food[f]);for(i=0;i<nb;i+=1){s.cp(e,p);s.chooseFood(f)}}}})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment