diff --git a/code/game/objects/items/devices/holowarrant.dm b/code/game/objects/items/devices/holowarrant.dm index 36a13a6bec..bcf456126e 100644 --- a/code/game/objects/items/devices/holowarrant.dm +++ b/code/game/objects/items/devices/holowarrant.dm @@ -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("You swipe \the [I] through the [src].", \ "[user] swipes \the [I] through the [src].") return 1 + to_chat(user, "You don't have the access to do this!") // VOREStation edit + return 1 ..() //hit other people with it @@ -107,4 +109,13 @@ Vessel or habitat: _[using_map.station_name]____
"} - show_browser(user, output, "window=Search warrant for [active.fields["namewarrant"]]") \ No newline at end of file + 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 \ No newline at end of file diff --git a/code/modules/modular_computers/file_system/programs/security/digitalwarrant.dm b/code/modules/modular_computers/file_system/programs/security/digitalwarrant.dm index 28ca1b73f5..597065d27b 100644 --- a/code/modules/modular_computers/file_system/programs/security/digitalwarrant.dm +++ b/code/modules/modular_computers/file_system/programs/security/digitalwarrant.dm @@ -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, "You don't have the access to do this!") + return // VOREStation edit end activewarrant.fields["auth"] = "[I.registered_name] - [I.assignment ? I.assignment : "(Unknown)"]" if(href_list["back"]) diff --git a/maps/tether/tether-07-station3.dmm b/maps/tether/tether-07-station3.dmm index 93611024bf..7ab80b557f 100644 --- a/maps/tether/tether-07-station3.dmm +++ b/maps/tether/tether-07-station3.dmm @@ -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" = (