mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 18:22:39 +00:00
Holowarrants
This commit is contained in:
@@ -39,13 +39,15 @@
|
|||||||
/obj/item/device/holowarrant/attackby(obj/item/weapon/W, mob/user)
|
/obj/item/device/holowarrant/attackby(obj/item/weapon/W, mob/user)
|
||||||
if(active)
|
if(active)
|
||||||
var/obj/item/weapon/card/id/I = W.GetIdCard()
|
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")
|
var/choice = alert(user, "Would you like to authorize this warrant?","Warrant authorization","Yes","No")
|
||||||
if(choice == "Yes")
|
if(choice == "Yes")
|
||||||
active.fields["auth"] = "[I.registered_name] - [I.assignment ? I.assignment : "(Unknown)"]"
|
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>", \
|
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>")
|
"<span class='notice'>[user] swipes \the [I] through the [src].</span>")
|
||||||
return 1
|
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
|
//hit other people with it
|
||||||
@@ -108,3 +110,12 @@
|
|||||||
</BODY></HTML>
|
</BODY></HTML>
|
||||||
"}
|
"}
|
||||||
show_browser(user, output, "window=Search warrant for [active.fields["namewarrant"]]")
|
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
|
||||||
@@ -90,7 +90,7 @@ var/warrant_uid = 0
|
|||||||
W.fields["auth"] = "Unauthorized"
|
W.fields["auth"] = "Unauthorized"
|
||||||
W.fields["arrestsearch"] = "arrest"
|
W.fields["arrestsearch"] = "arrest"
|
||||||
if(temp == "search")
|
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["charges"] = "No reason given"
|
||||||
W.fields["auth"] = "Unauthorized"
|
W.fields["auth"] = "Unauthorized"
|
||||||
W.fields["arrestsearch"] = "search"
|
W.fields["arrestsearch"] = "search"
|
||||||
@@ -135,7 +135,9 @@ var/warrant_uid = 0
|
|||||||
|
|
||||||
if(href_list["editwarrantauth"])
|
if(href_list["editwarrantauth"])
|
||||||
. = 1
|
. = 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)"]"
|
activewarrant.fields["auth"] = "[I.registered_name] - [I.assignment ? I.assignment : "(Unknown)"]"
|
||||||
|
|
||||||
if(href_list["back"])
|
if(href_list["back"])
|
||||||
|
|||||||
@@ -4617,6 +4617,7 @@
|
|||||||
icon_state = "camera";
|
icon_state = "camera";
|
||||||
dir = 5
|
dir = 5
|
||||||
},
|
},
|
||||||
|
/obj/item/weapon/storage/box/holowarrants,
|
||||||
/turf/simulated/floor/tiled/dark,
|
/turf/simulated/floor/tiled/dark,
|
||||||
/area/security/security_equiptment_storage)
|
/area/security/security_equiptment_storage)
|
||||||
"hD" = (
|
"hD" = (
|
||||||
|
|||||||
Reference in New Issue
Block a user