Fixes attacking humans, paintings and some other stuff with items causing the animation to display incorrectly (#66227)

Fixes #58058 (Fried items have error sprites when attacking, fried and grilled items grill the error sprite)

Attacking humans or other things that have KEEP_TOGETHER (atmos omni tanks, supplypods, paintings) with a deep fried thing will now actually show that thing instead of both that thing and an error sprite.
Attack animations for attacks against those things are no longer black.
This commit is contained in:
robbertapir
2022-05-17 23:02:51 -07:00
committed by GitHub
parent 656fcf4017
commit a5cae13a27
+1 -1
View File
@@ -1357,7 +1357,7 @@ GLOBAL_DATUM_INIT(fire_overlay, /mutable_appearance, mutable_appearance('icons/e
attack_image = image('icons/effects/effects.dmi', attacked_atom, visual_effect_icon, attacked_atom.layer + 0.1)
else if(used_item)
attack_image = image(icon = used_item, loc = attacked_atom, layer = attacked_atom.layer + 0.1)
attack_image.plane = attacked_atom.plane
attack_image.plane = attacked_atom.plane + 1
// Scale the icon.
attack_image.transform *= 0.4