mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-30 00:21:11 +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:
@@ -80,7 +80,7 @@
|
||||
AddOverlays(resource_indicator)
|
||||
if(LAZYLEN(decals))
|
||||
AddOverlays(decals)
|
||||
for(var/direction in GLOB.cardinal)
|
||||
for(var/direction in GLOB.cardinals)
|
||||
var/turf/turf_to_check = get_step(src,direction)
|
||||
if(!istype(turf_to_check, type))
|
||||
var/image/rock_side = image(icon, "edge[pick(0,1,2)]", dir = turn(direction, 180))
|
||||
|
||||
@@ -51,5 +51,5 @@
|
||||
icon_state = "drift"
|
||||
|
||||
/obj/effect/floor_decal/dune/random/Initialize(mapload, newdir, newcolour, bypass, set_icon_state)
|
||||
supplied_dir = pick(GLOB.cardinal)
|
||||
supplied_dir = pick(GLOB.cardinals)
|
||||
. = ..()
|
||||
|
||||
@@ -270,7 +270,7 @@
|
||||
gen_turf.resources[ORE_SAND] = rand(3, 5)
|
||||
gen_turf.resources[ORE_COAL] = rand(3, 5)
|
||||
if(ground_resources_roll)
|
||||
var/image/resource_indicator = image('icons/obj/mining.dmi', null, "indicator_" + ground_resources_roll, gen_turf.layer, pick(GLOB.cardinal))
|
||||
var/image/resource_indicator = image('icons/obj/mining.dmi', null, "indicator_" + ground_resources_roll, gen_turf.layer, pick(GLOB.cardinals))
|
||||
resource_indicator.alpha = rand(30, 60)
|
||||
gen_turf.resource_indicator = resource_indicator
|
||||
if(!gen_turf.density)
|
||||
|
||||
Reference in New Issue
Block a user