Guest User

Untitled

a guest
Jan 19th, 2018
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.27 KB | None | 0 0
  1. // Potato:
  2. if(phase1_target_score>0 && playing) {
  3. temp = min( int(score/phase1_target_score*100) , 100);
  4. str_for_num(buf, temp);
  5. str_cat(buf, "% is \"");
  6.  
  7. if(temp>4) { str_cat(buf, "S"); }
  8. if(temp>6) { str_cat(buf, "A"); }
  9. if(temp>8) { str_cat(buf, "N"); }
  10. if(temp>12) { str_cat(buf, "D"); }
  11. if(temp>18) { str_cat(buf, "Y"); }
  12. if(temp>26) { str_cat(buf, "M"); }
  13. if(temp>32) { str_cat(buf, "A"); }
  14. if(temp>40) { str_cat(buf, "Y"); }
  15. if(temp>45) { str_cat(buf, "O"); }
  16. if(temp>50) { str_cat(buf, "R"); }
  17. if(temp>55) { str_cat(buf, "M"); }
  18. if(temp>60) { str_cat(buf, "A"); }
  19. if(temp>65) { str_cat(buf, "Y"); }
  20. if(temp>70) { str_cat(buf, "N"); }
  21. if(temp>73) { str_cat(buf, "O"); }
  22. if(temp>76) { str_cat(buf, "T"); }
  23. if(temp>82) { str_cat(buf, "B"); }
  24. if(temp>85) { str_cat(buf, "E"); }
  25. if(temp>89) { str_cat(buf, "F"); }
  26. if(temp>92) { str_cat(buf, "I"); }
  27. if(temp>93) { str_cat(buf, "C"); }
  28. if(temp>94) { str_cat(buf, "T"); }
  29. if(temp>95) { str_cat(buf, "I"); }
  30. if(temp>96) { str_cat(buf, "O"); }
  31. if(temp>97) { str_cat(buf, "N"); }
  32. if(temp>98) { str_cat(buf, "A"); }
  33. if(temp>99) { str_cat(buf, "L"); }
  34.  
  35. str_cat(buf, "\"");
  36.  
  37. if(temp>4) {
  38. minor_message(buf);
  39. }
  40. }
Add Comment
Please, Sign In to add comment