mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-01-05 23:11:52 +00:00
Macro-ize some helpers, character preview optimize (#14354)
This commit is contained in:
@@ -58,10 +58,10 @@
|
||||
var/list/plant_traits = ALL_GENES
|
||||
while(plant_traits && plant_traits.len)
|
||||
var/gene_tag = pick(plant_traits)
|
||||
var/gene_mask = "[uppertext(num2hex(rand(0,255)))]"
|
||||
var/gene_mask = "[uppertext(num2hex(rand(0,255), 0))]"
|
||||
|
||||
while(gene_mask in used_masks)
|
||||
gene_mask = "[uppertext(num2hex(rand(0,255)))]"
|
||||
gene_mask = "[uppertext(num2hex(rand(0,255), 0))]"
|
||||
|
||||
used_masks += gene_mask
|
||||
plant_traits -= gene_tag
|
||||
|
||||
@@ -294,8 +294,7 @@
|
||||
return "[return_value][include_faction_prefix ? " ([H.mind.selected_faction.title_suffix])" : ""]"
|
||||
|
||||
/proc/generate_record_id()
|
||||
return add_zero(num2hex(rand(1, 65535)), 4)
|
||||
|
||||
return num2hex(rand(1, 65535), 4)
|
||||
|
||||
/datum/controller/subsystem/records/proc/InitializeCitizenships()
|
||||
for (var/type in subtypesof(/datum/citizenship))
|
||||
|
||||
Reference in New Issue
Block a user