From 264b72f91d9c4da2f176a5ef17603b8115b3e025 Mon Sep 17 00:00:00 2001
From: timothyteakettle <59849408+timothyteakettle@users.noreply.github.com>
Date: Wed, 9 Dec 2020 02:01:37 +0000
Subject: [PATCH] better verification
---
.../modules/mob/dead/new_player/new_player.dm | 77 ++++++++++++++++---
1 file changed, 68 insertions(+), 9 deletions(-)
diff --git a/code/modules/mob/dead/new_player/new_player.dm b/code/modules/mob/dead/new_player/new_player.dm
index a9be76494b..2fdbf01382 100644
--- a/code/modules/mob/dead/new_player/new_player.dm
+++ b/code/modules/mob/dead/new_player/new_player.dm
@@ -16,6 +16,9 @@
//Used to make sure someone doesn't get spammed with messages if they're ineligible for roles
var/ineligible_for_roles = FALSE
+ //is there a result we want to read from the age gate
+ var/age_gate_result
+
/mob/dead/new_player/Initialize()
if(client && SSticker.state == GAME_STATE_STARTUP)
var/obj/screen/splash/S = new(client, TRUE, TRUE)
@@ -78,25 +81,42 @@
popup.set_content(output)
popup.open(FALSE)
-/proc/age_gate(/mob/dead/new_player/plr)
+/mob/dead/new_player/proc/age_gate()
var/list/dat = list("
")
dat += "Enter your date of birth here, to confirm that you are over 18. "
dat += "Your date of birth is not saved, only the fact that you are over/under 18 is. "
dat += "