Advertisement
Guest User

Untitled

a guest
Nov 15th, 2019
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. auto = function(){
  2. autoPlay();
  3. setTimeout(auto, 100);
  4. }
  5.  
  6. autoPlay = function(){
  7. GameModel.energy = GameModel.energyMax;
  8. GameModel.persistentData.blood = GameModel.bloodMax;
  9. GameModel.persistentData.brains = GameModel.brainsMax;
  10. if(GameModel.persistentData.bones < 1000000)
  11. GameModel.persistentData.bones = 1000000;
  12. if(GameModel.persistentData.parts < GameModel.persistentData.bones)
  13. GameModel.persistentData.parts = GameModel.persistentData.bones;
  14. }
  15.  
  16. auto();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement