Skip to content

Commit

Permalink
Merge pull request tgstation#41993 from Carbonhell/catshills
Browse files Browse the repository at this point in the history
Add system for disabling creation of new felinid characters
  • Loading branch information
optimumtact authored Dec 26, 2018
2 parents 7bd4457 + 449bd89 commit 6907ac6
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 5 deletions.
4 changes: 4 additions & 0 deletions code/controllers/configuration/entries/game_options.dm
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,10 @@
key_mode = KEY_MODE_TEXT
value_mode = VALUE_MODE_FLAG

/datum/config_entry/keyed_list/roundstart_no_hard_check // Species contained in this list will not cause existing characters with no-longer-roundstart species set to be resetted to the human race.
key_mode = KEY_MODE_TEXT
value_mode = VALUE_MODE_FLAG

/datum/config_entry/flag/join_with_mutant_humans //players can pick mutant bodyparts for humans before joining the game

/datum/config_entry/flag/no_summon_guns //No
Expand Down
7 changes: 3 additions & 4 deletions code/modules/client/preferences.dm
Original file line number Diff line number Diff line change
Expand Up @@ -1237,7 +1237,7 @@ GLOBAL_LIST_EMPTY(preferences_datums)
features["mcolor"] = sanitize_hexcolor(new_mutantcolor)
else
to_chat(user, "<span class='danger'>Invalid color. Your color is not bright enough.</span>")

if("color_ethereal")
var/new_etherealcolor = input(user, "Choose your ethereal color", "Character Preference") as null|anything in GLOB.color_list_ethereal
if(new_etherealcolor)
Expand Down Expand Up @@ -1555,9 +1555,8 @@ GLOBAL_LIST_EMPTY(preferences_datums)
character.backbag = backbag

var/datum/species/chosen_species
if(!roundstart_checks || (pref_species.id in GLOB.roundstart_races))
chosen_species = pref_species.type
else
chosen_species = pref_species.type
if(!(pref_species.id in GLOB.roundstart_races) && !(pref_species.id in (CONFIG_GET(keyed_list/roundstart_no_hard_check))))
chosen_species = /datum/species/human
pref_species = new /datum/species/human
save_character()
Expand Down
1 change: 0 additions & 1 deletion code/modules/mob/living/carbon/human/species.dm
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@ GLOBAL_LIST_EMPTY(roundstart_races)
var/obj/item/organ/liver/mutantliver
var/obj/item/organ/stomach/mutantstomach
var/override_float = FALSE

///////////
// PROCS //
///////////
Expand Down
4 changes: 4 additions & 0 deletions config/game_options.txt
Original file line number Diff line number Diff line change
Expand Up @@ -454,6 +454,10 @@ ROUNDSTART_RACES ethereal

##-------------------------------------------------------------------------------------------

## Roundstart no-reset races
## Races defined here will not cause existing characters to be reset to human if they currently have a non-roundstart species defined.
#ROUNDSTART_NO_HARD_CHECK felinid

## Uncomment to give players the choice of joining as a human with mutant bodyparts before they join the game
#JOIN_WITH_MUTANT_HUMANS

Expand Down

0 comments on commit 6907ac6

Please sign in to comment.