/tg/ Station 13 - Modules - Types

code/modules/unit_tests/~nova/preference_apply_page.dm

/datum/unit_test/preference_apply_pageThe same preferences build the same character whatever setup page their player last had open: what a character gets is asked with is_applicable(), which leaves out the page test is_accessible() makes for the menu. Each fixture is loaded as a connection loads a character and built on fresh bodies, as a spawn does and as the preview draws, with the character page open, the game page open and the keybindings open, and every body must match the one built on the character page: its pixels, mutant parts, limbs and organs (where augments go), DNA features (where the genital fields go), traits and blood type. Each fixture also checks the thing it is about on the character page, so none can pass by building nothing, and each but one pins the blood type to the test body's own, so only the fixture about blood types depends on it.