Updates get_edge_target_turf to work better with diagonals (#24154)

* my evil plan

* Apply suggestions from code review

Co-authored-by: DGamerL <108773801+DGamerL@users.noreply.github.com>

---------

Co-authored-by: DGamerL <108773801+DGamerL@users.noreply.github.com>
This commit is contained in:
Contrabang
2024-03-10 16:08:38 -04:00
committed by GitHub
parent e9cd4825a4
commit 31c7628660
2 changed files with 29 additions and 26 deletions
+1 -2
View File
@@ -209,8 +209,7 @@
T.visible_message("<span class='userdanger'>Unseen forces throw [user]!</span>")
user.Stun(12 SECONDS)
user.adjustBruteLoss(50)
var/throw_dir = GLOB.cardinal
var/atom/throw_target = get_edge_target_turf(user, throw_dir)
var/atom/throw_target = get_edge_target_turf(user, pick(GLOB.cardinal))
user.throw_at(throw_target, 200, 4)
if(8)
//Fueltank Explosion