From c563bba90448b68be589abd9fe1074308b7342d8 Mon Sep 17 00:00:00 2001 From: VerySoft Date: Thu, 1 Sep 2022 23:48:51 -0400 Subject: [PATCH] Makes it so you need to be inside to leave Mouse holes and micro_interact-able things, you need to be inside them to use their interaction prompt, so you aren't allowed to instantly teleport back to a tunnel for leaving the prompt open or whatever! --- code/game/objects/micro_structures.dm | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/code/game/objects/micro_structures.dm b/code/game/objects/micro_structures.dm index eaedc45645d..32955ed7720 100644 --- a/code/game/objects/micro_structures.dm +++ b/code/game/objects/micro_structures.dm @@ -54,11 +54,19 @@ var/choice = tgui_alert(user,"It's dark and gloomy in here. What would you like to do?","Tunnel",list("Exit", "Move", "Cancel")) switch(choice) if("Exit") + if(user.loc != src) + to_chat(user, "You can't do that unless you're in \the [src].") + return + user.forceMove(get_turf(src.loc)) user.cancel_camera() user.visible_message("\The [user] climbs out of \the [src]!") return if("Move") + if(user.loc != src) + to_chat(user, "You can't do that unless you're in \the [src].") + return + var/list/destinations = list() var/turf/myturf = get_turf(src.loc) var/datum/planet/planet @@ -239,12 +247,19 @@ var/choice = tgui_alert(usr,"What would you like to do?","[src]",list("Exit", "Move", "Cancel")) switch(choice) if("Exit") + if(usr.loc != src) + to_chat(usr, "You can't do that unless you're in \the [src].") + return + usr.forceMove(get_turf(src.loc)) usr.cancel_camera() usr.visible_message("\The [usr] climbs out of \the [src]!") return if("Move") + if(usr.loc != src) + to_chat(usr, "You can't do that unless you're in \the [src].") + return var/list/destinations = list() var/turf/myturf = get_turf(src.loc) for(var/obj/o in range(1,myturf))