Fixes halloween candy bowls (#9333)

This commit is contained in:
Guti
2024-10-27 20:03:03 +01:00
committed by GitHub
parent 92b668dab9
commit d3ef54d8e9

View File

@@ -84,8 +84,11 @@
searching = TRUE
if(!do_after(user, 5 SECONDS))
searching = FALSE
return
searching = FALSE
if(treated[user.ckey])
var/choice = tgui_alert(user, "You already took one! Take more?", "Take another...", list("Reach in...", "Leave it!"))
if(choice == "Reach in...")
@@ -99,8 +102,6 @@
thegoods = pick(candy)
treated[user.ckey] = TRUE
searching = FALSE
var/goodie = new thegoods(src)
user.put_in_hands(goodie)