dna
DNA DATUM
Vars | |
default_mutation_genes | List of the default genes from this mutation to allow DNA Scanner highlighting |
---|---|
fatal_meltdowns | Weighted list of lethal meltdowns |
features | Assoc list of feature keys to their value Note if you set these manually, and do not update [unique_features] afterwards, it will likely be reset. |
mutation_index | List of which mutations this carbon has and its assigned block |
mutations | All mutations are from now on here |
nonfatal_meltdowns | Weighted list of nonlethal meltdowns |
previous | For temporary name/ui/ue/blood_type modifications |
real_name | Stores the real name of the person who originally got this dna datum. Used primarily for changelings, |
scrambled | Did we take something like mutagen? In that case we can't get our genes scanned to instantly cheese all the powers. |
species | The type of mutant race the player is if applicable (i.e. potato-man) |
temporary_mutations | Temporary changes to the UE |
unique_enzymes | An md5 hash of the dna holder's real name |
unique_features | Stores the hashed values of the person's non-human features |
unique_identity | Stores the hashed values of traits such as skin tones, hair style, and gender |
Procs | |
initialize_dna | Sets up DNA codes and initializes some features. |
is_same_as | Checks if two DNAs are practically the same by comparing their most defining features |
mutation_in_sequence | DNA HELPER-PROCS |
set_uni_feature_block | Setter macro used to modify unique features blocks. |
set_uni_identity_block | Setter macro used to modify unique identity blocks. |
update_dna_identity | Updates the UI, UE, and UF of the DNA according to the features, appearance, name, etc. of the DNA / holder. |
Var Details
default_mutation_genes
List of the default genes from this mutation to allow DNA Scanner highlighting
fatal_meltdowns
Weighted list of lethal meltdowns
features
Assoc list of feature keys to their value Note if you set these manually, and do not update [unique_features] afterwards, it will likely be reset.
mutation_index
List of which mutations this carbon has and its assigned block
mutations
All mutations are from now on here
nonfatal_meltdowns
Weighted list of nonlethal meltdowns
previous
For temporary name/ui/ue/blood_type modifications
real_name
Stores the real name of the person who originally got this dna datum. Used primarily for changelings,
scrambled
Did we take something like mutagen? In that case we can't get our genes scanned to instantly cheese all the powers.
species
The type of mutant race the player is if applicable (i.e. potato-man)
temporary_mutations
Temporary changes to the UE
unique_enzymes
An md5 hash of the dna holder's real name
unique_features
Stores the hashed values of the person's non-human features
unique_identity
Stores the hashed values of traits such as skin tones, hair style, and gender
Proc Details
initialize_dna
Sets up DNA codes and initializes some features.
- newblood_type - Optional, the blood type to set the DNA to
- create_mutation_blocks - If true, generate_dna_blocks is called, which is used to set up mutation blocks (what a mob can naturally mutate).
- randomize_features - If true, all entries in the features list will be randomized.
is_same_as
Checks if two DNAs are practically the same by comparing their most defining features
Arguments:
- target_dna The DNA that we are comparing to
mutation_in_sequence
DNA HELPER-PROCS
set_uni_feature_block
Setter macro used to modify unique features blocks.
set_uni_identity_block
Setter macro used to modify unique identity blocks.
update_dna_identity
Updates the UI, UE, and UF of the DNA according to the features, appearance, name, etc. of the DNA / holder.