feartheblackout
2024-06-20 10:16:58 +00:00
committed by GitHub
parent dacb5bf71f
commit 71ef6c3bcd
9 changed files with 107 additions and 6 deletions
+13
View File
@@ -355,6 +355,19 @@ SUBSYSTEM_DEF(records)
if(religion)
return religion.get_records_name()
/**
* Gets the name of the citizenship to show on records and ID
*
* * target_citizenship - The citizenship to get the name for, one of the CITIZENSHIP_* constants
*
* Returns the name of the citizenship (string) or null if the citizenship is not found
*/
/datum/controller/subsystem/records/proc/get_citizenship_record_name(var/target_citizenship)
SHOULD_NOT_SLEEP(TRUE)
var/datum/citizenship/citizenship = SSrecords.citizenships[target_citizenship]
if(citizenship)
return citizenship.get_records_name()
/datum/controller/subsystem/records/proc/compute_localized_field(var/type)
if(!localized_fields[type])
return