mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-07-11 07:58:57 +01:00
Adds access requirements to the cloning computer (#7040)
* Adds access to the cloning computer. * Adds changelog too.
This commit is contained in:
@@ -53,7 +53,7 @@
|
||||
selection_color = "#FF97D1"
|
||||
economic_modifier = 7
|
||||
access = list(access_medical, access_medical_equip, access_morgue, access_surgery, access_pharmacy, access_virology, access_genetics, access_eva)
|
||||
minimal_access = list(access_medical, access_medical_equip, access_morgue, access_surgery, access_eva)
|
||||
minimal_access = list(access_medical, access_medical_equip, access_morgue, access_surgery, access_genetics, access_eva)
|
||||
alt_titles = list("Surgeon","Emergency Physician","Nurse")
|
||||
outfit = /datum/outfit/job/doctor
|
||||
alt_outfits = list(
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
icon_screen = "dna"
|
||||
light_color = "#315ab4"
|
||||
circuit = /obj/item/weapon/circuitboard/cloning
|
||||
req_access = list(access_heads) //Only used for record deletion right now.
|
||||
req_access = list(access_genetics)
|
||||
var/obj/machinery/dna_scannernew/scanner = null //Linked scanner. For scanning.
|
||||
var/list/pods = list() //Linked cloning pods.
|
||||
var/temp = ""
|
||||
@@ -104,6 +104,10 @@
|
||||
return attack_hand(user)
|
||||
|
||||
/obj/machinery/computer/cloning/attack_hand(mob/user as mob)
|
||||
if(!allowed(user))
|
||||
to_chat(user, "<span class='warning'>Access Denied.</span>")
|
||||
return
|
||||
|
||||
user.set_machine(src)
|
||||
add_fingerprint(user)
|
||||
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
author: Alberyk
|
||||
|
||||
delete-after: True
|
||||
|
||||
changes:
|
||||
- tweak: "The cloning computer now requires proper access before being accessed."
|
||||
Reference in New Issue
Block a user