Holowarrants

This commit is contained in:
Shadow
2020-02-20 15:48:21 -06:00
parent 49b727720f
commit b95c2261b2
3 changed files with 18 additions and 4 deletions

View File

@@ -39,13 +39,15 @@
/obj/item/device/holowarrant/attackby(obj/item/weapon/W, mob/user)
if(active)
var/obj/item/weapon/card/id/I = W.GetIdCard()
if(I)
if(access_hos in I.access) // VOREStation edit
var/choice = alert(user, "Would you like to authorize this warrant?","Warrant authorization","Yes","No")
if(choice == "Yes")
active.fields["auth"] = "[I.registered_name] - [I.assignment ? I.assignment : "(Unknown)"]"
user.visible_message("<span class='notice'>You swipe \the [I] through the [src].</span>", \
"<span class='notice'>[user] swipes \the [I] through the [src].</span>")
return 1
to_chat(user, "<span class='warning'>You don't have the access to do this!</span>") // VOREStation edit
return 1
..()
//hit other people with it
@@ -108,3 +110,12 @@
</BODY></HTML>
"}
show_browser(user, output, "window=Search warrant for [active.fields["namewarrant"]]")
/obj/item/weapon/storage/box/holowarrants // VOREStation addition starts
name = "holowarrant devices"
desc = "A box of holowarrant diplays for security use."
/obj/item/weapon/storage/box/holowarrants/New()
..()
for(var/i = 0 to 3)
new /obj/item/device/holowarrant(src) // VOREStation addition ends

View File

@@ -90,7 +90,7 @@ var/warrant_uid = 0
W.fields["auth"] = "Unauthorized"
W.fields["arrestsearch"] = "arrest"
if(temp == "search")
W.fields["namewarrant"] = "No location given"
W.fields["namewarrant"] = "No suspect/location given" // VOREStation edit
W.fields["charges"] = "No reason given"
W.fields["auth"] = "Unauthorized"
W.fields["arrestsearch"] = "search"
@@ -135,7 +135,9 @@ var/warrant_uid = 0
if(href_list["editwarrantauth"])
. = 1
if(!(access_hos in I.access)) // VOREStation edit begin
to_chat(user, "<span class='warning'>You don't have the access to do this!</span>")
return // VOREStation edit end
activewarrant.fields["auth"] = "[I.registered_name] - [I.assignment ? I.assignment : "(Unknown)"]"
if(href_list["back"])

View File

@@ -4617,6 +4617,7 @@
icon_state = "camera";
dir = 5
},
/obj/item/weapon/storage/box/holowarrants,
/turf/simulated/floor/tiled/dark,
/area/security/security_equiptment_storage)
"hD" = (