Crossfire Server, Trunk  1.75.0
Misc global variables.

Macros

#define SPELL_MAPPINGS   206
 

Variables

EXTERN archetypeempty_archetype
 Nice to have fast access to it. More...
 
EXTERN int exiting
 True if the game is about to exit. More...
 
EXTERN char first_map_ext_path [MAX_BUF]
 Path used for per-race start maps. More...
 
EXTERN char first_map_path [MAX_BUF]
 The start-level. More...
 
EXTERN FILE * logfile
 Used by server/daemon.c. More...
 
EXTERN long nrofallowedstr
 Only used in malloc_info(). More...
 
EXTERN long nrofartifacts
 Only used in malloc_info(). More...
 
EXTERN long ob_count
 
int reopen_logfile
 
const char *const spell_mapping [SPELL_MAPPINGS]
 This table is only necessary to convert objects that existed before the spell object conversion to the new object. More...
 

Detailed Description

Macro Definition Documentation

◆ SPELL_MAPPINGS

#define SPELL_MAPPINGS   206

Definition at line 154 of file global.h.

Variable Documentation

◆ empty_archetype

EXTERN archetype* empty_archetype

Nice to have fast access to it.

Definition at line 149 of file global.h.

◆ exiting

EXTERN int exiting

True if the game is about to exit.

Definition at line 145 of file global.h.

◆ first_map_ext_path

EXTERN char first_map_ext_path[MAX_BUF]

Path used for per-race start maps.

Definition at line 151 of file global.h.

◆ first_map_path

EXTERN char first_map_path[MAX_BUF]

The start-level.

Definition at line 150 of file global.h.

◆ logfile

EXTERN FILE* logfile

Used by server/daemon.c.

Definition at line 143 of file global.h.

◆ nrofallowedstr

EXTERN long nrofallowedstr

Only used in malloc_info().

Definition at line 147 of file global.h.

◆ nrofartifacts

EXTERN long nrofartifacts

Only used in malloc_info().

Definition at line 146 of file global.h.

◆ ob_count

EXTERN long ob_count

Definition at line 153 of file global.h.

◆ reopen_logfile

int reopen_logfile

Definition at line 27 of file logger.cpp.

Referenced by LOG(), and rec_sighup().

◆ spell_mapping

const char* const spell_mapping[SPELL_MAPPINGS]

This table is only necessary to convert objects that existed before the spell object conversion to the new object.

It was not practical to go through every mapping looking for every potion, rod, wand, etc that had a sp set and update to the new value. So this maps the old spell numbers to the name of the new archs. If you are adding a new spell, you should not modify this - your new spell won't have been used, and thus won't have any legacy object. NULL entries in this table are valid - to denote objects that should not be updated for whatever reason.

Todo:
is this still required? it's used, but can it happen?

Definition at line 74 of file object.cpp.

Referenced by fix_generated_item().