mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-26 22:42:26 +01:00
Refactored directionals (#20082)
Refactored directionals, ported lists of directions from TG, got rid of useless proc to get the reverse direction.
This commit is contained in:
@@ -505,7 +505,7 @@
|
||||
if(H.mob_size <10)
|
||||
H.visible_message(SPAN_WARNING("\The [src] flies out of \the [H]'s' hand!"), SPAN_WARNING("\The [src] flies out of your hand!"))
|
||||
H.drop_item(src)
|
||||
src.throw_at(get_edge_target_turf(src, GLOB.reverse_dir[H.dir]), 4, 4)
|
||||
src.throw_at(get_edge_target_turf(src, REVERSE_DIR(H.dir)), 4, 4)
|
||||
|
||||
var/obj/item/organ/external/LH = H.get_organ(BP_L_HAND)
|
||||
var/obj/item/organ/external/RH = H.get_organ(BP_R_HAND)
|
||||
|
||||
@@ -88,7 +88,7 @@
|
||||
if(H.mob_size <10)
|
||||
H.visible_message(SPAN_WARNING("\The [src] flies out of \the [H]'s' hand!"), SPAN_WARNING("\The [src] flies out of your hand!"))
|
||||
H.drop_item(src)
|
||||
src.throw_at(get_edge_target_turf(src, GLOB.reverse_dir[H.dir]), 2, 2)
|
||||
src.throw_at(get_edge_target_turf(src, REVERSE_DIR(H.dir)), 2, 2)
|
||||
|
||||
/obj/item/gun/projectile/revolver/detective
|
||||
name = "antique revolver"
|
||||
|
||||
@@ -367,7 +367,7 @@
|
||||
if(H.mob_size <10)
|
||||
H.visible_message(SPAN_WARNING("\The [src] flies out of \the [H]'s' hand!"), SPAN_WARNING("\The [src] flies out of your hand!"))
|
||||
H.drop_item(src)
|
||||
src.throw_at(get_edge_target_turf(src, GLOB.reverse_dir[H.dir]), 4, 4)
|
||||
src.throw_at(get_edge_target_turf(src, REVERSE_DIR(H.dir)), 4, 4)
|
||||
|
||||
var/obj/item/organ/external/LH = H.get_organ(BP_L_HAND)
|
||||
var/obj/item/organ/external/RH = H.get_organ(BP_R_HAND)
|
||||
|
||||
@@ -129,7 +129,7 @@
|
||||
if(H.mob_size < 10 && !has_online_rig) // smaller than an unathi
|
||||
H.visible_message(SPAN_WARNING("\The [src] goes flying out of \the [H]'s hand!"), SPAN_WARNING("\The [src] flies out of your hand!"))
|
||||
H.drop_item(src)
|
||||
src.throw_at(get_edge_target_turf(src, GLOB.reverse_dir[H.dir]), 3, 3)
|
||||
src.throw_at(get_edge_target_turf(src, REVERSE_DIR(H.dir)), 3, 3)
|
||||
|
||||
var/obj/item/organ/external/LH = H.get_organ(BP_L_HAND)
|
||||
var/obj/item/organ/external/RH = H.get_organ(BP_R_HAND)
|
||||
|
||||
Reference in New Issue
Block a user