client
New()
..()
sleep(10)
for(var/turf/Turf in world)
if(Turf.name != "turf")
var/obj/Object = new()
var/icon/Icon = icon(Turf.icon, Turf.icon_state)
if(Turf.underlays.len)
for(var/Underlay in Turf.underlays)
Icon.Blend(Underlay:icon, ICON_UNDERLAY)
Icon.Scale(MINIMAP_SIZE / world.maxx, MINIMAP_SIZE / world.maxy)
Object.icon = Icon
Object.pixel_x = (Turf.x - 1) * round(MINIMAP_SIZE / world.maxx)
Object.pixel_y = (Turf.y - 1) * round(MINIMAP_SIZE / world.maxy)
src.mob.underlays += Object
Problem description:
I'm trying to blend the icons of stacked turfs and keep the bottom one as an underlay, but it keeps using the default function for Blend(), which is ICON_ADD.
It appears to be trying to take the turf and all it's underlays and apply it onto the client's mob?