Fixes Hacking of NIFSoft Vendor

Hacking the NIFSoft vendor by pulsing the ID scan wire now behaves like other vendors, allowing you to unlock ID restriction on the various NIFSofts.

Issue & solution documented in #1761
This commit is contained in:
KasparoVy
2020-04-15 17:48:54 -04:00
parent c3d406a47c
commit a47693dfa7

View File

@@ -139,7 +139,7 @@
if(initial(path.access))
var/list/soft_access = list(initial(path.access))
var/list/usr_access = usr.GetAccess()
if(!has_access(soft_access, list(), usr_access) && !emagged)
if(scan_id && !has_access(soft_access, list(), usr_access) && !emagged)
to_chat(usr, "<span class='warning'>You aren't authorized to buy [initial(path.name)].</span>")
flick("[icon_state]-deny",entopic.my_image)
return