mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-20 11:34:19 +01:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user