Fixes some issues with TGUI Alerts, and Text Input (#24282)

* Well... maybe that's not better way

* PDA and all_channels encryptionkey

* Alert fixes

* Bad style
This commit is contained in:
Aylong
2024-02-24 18:28:26 +00:00
committed by GitHub
parent a44f9ca128
commit 329398b4f0
27 changed files with 62 additions and 73 deletions
@@ -50,7 +50,7 @@
var/obj/structure/elite_tumor/T = target
if(T.mychild == src && T.activity == TUMOR_PASSIVE)
var/response = tgui_alert(src, "Re-enter the tumor?", "Despawn yourself?", list("Yes", "No"))
if(response == "No" || QDELETED(src) || !Adjacent(T))
if(response != "Yes" || QDELETED(src) || !Adjacent(T))
return
T.clear_activator(src)
T.mychild = null
@@ -33,7 +33,7 @@
return
if(error_on_humanize == "")
var/spider_ask = tgui_alert(user, humanize_prompt, "Join as Terror Spider?", list("Yes", "No"))
if(spider_ask == "No" || !src || QDELETED(src))
if(spider_ask != "Yes" || !src || QDELETED(src))
return
else
to_chat(user, "Cannot inhabit spider: [error_on_humanize]")