Debian Codegraph @

Descent3/difficulty.h

raw symbols SCIP
1 /*
2 * Descent 3
3 * Copyright (C) 2024 Parallax Software
4 *
5 * This program is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation, either version 3 of the License, or
8 * (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program. If not, see <http://www.gnu.org/licenses/>.
17 */
18
19 #ifndef _DIFFICULTY_H_
20 #define _DIFFICULTY_H_
21
22 #include "game.h"
23 #include "pilot.h"
24 #include "difficulty_external.h"
25
26 extern uint8_t ingame_difficulty;
27
28 // DAJ static global instead of subroutine call for speed
29 #define DIFF_LEVEL (((Game_mode & GM_MULTI)) ? Netgame.difficulty : ingame_difficulty)
30 // #define DIFF_LEVEL (((Game_mode & GM_MULTI))?Netgame.difficulty:dCurrentPilotDifficulty())
31
32 const extern float Diff_ai_dodge_percent[5]; //
33 const extern float Diff_ai_dodge_speed[5]; //
34 const extern float Diff_ai_speed[5]; //
35 const extern float Diff_ai_rotspeed[5]; //
36 const extern float Diff_ai_circle_dist[5]; //
37 const extern float Diff_ai_vis_dist[5]; //
38 const extern float Diff_player_damage[5]; //
39 const extern float Diff_ai_weapon_speed[5]; //
40 const extern float Diff_homing_strength[5]; //
41 const extern float Diff_robot_damage[5]; //
42 const extern float Diff_general_scalar[5]; // Trainee = 2.50f HotShot = 1.0f
43 const extern float Diff_general_inv_scalar[5]; // Trainee = 0.50f HotShot = 1.0f
44 const extern float Diff_shield_energy_scalar[5];
45 const extern float Diff_ai_turret_speed[5];
46 const extern float Diff_ai_min_fire_spread[5];
47 #endif