When using a mob icon greater than 32*32 overlays do not appear over the mob, but under.
Numbered Steps to Reproduce Problem:
used 32*38 mob icon, and a 32*48 icon for hair but only used 37 and up with hair so it could fit properly on mob.
Code Snippet (if applicable) to Reproduce Problem:
mob
icon = 'guy.dmi'
icon_state = "guy"
layer = MOB_LAYER +0.1
var
icon/hair;
verb
ChangeHair()
Mob_ChangeHair()
proc
Mob_ChangeHair()
if (hair)
{
overlays -= hair
}
switch(input("What hair style would you like?", text) in list ("Mushroom","Spikey"))
if("Mushroom")
hair = new('Hair.dmi', "Mushroom_Hair");
if("Spikey")
hair = new('Hair.dmi', "Spikey_Hair");//wats the problem aginz
var/hairred = input("How much red do you want to put into your hair?",,0) as num
var/hairblue = input("How much blue do you want to put into your hair?",,0) as num
var/hairgreen = input("How much green do you want to put into your hair?",,0) as num
hair.Blend(rgb(hairred,hairgreen,hairblue), ICON_MULTIPLY)
overlays += hair
Login()
loc = locate(1,1,1)
Expected Results:
The overlay to appear over the mob.
Actual Results:
The overlay appeared under the mob.
Does the problem occur:
Every time? Or how often?
Every time
In other games?
Not sure
In other user accounts?
Yes
On other computers?
Yes
When does the problem NOT occur?
Never
Did the problem NOT occur in any earlier versions? If so, what was the last version that worked? Not sure.
Workarounds: None known, may be some but I'm not sure
As a consequence, if you're going to use a big icon for your mob, you have to explicitly set the layer of any overlays.