Advertisement
ywkls

Giant Hard-Coded Array

Dec 2nd, 2020
41
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. int EnemyIndex(int row, int slot){
  2. int mapIndex[] =
  3. {
  4. //Enemy 1, Enemy 2 ,Enemy 3 ,Enemy 4, Enemy 5, Enemy 6
  5. 30 , 28 , 46 , 140 , 29, 45, //Level 0- Labrynna Overworld N
  6. 44 , 139 , 185 , 203 , 80, 0, //Level 1
  7. 41 , 232 , 54 , 35 , 0, 0, //Level 2
  8. 43 , 29 , 25 , 199 , 46, 55, //Level 3
  9. 57 , 56 , 214 , 79 , 232, 0, //Level 4
  10. 207 , 136 , 57 , 240 , 28, 29, //Level 5
  11. 120 , 211 , 35 , 0 , 0, 0, //Level 6
  12. 243 , 195 , 235 , 0 , 0, 0, //Level 7
  13. 110 , 93 , 243 , 67 , 70, 136, //Level 8
  14. 62 , 71 , 58 , 135 , 0, 0, //Level 9- Black Tower Mirror
  15. 38 , 21 , 20 , 28 , 42, 0, //Level 10- Treetop Terrace
  16. 80 , 46 , 160 , 45 , 28, 29, //Level 11
  17. 45 , 30 , 198 , 141 , 31, 26, //Level 12
  18. 167 , 240 , 49 , 166 , 50, 52, //Level 13
  19. 231 , 238 , 31 , 209 , 57, 0, //Level 14
  20. 170 , 22 , 138 , 50 , 91, 136, //Level 15
  21. 249 , 237 , 116 , 250 , 253, 252, //Level 16
  22. 65 , 50 , 49 , 68 , 238, 0, //Level 17- Lost Citadel F1
  23. 45 , 21 , 44 , 0 , 0, 0, //Level 18- Labrynna Caves N
  24. 0 , 0 , 0 , 0 , 0, 0, //Level 19- Farore Area
  25. 99 , 162 , 136 , 53 , 86, 0, //Level 20- Trial of Fire
  26. 217 , 88 , 243 , 53 , 0, 0, //Level 21- Trial of Water
  27. 76 , 177 , 257 , 152 , 77, 0, //Level 22- Hall of Mirrors
  28. 69 ,107 , 66 , 109 , 61, 0, //Level 23- Black Tower Labrynna
  29. 45 , 21 , 44 , 21 , 0, 0, //Level 24- Mirror Caves N
  30. 46 , 29 , 45 , 26 , 32, 0, //Level 25- Labrynna Overworld S
  31. 43 , 138 , 32 , 27 , 26, 0, //Level 26- Mirror Overworld S
  32. 45 , 21 , 44 , 0 , 0, 0, //Level 27- Labrynna Caves S
  33. 45 , 21 , 44 , 0 , 0, 0, //Level 28- Mirror Caves S
  34. 45 , 21 , 44 , 0 , 0, 0, //Level 29- Mirror Caves N Low
  35. 221 , 223 , 54 , 0 , 0, 0, //Level 30- Labrynna Underwater
  36. 221 , 223 , 54 , 0 , 0, 0, //Level 31- Derelict Galleon B1
  37. 63 , 99 , 56 , 57 , 0, 0, //Level 32- Lost Citadel B1
  38. 75 , 92 , 64 , 0 , 0, 0, //Level 33- Lost Citadel B2
  39. 238 , 92 , 120 , 68 , 53, 72, //Level 34- Trial of Ice
  40. 61 , 109 , 66 , 53 , 86, 0, //Level 35- Trial of Wind
  41. 20 , 24 , 44 , 28 , 32, 43 //Level 36- Mirror Overworld N
  42. };
  43. if(slot < 0 || slot >= ENEMY_INDEX_WIDTH )
  44. return -1;
  45. return mapIndex[(row*ENEMY_INDEX_WIDTH)+slot];
  46.  
Advertisement
Advertisement
Advertisement
RAW Paste Data Copied
Advertisement