mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2025-12-12 02:32:10 +00:00
* Random Name Generation refactor, generate random names based on languages (for species without name lists, like Felinids and Podpeople) * [MIRROR] Random Name Generation refactor, generate random names based on languages (for species without name lists, like Felinids and Podpeople) (#2314) * Random Name Generation refactor, generate random names based on languages (for species without name lists, like Felinids and Podpeople) * Modular adjustments (vox, teshari names) * Update yangyu.dm * Delete language.dm * Remove language.dm override --------- Co-authored-by: MrMelbert <51863163+MrMelbert@users.noreply.github.com> Co-authored-by: Bloop <13398309+vinylspiders@users.noreply.github.com> * Fix 2 * fix 3 * Update monkeys.dm * test fix * One modular adjustment * Ticked * yeah * unhardcodes modsuit parts (#82905) see #70061 but i almost finished it, i only need to go through every single module and assign it a fitting part 🆑 refactor: modsuits have been refactored if you see bugs report them fix: admin cargo tech modsuit outfit now works correctly /🆑 --------- Co-authored-by: Andrew <mt.forspam@gmail.com> * Revert "unhardcodes modsuit parts (#82905)" This reverts commit 622968a8e5e9cd142cb4d19bf9775f084a4c17d9. * Removes language.dm and duplicate species() proc * Removes modular language subsystem --------- Co-authored-by: MrMelbert <51863163+MrMelbert@users.noreply.github.com> Co-authored-by: Bloop <13398309+vinylspiders@users.noreply.github.com> Co-authored-by: SpaceLoveSs13 <68121607+SpaceLoveSs13@users.noreply.github.com> Co-authored-by: Useroth <37159550+Useroth@users.noreply.github.com> Co-authored-by: Fikou <23585223+Fikou@users.noreply.github.com> Co-authored-by: Andrew <mt.forspam@gmail.com>
32 lines
1.4 KiB
Plaintext
32 lines
1.4 KiB
Plaintext
|
|
/**
|
|
* Checks that all enabled roundstart species
|
|
* selectable within the preferences menu
|
|
* have their info / page setup correctly.
|
|
*/
|
|
/datum/unit_test/preference_species
|
|
|
|
/datum/unit_test/preference_species/Run()
|
|
|
|
// Go though all selectable species to see if they have their page setup correctly.
|
|
for(var/species_id in get_selectable_species())
|
|
|
|
var/species_type = GLOB.species_list[species_id]
|
|
var/datum/species/species = GLOB.species_prototypes[species_type]
|
|
|
|
// Check the species decription.
|
|
// If it's not overridden, a stack trace will be thrown (and fail the test).
|
|
// If it's null, it was improperly overriden. Fail the test.
|
|
var/species_desc = species.get_species_description()
|
|
if(isnull(species_desc))
|
|
TEST_FAIL("Species [species] ([species_type]) is selectable, but did not properly implement get_species_description().")
|
|
|
|
// Check the species lore.
|
|
// If it's not overridden, a stack trace will be thrown (and fail the test).
|
|
// If it's null, or returned a list, it was improperly overriden. Fail the test.
|
|
var/species_lore = species.get_species_lore()
|
|
if(isnull(species_lore))
|
|
TEST_FAIL("Species [species] ([species_type]) is selectable, but did not properly implement get_species_lore().")
|
|
else if(!islist(species_lore))
|
|
TEST_FAIL("Species [species] ([species_type]) is selectable, but did not properly implement get_species_lore() (Did not return a list).")
|