var/icon/C = icon('Enemy.dmi',"lvl1") |
It supposed to add the wound to the Enemy's icon, but cut it so it doesn't go over the edge.
but instead it does the opposite.
It takes the shape of the wound and the color of the Enemy.
I tried flipping the icon files, but then is takes the shape and the color of the wound.
All help is very helpful!
-The very confused, DarkCampainger
Your problem lies in the first B.Blend() line; you're removing all the color from B (the wound) and changing it all to black. When that's added via ICON_ADD to the enemy, it will combine transparent areas of the two (hence a wound shape, clipped to the body), and since the only icon with color left is the enemy icon, only the color of the enemy is used.
It shouldn't take much to modify this though:
Lummox JR