Tweak to fix two issues

Fix mysterious 'fuel blob' icon. There's an unnamed state in effects.dmi that I named but didn't include that in the PR to here before. And there's a better way to do update_transform and here it is.
This commit is contained in:
Arokha Sieyes
2018-01-17 17:30:12 -05:00
parent 6fb1b66ced
commit ccfe9c4f7e
2 changed files with 13 additions and 4 deletions
@@ -174,7 +174,13 @@ Please contact me on #coderbus IRC. ~Carn x
//5: Set appearance once
appearance = ma_compiled
/mob/living/carbon/human/update_transform(var/mutable_appearance/ma)
/mob/living/carbon/human/update_transform(var/mutable_appearance/passed_ma)
var/mutable_appearance/ma
if(passed_ma)
ma = passed_ma
else
ma = new(src)
// First, get the correct size.
var/desired_scale = icon_scale
@@ -191,14 +197,17 @@ Please contact me on #coderbus IRC. ~Carn x
M.Scale(desired_scale)
M.Translate(1,-6)
ma.transform = M
ma.layer = MOB_LAYER // Fix for a byond bug where turf entry order no longer matters
ma.layer = MOB_LAYER -0.01 // Fix for a byond bug where turf entry order no longer matters
else
var/matrix/M = matrix()
M.Scale(desired_scale)
M.Translate(0, 16*(desired_scale-1))
ma.transform = M
ma.layer = MOB_LAYER -0.1 // Fix for a byond bug where turf entry order no longer matters
ma.layer = MOB_LAYER // Fix for a byond bug where turf entry order no longer matters
if(!passed_ma)
appearance = ma
//Update the layers from the defines above
/mob/living/carbon/human/update_icons_layers(var/update_icons = 1)
list_layers.Cut()