mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2026-08-20 11:47:47 +01:00
The GPS on/off text was reversed and this fixes it. Along with a couple others. The largest "change" is the change of posessed to possessed (since it requires an actual file-name change.)
18 lines
834 B
Plaintext
18 lines
834 B
Plaintext
/obj/item/device/paicard/attackby(obj/item/weapon/W as obj, mob/user as mob)
|
|
var/obj/item/weapon/card/id/ID = W.GetID()
|
|
if(ID)
|
|
if (src.pai.idaccessible == 1)
|
|
switch(alert(user, "Do you wish to add access to [src] or remove access from [src]?",,"Add Access","Remove Access", "Cancel"))
|
|
if("Add Access")
|
|
src.pai.idcard.access |= ID.access
|
|
to_chat(user, "<span class='notice'>You add the access from the [W] to [src].</span>")
|
|
return
|
|
if("Remove Access")
|
|
src.pai.idcard.access = list()
|
|
to_chat(user, "<span class='notice'>You remove the access from [src].</span>")
|
|
return
|
|
if("Cancel")
|
|
return
|
|
else if (istype(W, /obj/item/weapon/card/id) && src.pai.idaccessible == 0)
|
|
to_chat(user, "<span class='notice'>[src] is not accepting access modifications at this time.</span>")
|
|
return |