mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-27 23:14:18 +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:
@@ -7,7 +7,7 @@
|
||||
var/splatter_type = "splatter"
|
||||
|
||||
/obj/effect/temp_visual/dir_setting/bloodsplatter/Initialize(mapload, set_dir, _color)
|
||||
if(set_dir in GLOB.cornerdirs)
|
||||
if(set_dir in GLOB.diagonals)
|
||||
icon_state = "[splatter_type][pick(1, 2, 6)]"
|
||||
else
|
||||
icon_state = "[splatter_type][pick(3, 4, 5)]"
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
if(new_dir)
|
||||
set_dir(new_dir)
|
||||
else if(randomdir)
|
||||
set_dir(pick(GLOB.cardinal))
|
||||
set_dir(pick(GLOB.cardinals))
|
||||
|
||||
QDEL_IN(src, duration)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user