Fix brainless Cyborg (#25100)

* Fix brainless Cyborg

* Give me my GBP!!!

* contra review & default value
This commit is contained in:
Aylong
2024-04-16 00:33:20 +00:00
committed by GitHub
parent 3c043374d1
commit da755f54d8
2 changed files with 7 additions and 6 deletions
@@ -855,15 +855,17 @@
organ = "kidneys"
var/new_state = tgui_input_list(user, "What state do you wish the organ to be in?", "[organ_name]", list("Normal", "Cybernetic"))
if(!new_state) return
if(!new_state)
return
switch(new_state)
if("Normal")
active_character.organ_data[organ] = null
if("Cybernetic")
active_character.organ_data[organ] = "cybernetic"
if("cyborg_brain_type")
var/brain_type = tgui_input_list(user, "What type of brain would you like to have as a cyborg?", "Cyborg Brain Type", GLOB.borg_brain_choices)
var/brain_type = tgui_input_list(user, "What type of brain would you like to have as a cyborg?", "Cyborg Brain Type", GLOB.borg_brain_choices, active_character.cyborg_brain_type)
if(!(brain_type in GLOB.borg_brain_choices))
return
active_character.cyborg_brain_type = brain_type
if("clientfps")
var/version_message