From 16bf959cd60a79fe906ad7e64574e4a77bd80517 Mon Sep 17 00:00:00 2001 From: rom Date: Mon, 26 Apr 2021 21:45:31 +0200 Subject: peaceful --- scenes/introduction/check_mail.gd | 2 +- scenes/introduction/check_mail.tscn | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'scenes/introduction') diff --git a/scenes/introduction/check_mail.gd b/scenes/introduction/check_mail.gd index 6d03cce..1ff4172 100644 --- a/scenes/introduction/check_mail.gd +++ b/scenes/introduction/check_mail.gd @@ -12,7 +12,7 @@ func login(): get_tree().change_scene("res://scenes/introduction/mail.tscn") func check_pw(): - if passwordfield.text == correct: + if passwordfield.text == correct or Settings.difficulty == Settings.Difficulty.PEACEFUL: login() else: if passwordfield.text == "deeper" or trys == 5: diff --git a/scenes/introduction/check_mail.tscn b/scenes/introduction/check_mail.tscn index 6f6c1e2..ee9f29c 100644 --- a/scenes/introduction/check_mail.tscn +++ b/scenes/introduction/check_mail.tscn @@ -107,6 +107,7 @@ text = "Too many trys. Password was reset to \"tom\"" __meta__ = { "_edit_use_anchors_": false } + [connection signal="text_changed" from="password" to="." method="_on_password_text_changed"] [connection signal="text_entered" from="password" to="." method="_on_password_text_entered"] [connection signal="on_click" from="Log in" to="." method="_on_Log_in_on_click"] -- cgit