Advertisement
Guest User

Untitled

a guest
Feb 23rd, 2020
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. int lastcolor;
  2. int lastcolorcounter;
  3. int lastlastcolor;
  4. int i;
  5.  
  6. for(i = 0; i < 256; i++){
  7. if(Game->GetComboData(31, screen, i) == 5856){
  8. if(lastcolor == 0 || Rand(0,100) <= 30 || lastcolorcounter >4){
  9. do{
  10. lastcolor = Rand(3, 6);
  11. }
  12. while(lastcolorcounter >=6 && lastlastcolor == lastcolor);
  13. if(lastlastcolor != lastcolor)
  14. lastcolorcounter = 0;
  15. else
  16. lastcolorcounter++;
  17. lastlastcolor = lastcolor;
  18.  
  19. }
  20. Game->SetComboCSet(31, screen, i, lastcolor);
  21. }
  22. else
  23. lastcolorcounter++;
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement