Skip to content

Commit

Permalink
Keycard authentication device now reqires two users to activate events (
Browse files Browse the repository at this point in the history
#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
<details>
<summary>Screenshots & Videos</summary>

Put screenshots and videos here with an empty line between the
screenshots and the `<details>` tags.

</details>


# Changelog
:cl:
fix: two persons are needed to activate red, ert and emergency acces
using cards
/:cl:

---------

Co-authored-by: vincibrv <[email protected]>
  • Loading branch information
cuberound and uuuuhuuuu authored Aug 16, 2024
1 parent 4f4fcf8 commit 88d3a63
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion code/modules/security_levels/keycard_authentication.dm
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 88d3a63

Please sign in to comment.