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:
committed by
CitadelStationBot
parent
c579d81f4c
commit
46976c4cab
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user