forked from eugeneloza/FireMadness
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmap_manager.pas
176 lines (154 loc) · 3.73 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
unit map_manager;
{$mode objfpc}{$H+}
interface
uses general_var;
type TDifficulty=record
simultaneous_active:integer;
EnemyFirePowerMultiplier,EnemySpawnRateMultiplier,EnemyHealingMultiplier,EnemyRangeMultiplier,EnemyHealthMultiplier:float;
PlayerHealth:integer;
end;
const Singleplayer_insane:TDifficulty=
(simultaneous_active:4;
EnemyFirepowerMultiplier:1.1;
EnemySpawnRateMultiplier:1.1;
EnemyHealingMultiplier:1.3;
EnemyRangeMultiplier:2;
EnemyHealthMultiplier:1.5;
PlayerHealth:400);
const Singleplayer_hard:TDifficulty=
(simultaneous_active:3;
EnemyFirepowerMultiplier:1.0;
EnemySpawnRateMultiplier:1.0;
EnemyHealingMultiplier:1.0;
EnemyRangeMultiplier:1.5;
EnemyHealthMultiplier:1.0;
PlayerHealth:300);
const Singleplayer_normal:TDifficulty=
(simultaneous_active:3;
EnemyFirepowerMultiplier:0.9;
EnemySpawnRateMultiplier:0.9;
EnemyHealingMultiplier:1.0;
EnemyRangeMultiplier:1.2;
EnemyHealthMultiplier:1.0;
PlayerHealth:300);
const Singleplayer_easy:TDifficulty=
(simultaneous_active:2;
EnemyFirepowerMultiplier:0.8;
EnemySpawnRateMultiplier:0.8;
EnemyHealingMultiplier:0.9;
EnemyRangeMultiplier:1.0;
EnemyHealthMultiplier:0.8;
PlayerHealth:300);
const hotSeatDifficultyMultiplier=1.5;
{maxx=2*(5+1); {not odd}
maxy=2*(4+1);}
type TMapType=record
maxx,maxy: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);
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);
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);
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*(3+1);
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_Kitchen:TMapType=
(maxx:2*(5+1);
maxy:2*(4+1);
floorTile:6;
WallTile:0;
nenemies:2*(5+1)+2*(4+1)-4;
bots_shielder :0;
bots_heavy :2;
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_Test:TMapType=
(maxx:2*(5+1);
maxy:2*(4+1);
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;
Map:TMapType;
maxx,maxy:integer;
NPlayers:integer;
implementation
end.