mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 18:53:06 +00:00
fixes computers eating cards
this commit :ea1060ac33added in machinery's attack_hand() proc, line 238 ``` if(!allowed(user)) user << "\red Access Denied." return 1 ``` to almost all machinery including computers, since they call this proc via their attack_hand() procs. allowed(user), see access.dm line 94, in turn only checks the user's hand and wear_id, NOT the card inside the machine, as different machines have different vars and systems handling how they can be accessed. instead of fixing the underlying problem, eject card verbs were added like this one :30385c2237this PR reverts that nonsense machinery addition and adds the shuttle_control access check where it belongs.
This commit is contained in:
@@ -235,10 +235,6 @@ Class Procs:
|
||||
|
||||
src.add_fingerprint(user)
|
||||
|
||||
if(!allowed(user))
|
||||
user << "\red Access Denied."
|
||||
return 1
|
||||
|
||||
var/area/A = get_area(src)
|
||||
A.master.powerupdate = 1
|
||||
|
||||
|
||||
Reference in New Issue
Block a user