lore/contractor/background/character overhaul project (public branch edition) (#4488)

Co-authored-by: silicons <2003111+silicons@users.noreply.github.com>
Co-authored-by: Zandario <zandarioh@gmail.com>
Co-authored-by: VM_USER <VM_USER>
Co-authored-by: AlphaM01 <33434925+AlphaM01@users.noreply.github.com>
Co-authored-by: LordPapalus <54518057+LordPapalus@users.noreply.github.com>
This commit is contained in:
silicons
2022-11-09 01:57:00 -06:00
committed by GitHub
co-authored by Zandario VM_USER <VM_USER> AlphaM01 LordPapalus
parent 1f99f4b154
commit 28e11dee54
604 changed files with 9140 additions and 4230 deletions
@@ -62,8 +62,8 @@
data["state"] = current_status
data["isAI"] = issilicon(usr)
data["authenticated"] = get_authentication_level(user)
data["current_security_level"] = security_level
data["current_security_level_title"] = num2seclevel(security_level)
data["current_security_level"] = GLOB.security_level
data["current_security_level_title"] = num2seclevel(GLOB.security_level)
data["def_SEC_LEVEL_DELTA"] = SEC_LEVEL_DELTA
data["def_SEC_LEVEL_YELLOW"] = SEC_LEVEL_YELLOW
@@ -210,15 +210,15 @@
var/current_level = text2num(href_list["target"])
var/confirm = alert("Are you sure you want to change alert level to [num2seclevel(current_level)]?", name, "No", "Yes")
if(confirm == "Yes" && can_still_topic())
var/old_level = security_level
var/old_level = GLOB.security_level
if(!current_level) current_level = SEC_LEVEL_GREEN
if(current_level < SEC_LEVEL_GREEN) current_level = SEC_LEVEL_GREEN
if(current_level > SEC_LEVEL_BLUE) current_level = SEC_LEVEL_BLUE //Cannot engage delta with this
set_security_level(current_level)
if(security_level != old_level)
if(GLOB.security_level != old_level)
log_game("[key_name(usr)] has changed the security level to [get_security_level()].")
message_admins("[key_name_admin(usr)] has changed the security level to [get_security_level()].")
switch(security_level)
switch(GLOB.security_level)
if(SEC_LEVEL_GREEN)
feedback_inc("alert_comms_green",1)
if(SEC_LEVEL_YELLOW)
@@ -80,14 +80,14 @@
var/obj/item/uav/U = locate(href_list["switch_uav"]) //This is a \ref to the UAV itself
if(!istype(U))
to_chat(usr,"<span class='warning'>Something is blocking the connection to that UAV. In-person investigation is required.</span>")
return TOPIC_NOACTION
return PREFERENCES_NOACTION
if(!get_signal_to(U))
to_chat(usr,"<span class='warning'>The screen freezes for a moment, before returning to the UAV selection menu. It's not able to connect to that UAV.</span>")
return TOPIC_NOACTION
return PREFERENCES_NOACTION
set_current(U)
return TOPIC_REFRESH
return PREFERENCES_REFRESH
if(href_list["del_uav"])
var/refstring = href_list["del_uav"] //This is a \ref to the UAV itself
@@ -101,17 +101,17 @@
else if(href_list["view_uav"])
if(!current_uav)
return TOPIC_NOACTION
return PREFERENCES_NOACTION
if(current_uav.check_eye(user) < 0)
to_chat(usr,SPAN_WARNING("The screen freezes for a moment, before returning to the UAV selection menu. It's not able to connect to that UAV."))
else
viewing_uav(user) ? unlook(user) : look(user)
return TOPIC_NOACTION
return PREFERENCES_NOACTION
else if(href_list["power_uav"])
if(!current_uav)
return TOPIC_NOACTION
return PREFERENCES_NOACTION
else if(current_uav.toggle_power())
//Clean up viewers faster
if(LAZYLEN(viewers))
@@ -119,7 +119,7 @@
var/M = W.resolve()
if(M)
unlook(M)
return TOPIC_REFRESH
return PREFERENCES_REFRESH
/datum/nano_module/uav/proc/DefaultTopicState()
return global.default_state