Crossfire Server, Branches 1.12
R18729
|
#include <global.h>
int Settings::allow_broken_converters |
If set, converters will work even if price of generated item is higher than the price of converted items.
Definition at line 405 of file global.h.
Referenced by convert_item(), and load_settings().
int Settings::allow_denied_spells_writing |
If set, players can write spells they can't cast.
Definition at line 404 of file global.h.
Referenced by load_settings(), and write_scroll().
const char* Settings::archetypes |
Name of the archetypes file - libdir is prepended
Definition at line 338 of file global.h.
Referenced by cctk_init_std_archetypes(), init_environ(), load_archetypes(), and set_archetypes().
int Settings::argc |
Parameters that were passed to the program
Definition at line 331 of file global.h.
Referenced by server_main().
char** Settings::argv |
Only used by xio.c, so will go away at some time
Definition at line 332 of file global.h.
Referenced by server_main().
int Settings::armor_max_enchant |
Maximum number of times an armor can be enchanted
Definition at line 394 of file global.h.
Referenced by improve_armour(), and load_settings().
int Settings::armor_speed_improvement |
Speed improvement
Definition at line 397 of file global.h.
Referenced by improve_armour(), and load_settings().
uint8 Settings::armor_speed_linear |
If 1, speed improvement is linear, else exponantiel
Definition at line 398 of file global.h.
Referenced by improve_armour(), and load_settings().
uint8 Settings::armor_weight_linear |
If 1, weight reduction is linear, else exponantiel
Definition at line 396 of file global.h.
Referenced by improve_armour(), and load_settings().
int Settings::armor_weight_reduction |
Weight reduction per enchantment
Definition at line 395 of file global.h.
Referenced by improve_armour(), and load_settings().
uint8 Settings::balanced_stat_loss |
If true, Death stat depletion based on level etc
Definition at line 349 of file global.h.
Referenced by kill_player(), and load_settings().
uint8 Settings::casting_time |
It takes awhile to cast a spell
Definition at line 358 of file global.h.
Referenced by attack_ob_simple(), cast_spell(), clear_object(), load_settings(), process_events(), process_players1(), and rangetostring().
const char* Settings::confdir |
Configuration files
Definition at line 333 of file global.h.
Referenced by cfapi_system_directory(), checkbanned(), checkdm(), display_motd(), forbid_play(), init_experience(), init_startup(), load_settings(), metaserver2_init(), send_news(), send_rules(), and set_confdir().
uint8 Settings::create_home_portals |
If 1, can create portals in unique maps (apartments)
Definition at line 400 of file global.h.
Referenced by cast_create_town_portal(), and load_settings().
uint16 Settings::csport |
Port for new client/server
Definition at line 326 of file global.h.
Referenced by init_server(), metaserver2_init(), and set_csport().
uint8 Settings::daemonmode |
If true, detach and become daemon
Definition at line 330 of file global.h.
Referenced by init(), and set_daemon().
const char* Settings::datadir |
Read only data files
Definition at line 334 of file global.h.
Referenced by cctk_setdatadir(), cfapi_system_directory(), command_help(), compile_info(), create_pathname(), find_maps(), find_style(), help_topics(), i18n_init(), init_anim(), init_artifacts(), init_attackmess(), init_emergency_mappath(), init_environ(), init_formulae(), init_msgfile(), init_races(), init_regions(), load_archetypes(), load_materials(), load_treasures(), read_bmap_names(), read_client_images(), read_face_data(), read_smooth(), and set_datadir().
uint8 Settings::death_penalty_level |
How many levels worth of exp may be lost on one death
Definition at line 348 of file global.h.
Referenced by apply_death_exp_penalty(), and load_settings().
uint8 Settings::death_penalty_ratio |
Hhow much exp should be lost at death
Definition at line 347 of file global.h.
Referenced by apply_death_exp_penalty(), and load_settings().
LogLevel Settings::debug |
Default debugging level
Definition at line 327 of file global.h.
Referenced by command_debug(), LOG(), main(), set_debug(), set_mondebug(), and unset_debug().
char Settings::dm_mail[MAX_BUF] |
DM's Email address
Definition at line 369 of file global.h.
Referenced by init(), and load_settings().
const char* Settings::dumparg |
Additional argument for some dump functions
Definition at line 329 of file global.h.
Referenced by init_beforeplay(), and set_dumpmont().
uint8 Settings::dumpvalues |
Set to dump various values/tables
Definition at line 328 of file global.h.
Referenced by init_beforeplay(), set_dumpmon1(), set_dumpmon2(), set_dumpmon3(), set_dumpmon4(), set_dumpmon5(), set_dumpmon6(), set_dumpmon7(), set_dumpmon8(), set_dumpmon9(), and set_dumpmont().
char* Settings::emergency_mapname |
Map to return players to in emergency
Definition at line 388 of file global.h.
Referenced by enter_exit(), enter_player_savebed(), free_globals(), init_emergency_mappath(), kill_player(), and save_player().
uint16 Settings::emergency_x |
Definition at line 389 of file global.h.
Referenced by enter_exit(), enter_player_savebed(), init_emergency_mappath(), and kill_player().
uint16 Settings::emergency_y |
Coordinates to use on that map
Definition at line 389 of file global.h.
Referenced by enter_exit(), enter_player_savebed(), init_emergency_mappath(), and kill_player().
uint8 Settings::explore_mode |
Explore mode allowed?
Definition at line 361 of file global.h.
Referenced by command_explore(), and load_settings().
uint8 Settings::fastclock |
If true, clock goes warp 9
Definition at line 386 of file global.h.
Referenced by block_until_new_connection(), and load_settings().
float Settings::item_power_factor |
See note in setings file
Definition at line 392 of file global.h.
Referenced by apply_special(), improve_armour(), improve_weapon(), and load_settings().
const char* Settings::localdir |
Read/write data files
Definition at line 335 of file global.h.
Referenced by add_score(), cast_create_town_portal(), cfapi_system_directory(), check_login(), checkbanned(), command_banish(), command_players(), compile_info(), create_items_path(), create_overlay_pathname(), create_template_pathname(), dead_player(), delete_character(), display_high_score(), enter_exit(), enter_unique_map(), init_book_archive(), init_clocks(), init_environ(), is_legal_2ways_exit(), key_change_class(), key_confirm_quit(), read_map_log(), resurrect_player(), save_player(), set_localdir(), verify_player(), write_book_archive(), write_map_log(), and write_todclock().
int Settings::log_timestamp |
If set, log will comport a timestamp.
Definition at line 407 of file global.h.
Referenced by load_settings(), and LOG().
char* Settings::log_timestamp_format |
Format for timestap, if log_timestamp is set.
Definition at line 408 of file global.h.
Referenced by load_settings(), and LOG().
const char* Settings::logfilename |
Logfile to use
Definition at line 325 of file global.h.
Referenced by cctk_setlog(), compile_info(), init_globals(), LOG(), main(), set_daemon(), and set_logfile().
const char* Settings::mapdir |
Where the map files are
Definition at line 337 of file global.h.
Referenced by cfapi_system_directory(), create_overlay_pathname(), create_pathname(), find_maps(), init_emergency_mappath(), init_environ(), init_regions(), and set_mapdir().
sint16 Settings::max_level |
This is read out of exp_table
Definition at line 391 of file global.h.
Referenced by dragon_eat_flesh(), dump_experience(), fix_object(), init_experience(), level_exp(), player_lvl_adj(), query_cost(), and send_exp_table().
char Settings::meta_comment[MAX_BUF] |
Comment we send to the metaserver
Definition at line 378 of file global.h.
Referenced by load_settings(), and metaserver_update().
char Settings::meta_host[MAX_BUF] |
Hostname of this host
Definition at line 376 of file global.h.
Referenced by load_settings(), metaserver_init(), and metaserver_update().
unsigned int Settings::meta_on |
True if we should send updates
Definition at line 374 of file global.h.
Referenced by load_settings(), and metaserver_init().
uint16 Settings::meta_port |
Port number to use for updates
Definition at line 377 of file global.h.
Referenced by load_settings(), and metaserver_init().
char Settings::meta_server[MAX_BUF] |
Hostname/ip addr of the metaserver
Definition at line 375 of file global.h.
Referenced by load_settings(), and metaserver_init().
char Settings::motd[MAX_BUF] |
Name of the motd file
Definition at line 366 of file global.h.
Referenced by display_motd(), and load_settings().
const char* Settings::news |
uint8 Settings::no_player_stealing |
If 1, can not steal from other players
Definition at line 399 of file global.h.
Referenced by attempt_steal(), and load_settings().
uint8 Settings::not_permadeth |
If true, death is non-permament
Definition at line 350 of file global.h.
Referenced by kill_player(), and load_settings().
uint8 Settings::permanent_exp_ratio |
How much exp should be 'permenant' and unable to be lost
Definition at line 346 of file global.h.
Referenced by add_player_exp(), calc_perm_exp(), check_exp_loss(), load_settings(), and show_skills().
uint8 Settings::personalized_blessings |
If 1, blessed weapons get an owner and a willpower value
Definition at line 401 of file global.h.
Referenced by apply_special(), god_enchants_weapon(), and load_settings().
sint16 Settings::pk_luck_penalty |
Amount by which player luck is reduced if they PK
Definition at line 345 of file global.h.
Referenced by kill_object(), and load_settings().
sint64 Settings::pk_max_experience |
Maximum experience one can get for PKing. Ignore if negative.
Definition at line 402 of file global.h.
Referenced by kill_object(), and load_settings().
int Settings::pk_max_experience_percent |
Percentage of experience of victim the killer gets.
Definition at line 403 of file global.h.
Referenced by kill_object(), and load_settings().
const char* Settings::playerdir |
Where the player files are
Definition at line 336 of file global.h.
Referenced by cfapi_system_directory(), check_login(), command_players(), compile_info(), dead_player(), delete_character(), enter_unique_map(), init_environ(), key_change_class(), key_confirm_quit(), resurrect_player(), save_player(), set_playerdir(), and verify_player().
uint8 Settings::real_wiz |
Use mud-like wizards
Definition at line 359 of file global.h.
Referenced by command_abil(), command_addexp(), command_create(), command_nowiz(), command_patch(), load_settings(), pay_for_item(), and pick_up_object().
uint8 Settings::recycle_tmp_maps |
Re-use tmp maps.
Definition at line 360 of file global.h.
Referenced by clean_tmp_files(), load_settings(), and swap_map().
const char* Settings::regions |
Name of the regions file - libdir is prepended
Definition at line 339 of file global.h.
Referenced by init_regions(), and set_regions().
int Settings::reset_loc_time |
Number of seconds to put player back at home
Definition at line 352 of file global.h.
Referenced by check_login().
uint8 Settings::resurrection |
Ressurection possible w/ permadeth on
Definition at line 354 of file global.h.
Referenced by kill_player(), and load_settings().
const char* Settings::rules |
uint8 Settings::search_items |
Search_items command
Definition at line 355 of file global.h.
Referenced by check_login(), check_pick(), command_search_items(), fix_object(), and load_settings().
uint16 Settings::set_friendly_fire |
Percent of damage done by peaceful player vs player damage
Definition at line 363 of file global.h.
Referenced by hit_player(), and load_settings().
uint8 Settings::set_title |
Players can set thier title
Definition at line 353 of file global.h.
Referenced by check_login(), command_title(), key_confirm_quit(), kill_player(), load_settings(), and save_player().
uint8 Settings::simple_exp |
If true, use the simple experience system
Definition at line 351 of file global.h.
Referenced by calc_skill_exp(), kill_object(), and load_settings().
uint8 Settings::spell_encumbrance |
Encumbrance effects spells
Definition at line 356 of file global.h.
Referenced by fix_object(), and load_settings().
uint8 Settings::spell_failure_effects |
Nasty backlash to spell failures
Definition at line 357 of file global.h.
Referenced by cast_spell(), load_settings(), scroll_failure(), scroll_type_apply(), spell_failure(), and spellbook_type_apply().
uint8 Settings::spellpoint_level_depend |
Spell costs go up with level
Definition at line 362 of file global.h.
Referenced by load_settings(), and SP_level_spellpoint_cost().
uint8 Settings::stat_loss_on_death |
If true, chars lose a random stat when they die
Definition at line 344 of file global.h.
Referenced by kill_player(), and load_settings().
const char* Settings::templatedir |
Directory for the template map
Definition at line 342 of file global.h.
Referenced by create_template_pathname(), init_environ(), and set_templatedir().
const char* Settings::tmpdir |
Directory to use for temporary files
Definition at line 343 of file global.h.
Referenced by cfapi_system_directory(), compile_info(), init_environ(), save_map(), save_player(), and set_tmpdir().
const char* Settings::treasures |
Location of the treasures file.
Definition at line 340 of file global.h.
Referenced by cctk_init_std_archetypes(), init_environ(), load_treasures(), and set_treasures().
const char* Settings::uniquedir |
Directory for the unique items
Definition at line 341 of file global.h.
Referenced by cfapi_system_directory(), compile_info(), create_items_path(), init_environ(), and set_uniquedir().
char Settings::who_format[MAX_BUF] |
The format that the who command should use
Definition at line 364 of file global.h.
Referenced by list_players(), and load_settings().
char Settings::who_wiz_format[MAX_BUF] |
The format that the who command should use when called by a dm
Definition at line 365 of file global.h.
Referenced by list_players(), and load_settings().
uint32 Settings::worldmapstartx |
Starting x tile for the worldmap
Definition at line 380 of file global.h.
Referenced by command_loadtest(), and load_settings().
uint32 Settings::worldmapstarty |
Starting y tile for the worldmap
Definition at line 381 of file global.h.
Referenced by command_loadtest(), and load_settings().
uint32 Settings::worldmaptilesizex |
Number of squares wide in a wm tile
Definition at line 384 of file global.h.
Referenced by load_settings().
uint32 Settings::worldmaptilesizey |
Number of squares high in a wm tile
Definition at line 385 of file global.h.
Referenced by load_settings().
uint32 Settings::worldmaptilesx |
Number of tiles wide the worldmap is
Definition at line 382 of file global.h.
Referenced by command_loadtest(), and load_settings().
uint32 Settings::worldmaptilesy |
Number of tiles high the worldmap is
Definition at line 383 of file global.h.
Referenced by command_loadtest(), and load_settings().