yojimbos_law

tcrs modifier order

Jun 27th, 2019
473
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.27 KB | None | 0 0
  1. string[int] m = file_to_array("data/tcrs all modifiers.txt");
  2. boolean[string][string] rel;
  3. file_to_map("tcrs pre-modifier relative order with rings.txt",rel);
  4.  
  5. boolean less_than(string first, string second){
  6. return rel[first][second];
  7. }
  8.  
  9. string[int] order;
  10. boolean[string] ordered;
  11. order[0]="greedy";
  12. ordered["greedy"] = true;
  13. int c;
  14. boolean boop;
  15.  
  16. foreach i in m{
  17. c = order.count();
  18. //if modifier is lower than lowest.
  19. if(m[i].less_than(order[0])){
  20. //shift up.
  21. for j from c to 1 by -1{
  22. order[j] = order[j-1];
  23. }
  24. //insert new modifier in lowest spot.
  25. order[0] = m[i];
  26. }
  27. if(order.count() > c){
  28. continue;
  29. }
  30.  
  31. //if modifier is between consecutive modifiers.
  32. for j from 1 to c{
  33. //if (j-1)st < modifier i < jth
  34. if(m[i].less_than(order[j]) && order[j-1].less_than(m[i])){
  35. //shift jth and beyond up by 1.
  36. for k from c to j+1 by -1{
  37. order[k] = order[k-1];
  38. }
  39. //insert modifier i into jth position.
  40. order[j] = m[i];
  41. break;
  42. }
  43. }
  44. if(order.count() > c){
  45. continue;
  46. }
  47. //if modifier is larger than all ordered modifiers.
  48. boop = true;
  49. for j from 0 to c-1{
  50. boop = boop && (!(m[i].less_than(order[j])));
  51. }
  52. if(boop){
  53. order[c] = m[i];
  54. }
  55. }
  56.  
  57. foreach i in order{
  58. print(i+": "+order[i]);
  59. }
  60.  
  61. ==============================================================================================================
  62.  
  63. > run actual tcrs order generator.ash
  64.  
  65. 0: up-at-dawn
  66. 1: prompt
  67. 2: Usain Bolt's
  68. 3: lightning-fast
  69. 4: zippy
  70. 5: censurious
  71. 6: family-friendly
  72. 7: executive
  73. 8: avaricious
  74. 9: greedy
  75. 10: miser's
  76. 11: Sherlock's
  77. 12: inspector's
  78. //lucky comes after auspicious and before rosewater-soaked, so it's actually #14 or #15 and everything after it is shifted by one.
  79. 13: auspicious
  80. 14: perfumed
  81. 15: rosewater-soaked
  82. 16: aromatic
  83. 17: reassuring
  84. 18: asbestos-lined
  85. 19: flame-retardant
  86. 20: lard-coated
  87. 21: greasy
  88. 22: Jeselnik's
  89. 23: ribald
  90. 24: scandalous
  91. 25: horrifying
  92. 26: gravedigger's
  93. 27: frightening
  94. 28: stanky
  95. 29: smelly
  96. 30: foul-smelling
  97. 31: grievous
  98. 32: razor-sharp
  99. 33: deadly
  100. 34: nasty
  101. 35: coward's
  102. 36: careful
  103. 37: Jim Carey's
  104. 38: mansplainer's
  105. 39: manspreader's
  106. 40: Lo Pan's
  107. 41: chaotic
  108. 42: MacGyver's
  109. 43: resourceful
  110. 44: clever
  111. 45: crafty
  112. 46: Oprah's
  113. 47: supercharged
  114. 48: energetic
  115. 49: forbidden
  116. 50: occult
  117. 51: baleful
  118. 52: sinister
  119. 53: wicked
  120. 54: extremely unsafe
  121. 55: dangerous
  122. 56: Rosewater's
  123. 57: savvy
  124. 58: sage
  125. 59: vibrating
  126. 60: hardy
  127. 61: hale
  128. 62: brawny
  129. 63: wizardly
  130. 64: thinker's
  131. 65: brainy
  132. 66: beefcake's
  133. 67: weightlifter's
  134. 68: fireproof
  135. 69: flame-wreathed
  136. 70: scorching
  137. 71: friendly
  138. 72: double-paned
  139. 73: sizzling
  140. 74: toasty
  141. 75: lion tamer's
  142. 76: dog trainer's
  143. 77: Temple Grandin's
  144. 78: Annie Oakley's
  145. 79: sharpshooter's
  146. 80: boxer's
  147. 81: stylish
  148. 82: beefy
  149. 83: Tesla
  150. 84: smooth
  151. 85: Van der Graaf
  152. 86: electrified
  153. 87: medical-grade
  154. 88: therapeutic
  155. 89: curative
  156. 90: veiny
  157. 91: ruddy
  158. 92: rosy-cheeked
  159. 93: healthy
  160. 94: wholesome
  161. 95: steel-toed
  162. 96: dance instructor's
  163. 97: arcane researcher's
  164. 98: personal trainer's
  165. 99: Da Vinci's
  166. 100: Newton's
  167. 101: shellacked
  168. 102: rock-hard
  169. 103: slick
  170. 104: hardened
  171. 105: stiffened
  172. 106: Socratic
  173. 107: Samson's
  174. 108: studded
  175. 109: fortified
  176. 110: quilted
  177. 111: experienced
  178. 112: educational
  179. 113: smartaleck's
  180. 114: supercool
  181. 115: padded
  182. 116: knitted
  183. 117: Sinatra's
  184. 118: Fonzie's
  185. 119: groovy
  186. 120: wool
  187. 121: Jack Frost's
  188. 122: frosty
  189. 123: nippy
  190. 124: chilly
  191. 125: banded
  192. 126: Herculean
  193. 127: cool
  194. 128: strapping
  195. 129: of the ox
  196. 130: of wisdom
  197. 131: of the wise owl
  198. 132: of the cougar
  199. 133: of the brute
  200. 134: of the pedagogue
  201. 135: of Tarzan
  202. 136: of James Dean
  203. 137: of dire peril
  204. 138: of the dark arts
  205. 139: of vim and vigor
  206. 140: of the bloodbag
  207. 141: of the storm
  208. 142: of Calamity Jane
  209. 143: of Gandalf
  210. 144: of Leguizamo
  211. 145: of the scaredy-cat
  212. 146: of extreme caution
  213. 147: of the empath
  214. 148: of chilblains
  215. 149: of the blizzard
  216. 150: of the brazier
  217. 151: of incineration
  218. 152: of the sewer
  219. 153: of the overflowing toilet
  220. 154: of terror
  221. 155: of horror
  222. 156: of doom
  223. 157: of mayonnaise
  224. 158: of courage
  225. 159: of bravery
  226. 160: of temperance
  227. 161: of the detective
  228. 162: of the businessman
  229. 163: of the boozehound
  230. 164: of the sweet-tooth
  231. 165: of the glutton
  232. 166: of the cheetah
  233. 167: of Flo-Jo
  234. 168: of the early riser
Advertisement
Add Comment
Please, Sign In to add comment