[MIRROR] Convert species, organ_data, and rlimb_data to TG (#12570)

This commit is contained in:
CHOMPStation2StaffMirrorBot
2026-03-21 14:19:04 +01:00
committed by GitHub
parent 30f5891bfa
commit 80fcaab9dc
32 changed files with 343 additions and 193 deletions
+6 -5
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
@@ -81,7 +81,7 @@
continue
//CHOMPEdit Begin - Check species job bans... (Only used for shadekin)
if(job.is_species_banned(user.client.prefs.species, user.client.prefs.organ_data["brain"]))
if(job.is_species_banned(user.client.prefs.read_preference(/datum/preference/choiced/species), user.client.prefs.read_preference(/datum/preference/organ_data)?[O_BRAIN]))
continue
//CHOMPEdit End
@@ -130,13 +130,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)