Files
Bubberstation/code/modules/unit_tests/screenshot_saturnx.dm
MrMelbert be8bbf4c55 Fixes husk appearances not working, adds a screenshot test for it (#72190)
## About The Pull Request

Fixes #72159

Before this proc used to early return when the limb was husked
The leg refactor changed it to no longer early return and as a result it
overrided the generated husk icon with a normal limb icon
So I just wrapped even more of the proc in `!is_husked`, since like most
of it is not supposed to run

Screenshot tests husks too

## Why It's Good For The Game

Husks are good(?)

## Changelog

🆑 Melbert
fix: Husked bodies look husked again
/🆑
2022-12-24 02:37:37 -08:00

14 lines
693 B
Plaintext

/// A screenshot test for making sure invisible limbs function, keeping them clothed so we know they're there.
/datum/unit_test/screenshot_saturnx
/datum/unit_test/screenshot_saturnx/Run()
var/mob/living/carbon/human/human = allocate(/mob/living/carbon/human/dummy/consistent) //we don't use a dummy as they have no organs
human.equipOutfit(/datum/outfit/job/assistant/consistent, visualsOnly = TRUE)
var/datum/reagent/drug/saturnx/saturnx_reagent = new()
saturnx_reagent.expose_atom(human, 15)
saturnx_reagent.turn_man_invisible(human, requires_liver = FALSE) //immediately turn us invisible
test_screenshot("invisibility", get_flat_icon_for_all_directions(human, no_anim = FALSE))