/obj/item/device/holowarrant name = "warrant projector" desc = "The practical paperwork replacement for the officer on the go." icon_state = "holowarrant" item_state = "flashtool" throwforce = 5 w_class = ITEMSIZE_SMALL throw_speed = 4 throw_range = 10 var/datum/data/record/warrant/active //look at it /obj/item/device/holowarrant/examine(mob/user) . = ..() if(active) . += "It's a holographic warrant for '[active.fields["namewarrant"]]'." if(in_range(user, src) || istype(user, /mob/observer/dead)) show_content(user) //Opens a browse window, not chatbox related else . += "You have to go closer if you want to read it." //hit yourself with it /obj/item/device/holowarrant/attack_self(mob/living/user as mob) active = null var/list/warrants = list() if(!isnull(data_core.general)) for(var/datum/data/record/warrant/W in data_core.warrants) warrants += W.fields["namewarrant"] if(warrants.len == 0) to_chat(user,"There are no warrants available") return var/temp temp = input(user, "Which warrant would you like to load?") as null|anything in warrants for(var/datum/data/record/warrant/W in data_core.warrants) if(W.fields["namewarrant"] == temp) active = W update_icon() /obj/item/device/holowarrant/attackby(obj/item/weapon/W, mob/user) if(active) var/obj/item/weapon/card/id/I = W.GetIdCard() 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 /obj/item/device/holowarrant/attack(mob/living/carbon/M as mob, mob/living/carbon/user as mob) user.visible_message("You show the warrant to [M].", \ "[user] holds up a warrant projector and shows the contents to [M].") M.examinate(src) /obj/item/device/holowarrant/update_icon() if(active) icon_state = "holowarrant_filled" else icon_state = "holowarrant" /obj/item/device/holowarrant/proc/show_content(mob/user, forceshow) if(!active) return if(active.fields["arrestsearch"] == "arrest") var/output = {"