Makes available ERT species a config option.

This commit is contained in:
PsiOmega
2015-03-08 15:41:54 +01:00
parent 44c7b2367a
commit 6749e09ead
3 changed files with 12 additions and 2 deletions

View File

@@ -184,6 +184,8 @@
var/starlight = 0 // Whether space turfs have ambient light or not
var/list/ert_species = list("Human")
/datum/configuration/New()
var/list/L = typesof(/datum/game_mode) - /datum/game_mode
for (var/T in L)
@@ -609,6 +611,10 @@
value = text2num(value)
config.starlight = value >= 0 ? value : 0
if("ert_species")
config.ert_species = text2list(value, ";")
if(!config.ert_species.len)
config.ert_species += "Human"
else
log_misc("Unknown setting in configuration: '[name]'")

View File

@@ -77,7 +77,7 @@ client/verb/JoinResponseTeam()
new_commando << "<b>As leader of the Emergency Response Team, you answer only to CentComm, and have authority to override the Captain where it is necessary to achieve your mission goals. It is recommended that you attempt to cooperate with the captain where possible, however."
// By setting an explicit location the mob cannot wander off and decide change appearance elsewhere
new_commando.change_appearance(APPEARANCE_ALL, new_commando.loc, new_commando, species_whitelist = list("Human", "Unathi", "Tajara"))
new_commando.change_appearance(APPEARANCE_ALL, new_commando.loc, new_commando, species_whitelist = config.ert_species)
return

View File

@@ -322,5 +322,9 @@ EVENT_CUSTOM_START_MAJOR 80;100
## Uncomment to disable respawning by default.
#DISABLE_RESPAWN
## Strength of ambient star light. Set to 0 or less to turn off.
## Strength of ambient star light. Set to 0 or less to turn off. A value of 1 is unlikely to have a noticeable effect in most lightning systems.
STARLIGHT 0
## Defines which races are allowed to join as ERT, in singular form. If unset, defaults to only human. Casing matters, separate using ;
## Example races include: Human, Tajara, Skrell, Unathi
# ERT_SPECIES Human;Skrell;Unathi