Merge pull request #8247 from Cerebulon/throwmode

Throw Mode QoL Tweaks
This commit is contained in:
MistakeNot4892
2021-09-03 15:36:57 +10:00
committed by GitHub
4 changed files with 56 additions and 31 deletions
+4 -6
View File
@@ -84,12 +84,10 @@
RestrainedClickOn(A)
return 1
if(in_throw_mode)
if(isturf(A) || isturf(A.loc))
throw_item(A)
trigger_aiming(TARGET_CAN_CLICK)
return 1
if(in_throw_mode && (isturf(A) || isturf(A.loc)) && throw_item(A))
trigger_aiming(TARGET_CAN_CLICK)
throw_mode_off()
return TRUE
var/obj/item/W = get_active_hand()
@@ -270,7 +268,7 @@
if(T && user.TurfAdjacent(T))
user.ToggleTurfTab(T)
return 1
/mob/proc/ToggleTurfTab(var/turf/T)
if(listed_turf == T)
listed_turf = null