mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 10:43:20 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user