mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-31 00:58:26 +01:00
Fix footprint emissives (#94001)
## About The Pull Request I don't really know why you can't set the dir of a MA after it's created but copying the appearance to an image fixes it ## Changelog 🆑 Melbert fix: Glowing bloody footprints looks less weird /🆑
This commit is contained in:
@@ -739,11 +739,10 @@
|
||||
. += bloodstep_overlay
|
||||
|
||||
if(emissive_alpha && emissive_alpha < alpha && !dried)
|
||||
var/enter_emissive_state = "[enter_state]_emissive-[emissive_alpha]"
|
||||
var/mutable_appearance/emissive_overlay = bloody_footprints_cache[enter_emissive_state]
|
||||
var/enter_emissive_state = "[enter_state]_emissive-[Ddir]-[emissive_alpha]"
|
||||
var/image/emissive_overlay = bloody_footprints_cache[enter_emissive_state]
|
||||
if(!emissive_overlay)
|
||||
emissive_overlay = blood_emissive(icon, "[icon_state_to_use]1")
|
||||
emissive_overlay.dir = Ddir
|
||||
emissive_overlay = image(blood_emissive(icon, "[icon_state_to_use]1"), dir = Ddir)
|
||||
bloody_footprints_cache[enter_emissive_state] = emissive_overlay
|
||||
. += emissive_overlay
|
||||
|
||||
@@ -756,11 +755,10 @@
|
||||
. += bloodstep_overlay
|
||||
|
||||
if(emissive_alpha && emissive_alpha < alpha && !dried)
|
||||
var/exit_emissive_state = "[exit_state]_emissive-[emissive_alpha]"
|
||||
var/mutable_appearance/emissive_overlay = bloody_footprints_cache[exit_emissive_state]
|
||||
var/exit_emissive_state = "[exit_state]_emissive-[Ddir]-[emissive_alpha]"
|
||||
var/image/emissive_overlay = bloody_footprints_cache[exit_emissive_state]
|
||||
if(!emissive_overlay)
|
||||
emissive_overlay = blood_emissive(icon, "[icon_state_to_use]2")
|
||||
emissive_overlay.dir = Ddir
|
||||
emissive_overlay = image(blood_emissive(icon, "[icon_state_to_use]2"), dir = Ddir)
|
||||
bloody_footprints_cache[exit_emissive_state] = emissive_overlay
|
||||
. += emissive_overlay
|
||||
|
||||
|
||||
Reference in New Issue
Block a user