summaryrefslogtreecommitdiff
path: root/scenes/introduction
diff options
context:
space:
mode:
authorrom <romangraef@gmail.com>2021-04-26 21:45:31 +0200
committerrom <romangraef@gmail.com>2021-04-26 21:45:31 +0200
commit16bf959cd60a79fe906ad7e64574e4a77bd80517 (patch)
tree59b20568016840cbbd8fe2d5811d4563ad8835f5 /scenes/introduction
parentd44dfdce553254fed44c58a25fd4d5235fdc1326 (diff)
downloadldjam48-16bf959cd60a79fe906ad7e64574e4a77bd80517.tar.gz
ldjam48-16bf959cd60a79fe906ad7e64574e4a77bd80517.tar.bz2
ldjam48-16bf959cd60a79fe906ad7e64574e4a77bd80517.zip
peaceful
Diffstat (limited to 'scenes/introduction')
-rw-r--r--scenes/introduction/check_mail.gd2
-rw-r--r--scenes/introduction/check_mail.tscn1
2 files changed, 2 insertions, 1 deletions
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"]