CursedSliver

test

Jan 16th, 2024
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.58 KB | None | 0 0
  1.  
  2. const maxBackfire=0.4665;
  3. const minBackfire=0.03;
  4. const maxCasts=100;
  5. function fthofcalc(spells, change){
  6. Math.seedrandom(Game.seed+'/'+spells);
  7. const backfire = Math.random();
  8. Math.random();Math.random();
  9. if(change){Math.random()}
  10. if(backfire<1-maxBackfire){
  11. var choices=[];
  12. choices.push('frenzy','multiply cookies', 'click frenzy');
  13. if (Math.random()<0.1) choices.push('cookie storm','cookie storm','blab');
  14. if (Math.random()<0.25) choices.push('building special');
  15. if (Math.random()<0.15) choices=['cookie storm drop'];
  16. if (Math.random()<0.0001) choices.push('free sugar lump');
  17. if(choose(choices)=="free sugar lump") return true;
  18. }
  19. if(backfire>1-minBackfire){
  20. var choices=[];
  21. choices.push('clot','ruin cookies');
  22. if (Math.random()<0.1) choices.push('cursed finger','blood frenzy');
  23. if (Math.random()<0.003) choices.push('free sugar lump');
  24. if (Math.random()<0.1) choices=['blab'];
  25. if(choose(choices)=="free sugar lump") return true;
  26. }
  27.  
  28. }
  29. function a(){
  30. let allTime = Game.Objects["Wizard tower"].minigame.spellsCastTotal;
  31. for(let i = allTime; i<allTime+maxCasts; i++){
  32. if(fthofcalc(i,false)||fthofcalc(i, true)){alert("Sweet found at "+i+" spells cast"); console.log(i);}
  33. }
  34. };
  35. eval('Game.Reset='+Game.Reset.toString().replace("Game.cookiesMultByType={};","Game.cookiesMultByType={};a();"))
Advertisement
Add Comment
Please, Sign In to add comment