ID:143481
 
Code:
mob/Login()
..()
var/icon/body = new('Character.dmi',"None")
var/icon/head = new('Head.dmi',"Head")
body.Blend(head)
src.icon = body


Problem description:

You might laugh when you see this. I don't know what is going on here, but using Blend in such a manner gives me a null icon. I think Blend() might be bugged, but I wanted to check here first because I may have overlooked something.

You know that you do need to use the second argument for blend(), right?
In response to D4RK3 54B3R (#1)
No, I don't. The default value is ICON_ADD, which is precisely what I want it to do.
In response to CaptFalcon33035 (#2)
CaptFalcon33035 wrote:
No, I don't. The default value is ICON_ADD, which is precisely what I want it to do.

If the head and body don't share any opaque pixels in common, the no, ICON_ADD isn't what you want. That would be ICON_OR.

Lummox JR
In response to Lummox JR (#3)
My bad, I assumed. But that just brings me to this: why isn't ICON_OR the default? That seems like the most appropriate as default.

Thanks, by the way.