/
general_configuration.dm
134 lines (130 loc) · 6.12 KB
/
general_configuration.dm
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
/// Config holder for all general/misc things
/datum/configuration_section/general_configuration
/// Server name for the BYOND hub
var/server_name = "Paradise Station"
/// Tagline for the hub entry
var/server_tag_line = "The perfect mix of RP & action"
/// Server features in a newline
var/server_features = "Medium RP, varied species/jobs"
/// Should bans be stored in the DB
var/use_database_bans = FALSE
/// Allow character OOC notes
var/allow_character_metadata = TRUE
/// Time in seconds for the pregame lobby
var/lobby_time = 240
/// Ban all Guest BYOND accounts
var/guest_ban = TRUE
/// Allow players to use AntagHUD?
var/allow_antag_hud = TRUE
/// Forbid players from rejoining if they use AntagHUD?
var/restrict_antag_hud_rejoin = TRUE
/// Enable respanws by default?
var/respawn_enabled = FALSE
/// Enable karma? Disable to lockout awarding and unlock everything
var/enable_karma = TRUE
/// Enable CID randomiser buster?
var/enabled_cid_randomiser_buster = FALSE
/// Forbid admins from posessing and flying the singulo round
var/forbid_singulo_possession = FALSE
/// Force open a PM window when replied to? This is very annoying
var/popup_admin_pm = FALSE
/// Announce holidays (christmas, halloween, etc etc)
var/allow_holidays = TRUE
/// Enable auto muting in all chat channels
var/enable_auto_mute = FALSE
/// Show a warning to players to make them accept touching an SSD
var/ssd_warning = TRUE
/// Allow ghosts to spin chairs round
var/ghost_interaction = FALSE
/// Enable/disable starlight to light up space
var/starlight = TRUE
/// Disable lobby music?
var/disable_lobby_music = FALSE
/// Disable a popup if 2 users are on the same CID?
var/disable_cid_warning_popup = FALSE
/// Amount of loadout points non-donors should get
var/base_loadout_points = 5
/// Respawnability loss penalty for eary cryoing (minutes)
var/cryo_penalty_period = 30
/// Enable OOC emojis?
var/enable_ooc_emoji = TRUE
/// Auto start the game if on a local test server
var/developer_express_start = FALSE
/// Minimum client build. Keep above 1421 due to exploits
var/minimum_client_build = 1421
/// Give a confirm button for the "Start Now" verb
var/start_now_confirmation = TRUE
/// BYOND account age threshold for first join alerts
var/byond_account_age_threshold = 3
/// Max CIDs a client can have history of before a warning is thrown
var/max_client_cid_history = 20
/// Enable automatic profiling to profile.json
var/enable_auto_profiler = TRUE
/// Auto disable OOC on roundstart?
var/auto_disable_ooc = TRUE
/// Do we want to allow bones to break?
var/breakable_bones = TRUE
/// Enable/disable revival pod plants
var/enable_revival_pod_plants = TRUE
/// Enable/disable cloning
var/enable_cloning = TRUE
/// Randomise shift time instead of it always being 12:00?
var/randomise_shift_time = TRUE
/// Enable night-shift lighting?
var/enable_night_shifts = TRUE
/// Cap for monkey cube monkey spawns
var/monkey_cube_cap = 32
/// Enable to make explosions react to obstacles instead of ignoring them
var/reactionary_explosions = TRUE
/// Bomb cap (Devastation) Other values will be calculated around this
var/bomb_cap = 20
/// Time for a brain to keep its spark of life (deciseconds)
var/revival_brain_life = 10 MINUTES
/// Enable random AI lawsets from the default=TRUE pool
var/random_ai_lawset = TRUE
/datum/configuration_section/general_configuration/load_data(list/data)
// Use the load wrappers here. That way the default isnt made 'null' if you comment out the config line
// A lot of bools
CONFIG_LOAD_BOOL(use_database_bans, data["use_database_bans"])
CONFIG_LOAD_BOOL(allow_character_metadata, data["allow_character_metadata"])
CONFIG_LOAD_BOOL(guest_ban, data["guest_ban"])
CONFIG_LOAD_BOOL(allow_antag_hud, data["allow_antag_hud"])
CONFIG_LOAD_BOOL(restrict_antag_hud_rejoin, data["restrict_antag_hud_rejoin"])
CONFIG_LOAD_BOOL(respawn_enabled, data["respawn_enabled"])
CONFIG_LOAD_BOOL(enable_karma, data["enable_karma"])
CONFIG_LOAD_BOOL(enabled_cid_randomiser_buster, data["enable_cid_randomiser_buster"])
CONFIG_LOAD_BOOL(forbid_singulo_possession, data["prevent_admin_singlo_possession"])
CONFIG_LOAD_BOOL(popup_admin_pm, data["popup_admin_pm"])
CONFIG_LOAD_BOOL(allow_holidays, data["allow_holidays"])
CONFIG_LOAD_BOOL(enable_auto_mute, data["enable_auto_mute"])
CONFIG_LOAD_BOOL(ssd_warning, data["ssd_warning"])
CONFIG_LOAD_BOOL(ghost_interaction, data["ghost_interaction"])
CONFIG_LOAD_BOOL(starlight, data["starlight"])
CONFIG_LOAD_BOOL(disable_lobby_music, data["disable_lobby_music"])
CONFIG_LOAD_BOOL(disable_cid_warning_popup, data["disable_cid_warning_popup"])
CONFIG_LOAD_BOOL(enable_ooc_emoji, data["enable_ooc_emoji"])
CONFIG_LOAD_BOOL(developer_express_start, data["developer_express_start"])
CONFIG_LOAD_BOOL(start_now_confirmation, data["start_now_confirmation"])
CONFIG_LOAD_BOOL(enable_auto_profiler, data["enable_auto_profiler"])
CONFIG_LOAD_BOOL(auto_disable_ooc, data["auto_disable_ooc"])
CONFIG_LOAD_BOOL(breakable_bones, data["breakable_bones"])
CONFIG_LOAD_BOOL(enable_revival_pod_plants, data["enable_revival_pod_plants"])
CONFIG_LOAD_BOOL(enable_cloning, data["enable_cloning"])
CONFIG_LOAD_BOOL(randomise_shift_time, data["randomise_shift_time"])
CONFIG_LOAD_BOOL(enable_night_shifts, data["enable_night_shifts"])
CONFIG_LOAD_BOOL(reactionary_explosions, data["reactionary_explosions"])
CONFIG_LOAD_BOOL(random_ai_lawset, data["random_ai_lawset"])
// Numbers
CONFIG_LOAD_NUM(lobby_time, data["lobby_time"])
CONFIG_LOAD_NUM(base_loadout_points, data["base_loadout_points"])
CONFIG_LOAD_NUM(cryo_penalty_period, data["cryo_penalty_period"])
CONFIG_LOAD_NUM(minimum_client_build, data["minimum_client_build"])
CONFIG_LOAD_NUM(byond_account_age_threshold, data["byond_account_age_threshold"])
CONFIG_LOAD_NUM(max_client_cid_history, data["max_client_cid_history"])
CONFIG_LOAD_NUM(monkey_cube_cap, data["monkey_cube_cap"])
CONFIG_LOAD_NUM(bomb_cap, data["bomb_cap"])
CONFIG_LOAD_NUM(revival_brain_life, data["revival_brain_life"])
// Strings
CONFIG_LOAD_STR(server_name, data["server_name"])
CONFIG_LOAD_STR(server_tag_line, data["server_tag_line"])
CONFIG_LOAD_STR(server_features, data["server_features"])