mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 10:43:20 +00:00
[MIRROR] fix the modify robot admin section for the ert channel (#9051)
Co-authored-by: Heroman3003 <31296024+Heroman3003@users.noreply.github.com> Co-authored-by: CHOMPStation2 <chompsation2@gmail.com>
This commit is contained in:
@@ -165,7 +165,7 @@
|
|||||||
target.crisis_override = !target.crisis_override
|
target.crisis_override = !target.crisis_override
|
||||||
return TRUE
|
return TRUE
|
||||||
if("add_restriction")
|
if("add_restriction")
|
||||||
target.restrict_modules_to += params["new_restriction"]
|
target.restrict_modules_to |= params["new_restriction"]
|
||||||
return TRUE
|
return TRUE
|
||||||
if("remove_restriction")
|
if("remove_restriction")
|
||||||
target.restrict_modules_to -= params["rem_restriction"]
|
target.restrict_modules_to -= params["rem_restriction"]
|
||||||
|
|||||||
@@ -229,7 +229,7 @@
|
|||||||
var/selected_radio_channel = tgui_input_list(usr, "Please select the radio channel to add", "Channels", available_channels)
|
var/selected_radio_channel = tgui_input_list(usr, "Please select the radio channel to add", "Channels", available_channels)
|
||||||
if(!selected_radio_channel || selected_radio_channel == "Cancel")
|
if(!selected_radio_channel || selected_radio_channel == "Cancel")
|
||||||
break
|
break
|
||||||
if(selected_radio_channel == CHANNEL_SPECIAL_OPS)
|
if(selected_radio_channel == CHANNEL_SPECIAL_OPS || selected_radio_channel == CHANNEL_RESPONSE_TEAM)
|
||||||
target.radio.centComm = 1
|
target.radio.centComm = 1
|
||||||
if(selected_radio_channel == CHANNEL_RAIDER)
|
if(selected_radio_channel == CHANNEL_RAIDER)
|
||||||
qdel(target.radio.keyslot)
|
qdel(target.radio.keyslot)
|
||||||
@@ -249,7 +249,7 @@
|
|||||||
var/selected_radio_channel = tgui_input_list(usr, "Please select the radio channel to remove", "Channels", target.radio.channels)
|
var/selected_radio_channel = tgui_input_list(usr, "Please select the radio channel to remove", "Channels", target.radio.channels)
|
||||||
if(!selected_radio_channel || selected_radio_channel == "Cancel")
|
if(!selected_radio_channel || selected_radio_channel == "Cancel")
|
||||||
break
|
break
|
||||||
if(selected_radio_channel == CHANNEL_SPECIAL_OPS)
|
if(selected_radio_channel == CHANNEL_SPECIAL_OPS || selected_radio_channel == CHANNEL_RESPONSE_TEAM && !(target.module.channels[CHANNEL_SPECIAL_OPS] || target.module.channels[CHANNEL_RESPONSE_TEAM]))
|
||||||
target.radio.centComm = 0
|
target.radio.centComm = 0
|
||||||
target.module.channels -= selected_radio_channel
|
target.module.channels -= selected_radio_channel
|
||||||
if((selected_radio_channel == CHANNEL_MERCENARY || selected_radio_channel == CHANNEL_RAIDER) && !(target.module.channels[CHANNEL_RAIDER] || target.module.channels[CHANNEL_MERCENARY]))
|
if((selected_radio_channel == CHANNEL_MERCENARY || selected_radio_channel == CHANNEL_RAIDER) && !(target.module.channels[CHANNEL_RAIDER] || target.module.channels[CHANNEL_MERCENARY]))
|
||||||
|
|||||||
Reference in New Issue
Block a user