-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy path___15808h.c
92 lines (72 loc) · 3.02 KB
/
___15808h.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
#include "drally.h"
#include "drally_fonts.h"
#include "drally_structs_fixed.h"
extern __POINTER__ ___1a112ch__VESA101_ACTIVESCREEN_PTR;
extern __POINTER__ ___1a1e80h;
extern __BYTE__ ___196aa4h[];
extern __BYTE__ ___1a1ef8h[];
extern __BYTE__ ___1a01e0h[];
__DWORD__ ___14c50h(void);
void ___13248h_cdecl(__DWORD__, __DWORD__ ,__DWORD__, __DWORD__, __DWORD__);
static const char rewards[6][6] = { "12000", "8000", "6000", "4000", "2000", "1000" };
// STREOIDS RESULT
int ___15808h(void){
__BYTE__ px;
char buff[0x34];
int i, j, n, rslt, penalty;
racer_t * s_6c;
s_6c = (racer_t *)___1a01e0h;
rslt = 0;
___13248h_cdecl(0x21, 0x83, 0x1e2, 0xe6, 1);
j = -1;
while(++j < 0x80){
i = -1;
while(++i < 0x68){
if((px = B(___1a1e80h+0x68*j+i)) != 0) B(___1a112ch__VESA101_ACTIVESCREEN_PTR+0x1a42d+0x280*j+i) = px;
}
}
if((int)D(___196aa4h) <= 0){
if(D(___196aa4h) == -1) penalty = 6000;
if(D(___196aa4h) == -2) penalty = 4000;
if(D(___196aa4h) == -3) penalty = 3000;
if(D(___196aa4h) == -4) penalty = 2000;
if(D(___196aa4h) == -5) penalty = 1000;
if(D(___196aa4h) == -6) penalty = 500;
VESA101_16X16_FORMAT_PRINT("[Where're my steroids?", 161, 168);
VESA101_16X16_FORMAT_PRINT("", 161, 184);
VESA101_16X16_FORMAT_PRINT("[The whole deal went sour{ because", 161, 200);
VESA101_16X16_FORMAT_PRINT("of your incompetence. A few slick", 161, 216);
VESA101_16X16_FORMAT_PRINT("turns of the wheel, but no, nope!", 161, 232);
VESA101_16X16_FORMAT_PRINT("I'm not happy, and when I'm not", 161, 248);
VESA101_16X16_FORMAT_PRINT("happy I am mad, and when I am", 161, 264);
VESA101_16X16_FORMAT_PRINT("mad [bad things happen - to you!", 161, 280);
VESA101_16X16_FORMAT_PRINT("", 161, 296);
VESA101_16X16_FORMAT_PRINT("", 161, 312);
if((int)s_6c[D(___1a1ef8h)].money < penalty){
rslt = ___14c50h();
}
else {
s_6c[D(___1a1ef8h)].money -= penalty;
}
}
else {
if(D(___196aa4h) == 1) s_6c[D(___1a1ef8h)].money += 12000;
if(D(___196aa4h) == 2) s_6c[D(___1a1ef8h)].money += 8000;
if(D(___196aa4h) == 3) s_6c[D(___1a1ef8h)].money += 6000;
if(D(___196aa4h) == 4) s_6c[D(___1a1ef8h)].money += 4000;
if(D(___196aa4h) == 5) s_6c[D(___1a1ef8h)].money += 2000;
if(D(___196aa4h) == 6) s_6c[D(___1a1ef8h)].money += 1000;
VESA101_16X16_FORMAT_PRINT("[What motorized steroid peddling!", 161, 168);
VESA101_16X16_FORMAT_PRINT("", 161, 184);
VESA101_16X16_FORMAT_PRINT("Wow, my main man. I didn't know", 161, 200);
VESA101_16X16_FORMAT_PRINT("there was that much smoke in the", 161, 216);
VESA101_16X16_FORMAT_PRINT("whole burning hell, and through", 161, 232);
VESA101_16X16_FORMAT_PRINT("it all, bearing gifts like some", 161, 248);
VESA101_16X16_FORMAT_PRINT("blessed beast, you came. And [this", 161, 264);
VESA101_16X16_FORMAT_PRINT(strcat(strcat(strcpy(buff, "[here is prime stuff! $"), rewards[D(___196aa4h)-1]), ", to you."), 161, 280);
VESA101_16X16_FORMAT_PRINT("", 161, 296);
VESA101_16X16_FORMAT_PRINT("", 161, 312);
}
___12e78h_v3(___1a10cch___185ba9h, "CONTINUE", 192, 316);
return rslt;
}