mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-28 23:58:07 +01:00
Fixes an 8 year old bug which colored your HUDs with you (#88667)
## About The Pull Request Partially a port of https://github.com/DaedalusDock/daedalusdock/pull/1163 which is a port of my own code from bitbus Closes #88579 Instead of manually setting hud images and positioning we now can use set_hud_image_state which also updates their position to ensure that they scale with the owner atom. HUDs had RESET_COLOR and RESET_TRANSFORM but no KEEP_APART, so they were stuck with mobs all this time. I replaced RESET_TRANSFORM with PIXEL_SCALE (shouldn't be reserved to mob huds only to be honest) and added KEEP_APART, so that HUDs still scale/rotate with their owner but don't inherit their color. Also fixed the dragon issue, that's where this PR actually started. Closes https://github.com/tgstation/tgstation/issues/45411 ## Why It's Good For The Game I don't want my HUDs to be pretty pink when I make a barbie Clarke. ## Changelog 🆑 refactor: Rewrote some of HUD code so they're no longer colored in their owner's color fix: Space dragons no longer turn invisible when toggling seethrough mode /🆑
This commit is contained in:
@@ -77,16 +77,14 @@
|
||||
return ..()
|
||||
|
||||
//we hide medical hud while in regular state or an item
|
||||
var/image/holder = hud_list[HEALTH_HUD]
|
||||
holder.icon_state = null
|
||||
set_hud_image_state(HEALTH_HUD, null)
|
||||
|
||||
/mob/living/basic/morph/med_hud_set_status()
|
||||
if(isliving(form_typepath))
|
||||
return ..()
|
||||
|
||||
//we hide medical hud while in regular state or an item
|
||||
var/image/holder = hud_list[STATUS_HUD]
|
||||
holder.icon_state = null
|
||||
set_hud_image_state(STATUS_HUD, null)
|
||||
|
||||
/mob/living/basic/morph/death(gibbed)
|
||||
if(HAS_TRAIT(src, TRAIT_DISGUISED))
|
||||
|
||||
Reference in New Issue
Block a user