mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2025-12-16 04:34:21 +00:00
* Fixes the MODsuit-related screenshot tests * Fixes eye sprites not refreshing properly when they're meant to * Fixed outfits calling too many update procs and pre/post_equip twice because of some silly code * Fixes glass golems not being transparent * Fixed the map compilation errors * Added the screenshot for the vox primalis * Updates the colors of the moth bodyparts to be easier to work with (making them whiter) * Fixes the antag icon for blood brothers * Fixes nightmares looking stupid in their antag icon and also failing the screenshot test * Fixes the humanoid screenshot * Updated the blood brother icon with the new colors for moths (because ours are greyscaled) * Updates some of the randomization stuff for moths, making it possibly functional again * Cleans up our moth species override a bit * Updates the screenshot_humanoids test to allow for better control over the screenshots * Updated the lizard, ashwalker and silverscale screenshots * I totally didn't forget the .dm * Moved the set_species before the prepare_human_for_preview() * The moth's fixed, by the way! In the prefs menu too! * The xenos are fixed too! * Pink felinids, how 'bout that? * Fixed the mush people (so they actually look like the icon that was there already!) * Snails are fixed too, splitting the .dmi edit in a different commit * Added https://github.com/tgstation/tgstation/pull/68013 early * Revert "Fixed the map compilation errors" This reverts commit b7db0a1f507ed3721d88883338508c058ffb7804. * Okay just Icebox this time * Podpeople hair still is broken :( * Turns out they weren't getting their snouts and frills properly... Now they do! * Possibly fixes that issue with Tram making compile maps fail
50 lines
3.6 KiB
Plaintext
50 lines
3.6 KiB
Plaintext
/// A screenshot test for every humanoid species with a handful of jobs.
|
|
/datum/unit_test/screenshot_humanoids
|
|
|
|
/datum/unit_test/screenshot_humanoids/Run()
|
|
// Test lizards as their own thing so we can get more coverage on their features
|
|
var/mob/living/carbon/human/lizard = allocate(/mob/living/carbon/human/dummy/consistent)
|
|
lizard.dna.features["mcolor"] = "#099"
|
|
lizard.dna.mutant_bodyparts["tail"] = list(MUTANT_INDEX_NAME = "Light Tiger", MUTANT_INDEX_COLOR_LIST = list("#009999", "#009999", "#009999")) // SKYRAT EDIT - Customization - ORIGINAL: lizard.dna.features["tail_lizard"] = "Light Tiger"
|
|
lizard.dna.mutant_bodyparts["snout"] = list(MUTANT_INDEX_NAME = "Sharp + Light", MUTANT_INDEX_COLOR_LIST = list("#009999", "#009999", "#009999")) // SKYRAT EDIT - Customization - ORIGINAL: lizard.dna.features["snout"] = "Sharp + Light"
|
|
lizard.dna.mutant_bodyparts["horns"] = list(MUTANT_INDEX_NAME = "Simple", MUTANT_INDEX_COLOR_LIST = list("#009999", "#009999", "#009999")) // SKYRAT EDIT - Customization - ORIGINAL: lizard.dna.features["horns"] = "Simple"
|
|
lizard.dna.mutant_bodyparts["frills"] = list(MUTANT_INDEX_NAME = "Aquatic", MUTANT_INDEX_COLOR_LIST = list("#009999", "#009999", "#009999")) // SKYRAT EDIT - Customization - ORIGINAL: lizard.dna.features["frills"] = "Aquatic"
|
|
lizard.dna.features["legs"] = "Normal Legs"
|
|
lizard.set_species(/datum/species/lizard)
|
|
lizard.equipOutfit(/datum/outfit/job/engineer)
|
|
test_screenshot("[/datum/species/lizard]", get_flat_icon_for_all_directions(lizard))
|
|
|
|
// let me have this
|
|
var/mob/living/carbon/human/moth = allocate(/mob/living/carbon/human/dummy/consistent)
|
|
moth.dna.features["mcolor"] = "#E5CD99" // SKYRAT EDIT ADDITION - Customization
|
|
moth.dna.mutant_bodyparts["moth_antennae"] = list(MUTANT_INDEX_NAME = "Firewatch", MUTANT_INDEX_COLOR_LIST = list("#FFFFFF", "#FFFFFF", "#FFFFFF")) // SKYRAT EDIT - Customization - ORIGINAL: moth.dna.features["moth_antennae"] = "Firewatch"
|
|
moth.dna.mutant_bodyparts["moth_markings"] = list(MUTANT_INDEX_NAME = "None", MUTANT_INDEX_COLOR_LIST = list("#FFFFFF", "#FFFFFF", "#FFFFFF")) // SKYRAT EDIT - Customization - ORIGINAL: moth.dna.features["moth_markings"] = "None"
|
|
moth.dna.mutant_bodyparts["wings"] = list(MUTANT_INDEX_NAME = "Moth (Firewatch)", MUTANT_INDEX_COLOR_LIST = list("#FFFFFF", "#FFFFFF", "#FFFFFF")) // SKYRAT EDIT - Customization - ORIGINAL: moth.dna.features["moth_wings"] = "Firewatch"
|
|
moth.set_species(/datum/species/moth)
|
|
moth.equipOutfit(/datum/outfit/job/cmo, visualsOnly = TRUE)
|
|
test_screenshot("[/datum/species/moth]", get_flat_icon_for_all_directions(moth))
|
|
|
|
// The rest of the species
|
|
for (var/datum/species/species_type as anything in subtypesof(/datum/species) - /datum/species/moth - /datum/species/lizard)
|
|
test_screenshot("[species_type]", get_flat_icon_for_all_directions(make_dummy(species_type, /datum/outfit/job/assistant/consistent)))
|
|
|
|
/datum/unit_test/screenshot_humanoids/proc/get_flat_icon_for_all_directions(atom/thing)
|
|
var/icon/output = icon('icons/effects/effects.dmi', "nothing")
|
|
COMPILE_OVERLAYS(thing)
|
|
|
|
for (var/direction in GLOB.cardinals)
|
|
var/icon/partial = getFlatIcon(thing, defdir = direction, no_anim = TRUE)
|
|
output.Insert(partial, dir = direction)
|
|
|
|
return output
|
|
|
|
/datum/unit_test/screenshot_humanoids/proc/make_dummy(species, job_outfit)
|
|
var/mob/living/carbon/human/dummy/consistent/dummy = allocate(/mob/living/carbon/human/dummy/consistent)
|
|
dummy.set_species(species)
|
|
// SKYRAT EDIT ADDITION START - More consistent screenshots
|
|
var/datum/species/dummy_species = new species
|
|
dummy_species.prepare_human_for_preview(dummy)
|
|
// SKYRAT EDIT ADDITION END
|
|
dummy.equipOutfit(job_outfit, visualsOnly = TRUE)
|
|
return dummy
|