Adds sanity check so you don't accidentally pop a fun balloon multiple times (#36720)

* Adds sanity check so you don't accidentally pop a fun balloon multiple times.

* Fuck it, probably better like this

* heck
This commit is contained in:
Dax Dupont
2018-03-26 21:22:03 +02:00
committed by CitadelStationBot
parent c579d81f4c
commit 46976c4cab

View File

@@ -34,10 +34,11 @@
/obj/effect/fun_balloon/attack_ghost(mob/user)
if(!user.client || !user.client.holder || popped)
return
switch(alert("Pop [src]?","Fun Balloon","Yes","No"))
if("Yes")
effect()
pop()
var/confirmation = alert("Pop [src]?","Fun Balloon","Yes","No")
if(confirmation == "Yes" && !popped)
popped = TRUE
effect()
pop()
/obj/effect/fun_balloon/sentience
name = "sentience fun balloon"