mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 02:09:41 +00:00
Holowarrants
This commit is contained in:
@@ -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
|
||||
@@ -107,4 +109,13 @@
|
||||
Vessel or habitat: _<u>[using_map.station_name]</u>____</br>
|
||||
</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["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"])
|
||||
|
||||
@@ -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" = (
|
||||
|
||||
Reference in New Issue
Block a user