From 88d3a63048a7b53d2e39f9ea28b1b498ab8c3662 Mon Sep 17 00:00:00 2001 From: cuberound <122645057+cuberound@users.noreply.github.com> Date: Fri, 16 Aug 2024 21:41:26 +0200 Subject: [PATCH] Keycard authentication device now reqires two users to activate events (#6903) # About the pull request it is writen down that two are reqired to activate red and so on but one can swipe twice fast and it work. this fixes it # Explain why it's good for the game bugfix and has rp incentive to get second man to start redalert # Testing Photographs and Procedure
Screenshots & Videos Put screenshots and videos here with an empty line between the screenshots and the `
` tags.
# Changelog :cl: fix: two persons are needed to activate red, ert and emergency acces using cards /:cl: --------- Co-authored-by: vincibrv --- code/modules/security_levels/keycard_authentication.dm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/code/modules/security_levels/keycard_authentication.dm b/code/modules/security_levels/keycard_authentication.dm index 4b7cdd69a449..1a4881904801 100644 --- a/code/modules/security_levels/keycard_authentication.dm +++ b/code/modules/security_levels/keycard_authentication.dm @@ -36,8 +36,11 @@ if(active == 1) //This is not the device that made the initial request. It is the device confirming the request. if(event_source) + if(event_source.event_triggered_by == user) + user.visible_message(SPAN_DANGER("Your ID is rejected, as it is the one that triggered the event!")) + return event_source.confirmed = 1 - event_source.event_confirmed_by = usr + event_source.event_confirmed_by = user else if(screen == 2) event_triggered_by = usr broadcast_request() //This is the device making the initial event request. It needs to broadcast to other devices