mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 02:34:00 +00:00
Merge pull request #5333 from Anewbe/mining_turf_tweak
Mining turf overlays should be properly placed now
This commit is contained in:
@@ -153,7 +153,7 @@ var/list/mining_overlay_cache = list()
|
||||
|
||||
if(excav_overlay)
|
||||
add_overlay(excav_overlay)
|
||||
|
||||
|
||||
//We are a sand floor
|
||||
else
|
||||
name = "sand"
|
||||
@@ -167,12 +167,6 @@ var/list/mining_overlay_cache = list()
|
||||
for(var/direction in cardinal)
|
||||
if(istype(get_step(src, direction), /turf/space) && !istype(get_step(src, direction), /turf/space/cracked_asteroid))
|
||||
add_overlay(get_cached_border("asteroid_edge",direction,icon,"asteroid_edges", 0))
|
||||
|
||||
//Or any time
|
||||
else
|
||||
var/turf/simulated/mineral/M = get_step(src, direction)
|
||||
if(istype(M) && M.density)
|
||||
add_overlay(get_cached_border("rock_side",direction,'icons/turf/walls.dmi',"rock_side"))
|
||||
|
||||
if(overlay_detail)
|
||||
add_overlay('icons/turf/flooring/decals.dmi',overlay_detail)
|
||||
|
||||
Reference in New Issue
Block a user