mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-08-21 11:07:46 +01:00
rework access field access
This commit is contained in:
@@ -39,7 +39,7 @@
|
||||
/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
|
||||
if(access_hos in I.GetAccess()) // VOREStation edit
|
||||
var/choice = tgui_alert(user, "Would you like to authorize this warrant?","Warrant authorization",list("Yes","No"))
|
||||
if(choice == "Yes")
|
||||
active.fields["auth"] = "[I.registered_name] - [I.assignment ? I.assignment : "(Unknown)"]"
|
||||
|
||||
@@ -355,7 +355,7 @@
|
||||
/obj/item/weapon/card/id/event/attackby(obj/item/I as obj, var/mob/user)
|
||||
if(istype(I, /obj/item/weapon/card/id) && !accessset)
|
||||
var/obj/item/weapon/card/id/O = I
|
||||
access |= O.access
|
||||
access |= O.GetAccess()
|
||||
desc = I.desc
|
||||
rank = O.rank
|
||||
to_chat(user, "<span class='notice'>You copy the access from \the [I] to \the [src].</span>")
|
||||
|
||||
@@ -29,7 +29,7 @@
|
||||
if(!proximity) return
|
||||
if(istype(O, /obj/item/weapon/card/id))
|
||||
var/obj/item/weapon/card/id/I = O
|
||||
src.access |= I.access
|
||||
src.access |= I.GetAccess()
|
||||
if(player_is_antag(user.mind) || registered_user == user)
|
||||
to_chat(user, "<span class='notice'>The microscanner activates as you pass it over the ID, copying its access.</span>")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user