fix some bad tgui handling (#18651)

* fix some bad tgui handling

* .
This commit is contained in:
Kashargul
2025-10-19 22:46:49 +02:00
committed by GitHub
parent 712bb19ed8
commit 285120696b
+2 -2
View File
@@ -604,12 +604,12 @@
return
var/confirmitemtf = tgui_alert(user, "Would you like to allow others to turn you into an item upon claiming you if they choose to?", "Confirm Item TF Preference", list("Yes", "No"))
var/allowitemtf = FALSE
if(confirmitemtf != "No")
if(confirmitemtf == "Yes")
allowitemtf = TRUE
to_chat(user, span_warning("You are now a prize!"))
if(safety_ckey in sentientprizes_ckeys_list)
to_chat(user, span_warning("The SPASM beeps in an upset manner, you already have a collar!"))
return
to_chat(user, span_warning("You are now a prize!"))
sentientprizes_ckeys_list += user.ckey
var/obj/item/clothing/accessory/collar/casinosentientprize/C = new(src.loc)
C.sentientprizename = "[user.name]"