25 #include "../../cl_shared.h"
26 #include "../../ui/ui_dataids.h"
39 if (
cgi->Cmd_Argc() < 2) {
63 if (
cgi->Cmd_Argc() < 2) {
78 base->storage.numItems[item->
idx]++;
95 if (
cgi->Cmd_Argc() < 2) {
96 cgi->Com_Printf(
"Usage: %s <absolute change value>\n",
cgi->
Cmd_Argv(0));
102 cgi->Com_Printf(
"No mission selected - could not determine nation to use\n");
120 cgi->UI_RegisterText(
TEXT_STANDARD,
_(
"Congratulations! You have reached the end of the UFO:AI campaign.\n"
121 "However, this is not the end of the road. The game remains in development.\n"
122 "The campaign will be expanded with new missions, new enemies, "
123 "new UFOs, new player controllable craft and more research.\n\n"
124 "And YOU can help make it happen! Visit our forums or IRC channel to find\n"
125 "out what you can do to help finish this game. Alternatively, you can just\n"
126 "come by and talk about the game, or find other players for a multiplayer game.\n\n"
127 "Thank you for playing, and we hope to see you around.\n\n"
128 " - The UFO:AI development team"));
137 {
"cp_endgame",
CP_EndGame_f,
"This command will end the current campaign"},
139 {
nullptr,
nullptr,
nullptr}
151 for (commands = cp_commands; commands->
name; commands++)
155 cgi->Cmd_RemoveCommand(commands->
name);
const objDef_t * INVSH_GetItemByIDSilent(const char *id)
Returns the item that belongs to the given id or nullptr if it wasn't found.
const nationInfo_t * NAT_GetCurrentMonthInfo(const nation_t *const nation)
Get the current month nation stats.
void RS_MarkOneResearchable(technology_t *tech)
Marks one tech as researchable.
static const cmdList_t cp_commands[]
mission trigger functions
void CP_EndCampaign(bool won)
Function to handle the campaign end.
Defines all attributes of objects used in the inventory.
A base with all it's data.
void CP_CampaignTriggerFunctions(bool add)
Add/Remove temporary mission trigger functions.
void NAT_SetHappiness(const float minhappiness, nation_t *nation, const float happiness)
Updates the nation happiness.
Campaign missions headers.
void RS_MarkCollected(technology_t *tech)
Marks a give technology as collected.
static void CP_AddItemAsCollected_f(void)
For things like craft_ufo_scout that are no real items this function will increase the collected coun...
const cgame_import_t * cgi
This is the technology parsed from research.ufo.
base_t * B_GetBaseByIDX(int baseIdx)
Array bound check for the base index. Will also return unfounded bases as long as the index is in the...
Header for Geoscape management.
technology_t * RS_GetTechByID(const char *id)
return a pointer to the technology identified by given id string
static void CP_AddTechAsResearchable_f(void)
#define GEO_GetSelectedMission()
Header file for single player campaign control.
static void CP_EndGame_f(void)
static void CP_ChangeNationHappiness_f(void)
Changes nation happiness by given value.
technology_t * RS_GetTechForItem(const objDef_t *item)
Returns technology entry for an item.
nation_t * GEO_GetNation(const vec2_t pos)
Translate nation map color to nation.
const char *IMPORT * Cmd_Argv(int n)
Detailed information about the nation relationship (currently per month, but could be used elsewhere)...