From 41e79585ca4dfef699dc077e9f09043a4cfa3006 Mon Sep 17 00:00:00 2001
From: SatinIsle <98125273+SatinIsle@users.noreply.github.com>
Date: Sun, 28 Jul 2024 03:15:57 +0100
Subject: [PATCH] Fix for bluespace crackers (#16132)
Fixed Bluespace Crackers being able to be used more than once by sending multiple prompts to a target.
---
code/modules/vore/resizing/crackers.dm | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/code/modules/vore/resizing/crackers.dm b/code/modules/vore/resizing/crackers.dm
index b88a87cb2a7..8d718d379d7 100644
--- a/code/modules/vore/resizing/crackers.dm
+++ b/code/modules/vore/resizing/crackers.dm
@@ -43,6 +43,7 @@
if(target == user)
to_chat(user, "You can't pull \the [src] by yourself, that would just be sad!")
return
+ to_chat(user, "You offer \the [src] to \the [target] to pull and wait to see how whether they do.")
var/check_pull = tgui_alert(target, "\The [user] is offering to pull \the [src] with you, do you want to pull it?", "Pull Cracker", list("Yes", "No"))
if(check_pull == "No")
to_chat(user, "\The [target] chose not to pull \the [src]!")
@@ -50,6 +51,11 @@
if(!adjacent)
to_chat(user, "\The [target] is not standing close enough to pull \the [src]!")
return
+ var/obj/item/check_hand = user.get_active_hand()
+ if(check_hand != src)
+ to_chat(user, "\The [src] is no longer in-hand!")
+ to_chat(target, "\The [src] is no longer in-hand!")
+ return
var/prize = pick(prizes)
var/joke = pick(jokes)
var/mob/living/carbon/human/winner