Convert species, organ_data, and rlimb_data to TG (#19277)

* First test batch bulk change

* remove desync'd old file

* Small change
This commit is contained in:
Aura Dusklight
2026-03-21 10:06:36 +02:00
committed by GitHub
parent c29f169011
commit c6f10bfeb3
32 changed files with 337 additions and 187 deletions
+5 -4
View File
@@ -49,7 +49,7 @@
if(!job.minimum_character_age && !job.min_age_by_species)
return TRUE
var/min_age = job.get_min_age(prefs.species, prefs.organ_data[O_BRAIN])
var/min_age = job.get_min_age(prefs.read_preference(/datum/preference/choiced/species), prefs.read_preference(/datum/preference/organ_data)?[O_BRAIN])
if(prefs.read_preference(/datum/preference/numeric/human/age) >= min_age)
return TRUE
return FALSE
@@ -125,13 +125,14 @@
to_chat(new_user, span_danger("The station is currently exploding. Joining would go poorly."))
return
var/datum/species/S = GLOB.all_species[new_user.client.prefs.species]
var/pref_species = new_user.client.prefs.read_preference(/datum/preference/choiced/species)
var/datum/species/S = GLOB.all_species[pref_species]
if(!is_alien_whitelisted(new_user.client, S))
tgui_alert(new_user, "You are currently not whitelisted to play [new_user.client.prefs.species].")
tgui_alert(new_user, "You are currently not whitelisted to play [pref_species].")
return 0
if(!(S.spawn_flags & SPECIES_CAN_JOIN))
tgui_alert_async(new_user,"Your current species, [new_user.client.prefs.species], is not available for play on the station.")
tgui_alert_async(new_user,"Your current species, [pref_species], is not available for play on the station.")
return 0
new_user.AttemptLateSpawn(job)