/* * Descent 3 * Copyright (C) 2024 Parallax Software * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ #ifndef _DIFFICULTY_H_ #define _DIFFICULTY_H_ #include "game.h" #include "pilot.h" #include "difficulty_external.h" extern uint8_t ingame_difficulty; // DAJ static global instead of subroutine call for speed #define DIFF_LEVEL (((Game_mode & GM_MULTI)) ? Netgame.difficulty : ingame_difficulty) // #define DIFF_LEVEL (((Game_mode & GM_MULTI))?Netgame.difficulty:dCurrentPilotDifficulty()) const extern float Diff_ai_dodge_percent[5]; // const extern float Diff_ai_dodge_speed[5]; // const extern float Diff_ai_speed[5]; // const extern float Diff_ai_rotspeed[5]; // const extern float Diff_ai_circle_dist[5]; // const extern float Diff_ai_vis_dist[5]; // const extern float Diff_player_damage[5]; // const extern float Diff_ai_weapon_speed[5]; // const extern float Diff_homing_strength[5]; // const extern float Diff_robot_damage[5]; // const extern float Diff_general_scalar[5]; // Trainee = 2.50f HotShot = 1.0f const extern float Diff_general_inv_scalar[5]; // Trainee = 0.50f HotShot = 1.0f const extern float Diff_shield_energy_scalar[5]; const extern float Diff_ai_turret_speed[5]; const extern float Diff_ai_min_fire_spread[5]; #endif