here we go again (#2456)
This commit is contained in:
@@ -4,8 +4,8 @@
|
||||
icon_screen = "security"
|
||||
icon_keyboard = "security_key"
|
||||
req_one_access = list(ACCESS_SECURITY, ACCESS_FORENSICS_LOCKERS)
|
||||
circuit = /obj/item/weapon/circuitboard/computer/secure_data
|
||||
var/obj/item/weapon/card/id/scan = null
|
||||
circuit = /obj/item/circuitboard/computer/secure_data
|
||||
var/obj/item/card/id/scan = null
|
||||
var/authenticated = null
|
||||
var/rank = null
|
||||
var/screen = null
|
||||
@@ -35,7 +35,7 @@
|
||||
clockwork = TRUE //it'd look weird
|
||||
|
||||
/obj/machinery/computer/secure_data/attackby(obj/item/O, mob/user, params)
|
||||
if(istype(O, /obj/item/weapon/card/id))
|
||||
if(istype(O, /obj/item/card/id))
|
||||
if(!scan)
|
||||
if(!user.drop_item())
|
||||
return
|
||||
@@ -175,11 +175,11 @@
|
||||
if(3)
|
||||
dat += "<font size='4'><b>Security Record</b></font><br>"
|
||||
if(istype(active1, /datum/data/record) && GLOB.data_core.general.Find(active1))
|
||||
if(istype(active1.fields["photo_front"], /obj/item/weapon/photo))
|
||||
var/obj/item/weapon/photo/P1 = active1.fields["photo_front"]
|
||||
if(istype(active1.fields["photo_front"], /obj/item/photo))
|
||||
var/obj/item/photo/P1 = active1.fields["photo_front"]
|
||||
user << browse_rsc(P1.img, "photo_front")
|
||||
if(istype(active1.fields["photo_side"], /obj/item/weapon/photo))
|
||||
var/obj/item/weapon/photo/P2 = active1.fields["photo_side"]
|
||||
if(istype(active1.fields["photo_side"], /obj/item/photo))
|
||||
var/obj/item/photo/P2 = active1.fields["photo_side"]
|
||||
user << browse_rsc(P2.img, "photo_side")
|
||||
dat += {"<table><tr><td><table>
|
||||
<tr><td>Name:</td><td><A href='?src=\ref[src];choice=Edit Field;field=name'> [active1.fields["name"]] </A></td></tr>
|
||||
@@ -310,7 +310,7 @@ What a mess.*/
|
||||
scan = null
|
||||
else
|
||||
var/obj/item/I = usr.get_active_held_item()
|
||||
if(istype(I, /obj/item/weapon/card/id))
|
||||
if(istype(I, /obj/item/card/id))
|
||||
if(!usr.drop_item())
|
||||
return
|
||||
I.loc = src
|
||||
@@ -336,7 +336,7 @@ What a mess.*/
|
||||
authenticated = usr.client.holder.admin_signature
|
||||
rank = "Central Command"
|
||||
screen = 1
|
||||
else if(istype(scan, /obj/item/weapon/card/id))
|
||||
else if(istype(scan, /obj/item/card/id))
|
||||
active1 = null
|
||||
active2 = null
|
||||
if(check_access(scan))
|
||||
@@ -369,7 +369,7 @@ What a mess.*/
|
||||
GLOB.data_core.securityPrintCount++
|
||||
playsound(loc, 'sound/items/poster_being_created.ogg', 100, 1)
|
||||
sleep(30)
|
||||
var/obj/item/weapon/paper/P = new /obj/item/weapon/paper( loc )
|
||||
var/obj/item/paper/P = new /obj/item/paper( loc )
|
||||
P.info = "<CENTER><B>Security Record - (SR-[GLOB.data_core.securityPrintCount])</B></CENTER><BR>"
|
||||
if((istype(active1, /datum/data/record) && GLOB.data_core.general.Find(active1)))
|
||||
P.info += text("Name: [] ID: []<BR>\nSex: []<BR>\nAge: []<BR>", active1.fields["name"], active1.fields["id"], active1.fields["sex"], active1.fields["age"])
|
||||
@@ -451,8 +451,8 @@ What a mess.*/
|
||||
printing = 1
|
||||
sleep(30)
|
||||
if((istype(active1, /datum/data/record) && GLOB.data_core.general.Find(active1)))//make sure the record still exists.
|
||||
var/obj/item/weapon/photo/photo = active1.fields["photo_front"]
|
||||
new /obj/item/weapon/poster/wanted(src.loc, photo.img, wanted_name, info)
|
||||
var/obj/item/photo/photo = active1.fields["photo_front"]
|
||||
new /obj/item/poster/wanted(src.loc, photo.img, wanted_name, info)
|
||||
printing = 0
|
||||
|
||||
//RECORD DELETE
|
||||
@@ -610,8 +610,8 @@ What a mess.*/
|
||||
active1.fields["species"] = t1
|
||||
if("show_photo_front")
|
||||
if(active1.fields["photo_front"])
|
||||
if(istype(active1.fields["photo_front"], /obj/item/weapon/photo))
|
||||
var/obj/item/weapon/photo/P = active1.fields["photo_front"]
|
||||
if(istype(active1.fields["photo_front"], /obj/item/photo))
|
||||
var/obj/item/photo/P = active1.fields["photo_front"]
|
||||
P.show(usr)
|
||||
if("upd_photo_front")
|
||||
var/icon/photo = get_photo(usr)
|
||||
@@ -620,8 +620,8 @@ What a mess.*/
|
||||
active1.fields["photo_front"] = photo
|
||||
if("show_photo_side")
|
||||
if(active1.fields["photo_side"])
|
||||
if(istype(active1.fields["photo_side"], /obj/item/weapon/photo))
|
||||
var/obj/item/weapon/photo/P = active1.fields["photo_side"]
|
||||
if(istype(active1.fields["photo_side"], /obj/item/photo))
|
||||
var/obj/item/photo/P = active1.fields["photo_side"]
|
||||
P.show(usr)
|
||||
if("upd_photo_side")
|
||||
var/icon/photo = get_photo(usr)
|
||||
@@ -737,14 +737,14 @@ What a mess.*/
|
||||
return
|
||||
|
||||
/obj/machinery/computer/secure_data/proc/get_photo(mob/user)
|
||||
var/obj/item/weapon/photo/P = null
|
||||
var/obj/item/photo/P = null
|
||||
if(issilicon(user))
|
||||
var/mob/living/silicon/tempAI = user
|
||||
var/datum/picture/selection = tempAI.GetPhoto()
|
||||
if(selection)
|
||||
P = new()
|
||||
P.photocreate(selection.fields["icon"], selection.fields["img"], selection.fields["desc"])
|
||||
else if(istype(user.get_active_held_item(), /obj/item/weapon/photo))
|
||||
else if(istype(user.get_active_held_item(), /obj/item/photo))
|
||||
P = user.get_active_held_item()
|
||||
return P
|
||||
|
||||
|
||||
Reference in New Issue
Block a user