| 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_cxx . . $ `Descent3/difficulty.h:20:9`! |
| 21 | |
| 22 | #include "game.h"cxx . . $ `<file>/Descent3/game.h`/ |
| 23 | #include "pilot.h"cxx . . $ `<file>/Descent3/pilot.h`/ |
| 24 | #include "difficulty_external.h"cxx . . $ `<file>/Descent3/difficulty_external.h`/ |
| 25 | |
| 26 | extern uint8_tcxx . . $ uint8_t# ingame_difficultycxx . . $ ingame_difficulty.; |
| 27 | |
| 28 | // DAJ static global instead of subroutine call for speed |
| 29 | #define DIFF_LEVELcxx . . $ `Descent3/difficulty.h:29:9`! (((Game_mode & GM_MULTIcxx . . $ `Descent3/game.h:288:9`!)) ? Netgame.difficulty : ingame_difficulty) |
| 30 | // #define DIFF_LEVEL (((Game_mode & GM_MULTI))?Netgame.difficulty:dCurrentPilotDifficulty()) |
| 31 | |
| 32 | const extern float Diff_ai_dodge_percentcxx . . $ Diff_ai_dodge_percent.[5]; // |
| 33 | const extern float Diff_ai_dodge_speedcxx . . $ Diff_ai_dodge_speed.[5]; // |
| 34 | const extern float Diff_ai_speedcxx . . $ Diff_ai_speed.[5]; // |
| 35 | const extern float Diff_ai_rotspeedcxx . . $ Diff_ai_rotspeed.[5]; // |
| 36 | const extern float Diff_ai_circle_distcxx . . $ Diff_ai_circle_dist.[5]; // |
| 37 | const extern float Diff_ai_vis_distcxx . . $ Diff_ai_vis_dist.[5]; // |
| 38 | const extern float Diff_player_damagecxx . . $ Diff_player_damage.[5]; // |
| 39 | const extern float Diff_ai_weapon_speedcxx . . $ Diff_ai_weapon_speed.[5]; // |
| 40 | const extern float Diff_homing_strengthcxx . . $ Diff_homing_strength.[5]; // |
| 41 | const extern float Diff_robot_damagecxx . . $ Diff_robot_damage.[5]; // |
| 42 | const extern float Diff_general_scalarcxx . . $ Diff_general_scalar.[5]; // Trainee = 2.50f HotShot = 1.0f |
| 43 | const extern float Diff_general_inv_scalarcxx . . $ Diff_general_inv_scalar.[5]; // Trainee = 0.50f HotShot = 1.0f |
| 44 | const extern float Diff_shield_energy_scalarcxx . . $ Diff_shield_energy_scalar.[5]; |
| 45 | const extern float Diff_ai_turret_speedcxx . . $ Diff_ai_turret_speed.[5]; |
| 46 | const extern float Diff_ai_min_fire_spreadcxx . . $ Diff_ai_min_fire_spread.[5]; |
| 47 | #endif |