mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-23 05:00:55 +01:00
[MIRROR] Converts SFX keys into DEFINES [MDB IGNORE] (#11990)
* Converts SFX keys into DEFINES * fixes and updates Co-authored-by: Gandalf <9026500+Gandalf2k15@users.noreply.github.com> Co-authored-by: John Doe <gamingskeleton3@gmail.com>
This commit is contained in:
co-authored by
Gandalf
John Doe
parent
db94ae41a9
commit
17e4f6ad76
@@ -183,7 +183,7 @@
|
||||
|
||||
if(!new_name)
|
||||
target_id_card.registered_name = null
|
||||
playsound(computer, "terminal_type", 50, FALSE)
|
||||
playsound(computer, SFX_TERMINAL_TYPE, 50, FALSE)
|
||||
target_id_card.update_label()
|
||||
// We had a name before and now we have no name, so this will unassign the card and we update the icon.
|
||||
if(old_name)
|
||||
@@ -198,7 +198,7 @@
|
||||
return TRUE
|
||||
|
||||
target_id_card.registered_name = new_name
|
||||
playsound(computer, "terminal_type", 50, FALSE)
|
||||
playsound(computer, SFX_TERMINAL_TYPE, 50, FALSE)
|
||||
target_id_card.update_label()
|
||||
// Card wasn't assigned before and now it is, so update the icon accordingly.
|
||||
if(!old_name)
|
||||
@@ -215,7 +215,7 @@
|
||||
return TRUE
|
||||
|
||||
target_id_card.registered_age = new_age
|
||||
playsound(computer, "terminal_type", 50, FALSE)
|
||||
playsound(computer, SFX_TERMINAL_TYPE, 50, FALSE)
|
||||
return TRUE
|
||||
// Change assignment
|
||||
if("PRG_assign")
|
||||
@@ -223,14 +223,14 @@
|
||||
return TRUE
|
||||
var/new_asignment = sanitize(params["assignment"])
|
||||
target_id_card.assignment = new_asignment
|
||||
playsound(computer, "terminal_type", 50, FALSE)
|
||||
playsound(computer, SFX_TERMINAL_TYPE, 50, FALSE)
|
||||
target_id_card.update_label()
|
||||
return TRUE
|
||||
// Add/remove access.
|
||||
if("PRG_access")
|
||||
if(!computer || !authenticated_card || !target_id_card)
|
||||
return TRUE
|
||||
playsound(computer, "terminal_type", 50, FALSE)
|
||||
playsound(computer, SFX_TERMINAL_TYPE, 50, FALSE)
|
||||
var/access_type = params["access_target"]
|
||||
var/try_wildcard = params["access_wildcard"]
|
||||
if(!(access_type in valid_access))
|
||||
@@ -256,7 +256,7 @@
|
||||
if(!computer || !authenticated_card || !target_id_card)
|
||||
return TRUE
|
||||
|
||||
playsound(computer, "terminal_type", 50, FALSE)
|
||||
playsound(computer, SFX_TERMINAL_TYPE, 50, FALSE)
|
||||
var/template_name = params["name"]
|
||||
|
||||
if(!template_name)
|
||||
|
||||
@@ -124,7 +124,7 @@
|
||||
var/list/cameras = get_available_cameras()
|
||||
var/obj/machinery/camera/selected_camera = cameras[c_tag]
|
||||
camera_ref = WEAKREF(selected_camera)
|
||||
playsound(src, get_sfx("terminal_type"), 25, FALSE)
|
||||
playsound(src, get_sfx(SFX_TERMINAL_TYPE), 25, FALSE)
|
||||
|
||||
if(!selected_camera)
|
||||
return TRUE
|
||||
|
||||
Reference in New Issue
Block a user