Nukes reverse_direction() in favor of REVERSE_DIR define (#25550)

* same taste, twice the speed

* pain
This commit is contained in:
chuga-git
2024-06-06 03:18:48 +00:00
committed by GitHub
parent 854978fb7f
commit 66f18ffc74
16 changed files with 19 additions and 35 deletions
@@ -417,7 +417,7 @@
playsound(human_owner, 'sound/goonstation/items/hypo.ogg', 80, TRUE)
var/obj/item/telegraph_vial = new /obj/item/qani_laaca_telegraph(get_turf(owner))
var/turf/turf_we_throw_at = get_edge_target_turf(owner, reverse_direction(owner.dir))
var/turf/turf_we_throw_at = get_edge_target_turf(owner, REVERSE_DIR(owner.dir))
telegraph_vial.throw_at(turf_we_throw_at, 5, 1)
// Safety net in case the injection amount doesn't get reset. Apparently it happened to someone in a round.