mirror of
https://github.com/fulpstation/fulpstation.git
synced 2025-12-09 16:09:15 +00:00
Several months worth of updates. --------- Co-authored-by: A miscellaneous Fern <80640114+FernandoJ8@users.noreply.github.com> Co-authored-by: Pepsilawn <reisenrui@gmail.com> Co-authored-by: Ray <64306407+OneAsianTortoise@users.noreply.github.com> Co-authored-by: Cure221 <106662180+Cure221@users.noreply.github.com>
17 lines
858 B
Plaintext
17 lines
858 B
Plaintext
//////////////////////////////////////////////////////////
|
|
//A bunch of helpers to make genetics less of a headache//
|
|
//////////////////////////////////////////////////////////
|
|
|
|
#define GET_INITIALIZED_MUTATION(A) GLOB.all_mutations[A]
|
|
#define GET_GENE_STRING(A, B) (B.mutation_index[A])
|
|
#define GET_SEQUENCE(A) (GLOB.full_sequences[A])
|
|
#define GET_MUTATION_TYPE_FROM_ALIAS(A) (GLOB.alias_mutations[A])
|
|
|
|
#define GET_MUTATION_STABILIZER(A) ((A.stabilizer_coeff < 0) ? 1 : A.stabilizer_coeff)
|
|
#define GET_MUTATION_SYNCHRONIZER(A) ((A.synchronizer_coeff < 0) ? 1 : A.synchronizer_coeff)
|
|
#define GET_MUTATION_POWER(A) ((A.power_coeff < 0) ? 1 : A.power_coeff)
|
|
#define GET_MUTATION_ENERGY(A) ((A.energy_coeff < 0) ? 1 : A.energy_coeff)
|
|
|
|
///Ditto, but for a feature.
|
|
#define GET_UF_BLOCK_LEN(blocknum) (GLOB.features_block_lengths["[blocknum]"] || DNA_BLOCK_SIZE)
|