dna 
DNA DATUM
Vars | |
| default_mutation_genes | List of the default genes from this mutation to allow DNA Scanner highlighting |
|---|---|
| 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. |
| human_blood_type | So humans have a variety of blood types while other species do not This tracks JUST human blood type. Might seem a bit bias but everyone is a human under their scales and feathers. Essentially only exists so humans have their same blood type swapping from human -> non-human -> human. |
| mutation_index | List of which mutations this carbon has and its assigned block |
| mutations | All mutations are from now on here |
| 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 primarely for changelings, |
| scrambled | Did we take something like mutagen? In that case we cant 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 | |
| generate_dna_blocks | Picks what mutations this DNA has innate and generates DNA blocks for them |
| get_stability | Gets the owner's current instability level |
| 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_human_blood_type | Updates human blood type and updates the holder's blood type if the holder is human |
| 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
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.
human_blood_type 
So humans have a variety of blood types while other species do not This tracks JUST human blood type. Might seem a bit bias but everyone is a human under their scales and feathers. Essentially only exists so humans have their same blood type swapping from human -> non-human -> human.
mutation_index 
List of which mutations this carbon has and its assigned block
mutations 
All mutations are from now on here
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 primarely for changelings,
scrambled 
Did we take something like mutagen? In that case we cant 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
generate_dna_blocks
Picks what mutations this DNA has innate and generates DNA blocks for them
- mutation_blacklist - Optional list of mutation typepaths to exclude from generation.
get_stability
Gets the owner's current instability level
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_human_blood_type
Updates human blood type and updates the holder's blood type if the holder is human
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.