1 2 #include "resources/pilots.h" 3 pilot_get_info(pilot * pilot,int id)4void pilot_get_info(pilot *pilot, int id) { 5 // TODO read this from MASTER.DAT 6 // XXX the colors are eyeballed 7 switch (id) { 8 case 0: 9 pilot->power=5; 10 pilot->agility=16; 11 pilot->endurance=9; 12 pilot->colors[0] = 5; 13 pilot->colors[1] = 11; 14 pilot->colors[2] = 15; 15 break; 16 case 1: 17 18 pilot->power=13; 19 pilot->agility=9; 20 pilot->endurance=8; 21 pilot->colors[0] = 10; 22 pilot->colors[1] = 15; 23 pilot->colors[2] = 7; 24 break; 25 case 2: 26 pilot->power=7; 27 pilot->agility=20; 28 pilot->endurance=4; 29 pilot->colors[0] = 11; 30 pilot->colors[1] = 12; 31 pilot->colors[2] = 8; 32 break; 33 case 3: 34 pilot->power=9; 35 pilot->agility=7; 36 pilot->endurance=15; 37 pilot->colors[0] = 8; 38 pilot->colors[1] = 15; 39 pilot->colors[2] = 12; 40 break; 41 case 4: 42 pilot->power=20; 43 pilot->agility=1; 44 pilot->endurance=8; 45 pilot->colors[0] = 4; 46 pilot->colors[1] = 7; 47 pilot->colors[2] = 14; 48 break; 49 case 5: 50 pilot->power=9; 51 pilot->agility=10; 52 pilot->endurance=11; 53 pilot->colors[0] = 1; 54 pilot->colors[1] = 7; 55 pilot->colors[2] = 6; 56 break; 57 case 6: 58 pilot->power=10; 59 pilot->agility=1; 60 pilot->endurance=20; 61 pilot->colors[0] = 8; 62 pilot->colors[1] = 6; 63 pilot->colors[2] = 14; 64 break; 65 case 7: 66 pilot->power=7; 67 pilot->agility=10; 68 pilot->endurance=13; 69 pilot->colors[0] = 0; 70 pilot->colors[1] = 15; 71 pilot->colors[2] = 7; 72 break; 73 case 8: 74 pilot->power=14; 75 pilot->agility=8; 76 pilot->endurance=8; 77 pilot->colors[0] = 0; 78 pilot->colors[1] = 8; 79 pilot->colors[2] = 2; 80 break; 81 case 9: 82 pilot->power=14; 83 pilot->agility=4; 84 pilot->endurance=12; 85 pilot->colors[0] = 9; 86 pilot->colors[1] = 10; 87 pilot->colors[2] = 4; 88 break; 89 case 10: 90 // totally made up shit here 91 pilot->power=14; 92 pilot->agility=14; 93 pilot->endurance=14; 94 pilot->colors[0] = 5; 95 pilot->colors[1] = 1; 96 pilot->colors[2] = 15; 97 break; 98 } 99 } 100 101