dna ![code/datums/dna.dm 53](git.png)
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 ![code/datums/dna.dm 78](git.png)
List of the default genes from this mutation to allow DNA Scanner highlighting
fatal_meltdowns ![code/datums/dna.dm 85](git.png)
Weighted list of lethal meltdowns
features ![code/datums/dna.dm 63](git.png)
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 ![code/datums/dna.dm 76](git.png)
List of which mutations this carbon has and its assigned block
mutations ![code/datums/dna.dm 69](git.png)
All mutations are from now on here
nonfatal_meltdowns ![code/datums/dna.dm 83](git.png)
Weighted list of nonlethal meltdowns
previous ![code/datums/dna.dm 73](git.png)
For temporary name/ui/ue/blood_type modifications
real_name ![code/datums/dna.dm 67](git.png)
Stores the real name of the person who originally got this dna datum. Used primarily for changelings,
scrambled ![code/datums/dna.dm 81](git.png)
Did we take something like mutagen? In that case we can't get our genes scanned to instantly cheese all the powers.
species ![code/datums/dna.dm 60](git.png)
The type of mutant race the player is if applicable (i.e. potato-man)
temporary_mutations ![code/datums/dna.dm 71](git.png)
Temporary changes to the UE
unique_enzymes ![code/datums/dna.dm 55](git.png)
An md5 hash of the dna holder's real name
unique_features ![code/datums/dna.dm 65](git.png)
Stores the hashed values of the person's non-human features
unique_identity ![code/datums/dna.dm 57](git.png)
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.