This repository has been archived by the owner on Jul 30, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathmap_manager.pas
226 lines (202 loc) · 4.97 KB
/
map_manager.pas
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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
unit map_manager;
{$mode objfpc}{$H+}
interface
uses general_var;
type TDifficultyStyle=(difficulty_easy,difficulty_normal,difficulty_hard,difficulty_insane);
type TDifficulty=record
DifficultyStyle:TDifficultyStyle;
simultaneous_active:integer;
EnemyFirePowerMultiplier,EnemySpawnRateMultiplier,EnemyHealingMultiplier,EnemyRangeMultiplier,EnemyHealthMultiplier:float;
PlayerHealthMultiplier:float;
end;
const Singleplayer_insane:TDifficulty=
(DifficultyStyle:difficulty_insane;
simultaneous_active:4;
EnemyFirepowerMultiplier:1.1;
EnemySpawnRateMultiplier:1.1;
EnemyHealingMultiplier:1.3;
EnemyRangeMultiplier:2;
EnemyHealthMultiplier:1.5;
PlayerHealthMultiplier:1.3);
const Singleplayer_hard:TDifficulty=
(DifficultyStyle:difficulty_hard;
simultaneous_active:3;
EnemyFirepowerMultiplier:1.0;
EnemySpawnRateMultiplier:1.0;
EnemyHealingMultiplier:1.0;
EnemyRangeMultiplier:1.5;
EnemyHealthMultiplier:1.0;
PlayerHealthMultiplier:1);
const Singleplayer_normal:TDifficulty=
(DifficultyStyle:difficulty_normal;
simultaneous_active:3;
EnemyFirepowerMultiplier:0.9;
EnemySpawnRateMultiplier:0.9;
EnemyHealingMultiplier:1.0;
EnemyRangeMultiplier:1.2;
EnemyHealthMultiplier:1.0;
PlayerHealthMultiplier:1);
const Singleplayer_easy:TDifficulty=
(DifficultyStyle:difficulty_easy;
simultaneous_active:2;
EnemyFirepowerMultiplier:0.8;
EnemySpawnRateMultiplier:0.8;
EnemyHealingMultiplier:0.9;
EnemyRangeMultiplier:1.0;
EnemyHealthMultiplier:0.8;
PlayerHealthMultiplier:1);
const hotSeatDifficultyMultiplier=1.1;
{maxx=2*(5+1); {not odd}
maxy=2*(4+1);}
type TMapType=record
maxx,maxy:integer;
PlayerHealth:integer;
floorTile,WallTile:integer;
nenemies:integer;
bots_shielder,bots_heavy,bots_healer,bots_Teleporter,bots_autohealer,bots_disabler:integer;
Crossfire_bosses,Carrier_bosses,Miner_bosses:integer;
fiwi:boolean;
end;
const map_FIWI:TMapType=
(maxx:2*(5+1);
maxy:2*(4+1);
playerHealth:300;
floorTile:0;
WallTile:2;
nenemies:0;
bots_shielder :0;
bots_heavy :0;
bots_healer :0;
bots_Teleporter :0;
bots_autohealer :0;
bots_disabler :0;
crossfire_bosses:0;
carrier_bosses :0;
Miner_bosses :0;
fiwi:true);
const map_bedroom:TMapType=
(maxx:2*(4+1);
maxy:2*(4+1);
playerHealth:300;
floorTile:10;
WallTile:4;
nenemies:2*(4+1)+2*(4+1);
bots_shielder :0;
bots_heavy :0;
bots_healer :0;
bots_Teleporter :0;
bots_autohealer :0;
bots_disabler :2;
crossfire_bosses:0;
carrier_bosses :0;
Miner_bosses :0;
fiwi:false);
const map_LivingRoom:TMapType=
(maxx:2*(5+1);
maxy:2*(4+1);
playerHealth:300;
floorTile:11;
WallTile:3;
nenemies:2*(5+1)+2*(4+1);
bots_shielder :0;
bots_heavy :3;
bots_healer :0;
bots_Teleporter :3;
bots_autohealer :0;
bots_disabler :0;
crossfire_bosses:2;
carrier_bosses :0;
Miner_bosses :0;
fiwi:false);
const map_Cellar:TMapType=
(maxx:2*(5+1);
maxy:2*(4+1);
playerHealth:300;
floorTile:7;
WallTile:1;
nenemies:2*(5+1)+2*(3+1)-8;
bots_shielder :3;
bots_heavy :3;
bots_healer :0;
bots_Teleporter :0;
bots_autohealer :2;
bots_disabler :0;
crossfire_bosses:0;
carrier_bosses :0;
Miner_bosses :1;
fiwi:false);
const map_Kitchen:TMapType=
(maxx:2*(5+1);
maxy:2*(4+1);
playerHealth:300;
floorTile:6;
WallTile:0;
nenemies:2*(5+1)+2*(4+1)-8;
bots_shielder :0;
bots_heavy :1;
bots_healer :3;
bots_Teleporter :0;
bots_autohealer :0;
bots_disabler :1;
crossfire_bosses:0;
carrier_bosses :1;
Miner_bosses :0;
fiwi:false);
const map_NarrowCellar:TMapType=
(maxx:2*(5+1);
maxy:2*(3+1);
playerHealth:400;
floorTile:7;
WallTile:1;
nenemies:2*(5+1)+2*(3+1);
bots_shielder :3;
bots_heavy :3;
bots_healer :0;
bots_Teleporter :0;
bots_autohealer :2;
bots_disabler :0;
crossfire_bosses:1;
carrier_bosses :0;
Miner_bosses :1;
fiwi:false);
const map_Crossfire:TMapType=
(maxx:2*(6+1);
maxy:2*(5+1);
playerHealth:200;
floorTile:-1;
WallTile:-1;
nenemies:2*(6+1)+2*(5+1);
bots_shielder :0;
bots_heavy :0;
bots_healer :0;
bots_Teleporter :0;
bots_autohealer :0;
bots_disabler :0;
crossfire_bosses:2;
carrier_bosses :0;
Miner_bosses :0;
fiwi:false);
const map_Test:TMapType=
(maxx:2*(5+1);
maxy:2*(4+1);
playerHealth:300;
floorTile:-1;
WallTile:-1;
nenemies:12;
bots_shielder :1;
bots_heavy :1;
bots_healer :1;
bots_Teleporter :1;
bots_autohealer :1;
bots_disabler :1;
crossfire_bosses:1;
carrier_bosses :1;
Miner_bosses :1;
fiwi:false);
var DifficultyLevel:TDifficulty;
currentDifficultyLevel:TDifficultyStyle;
Map:TMapType;
maxx,maxy:integer;
NPlayers:integer;
implementation
end.