/tg/ Station 13 - Modules - TypesVar Details - Proc Details

raptor

Vars

can_breedCan this raptor breed?
change_offsetsShould we change offsets on direction change?
collar_stateCan we wear a collar? If so, what is our icon state prefix for it?
food_typesFood types that we can consume
growth_probabilityProbability of getting progress in the baby phase each second
growth_progressOur current growth progress towards the next stage if we're a youngling or a baby
growth_stageAre we an adult, youngling or baby?
happiness_percentageCurrent happiness value of the raptor
inherited_statsInheritance datum we store our genetic data in
pet_commandsPet commands when we tame the raptor
raptor_colorRaptor color datum assigned to this raptor, this is a singleton

Procs

change_growth_stageChanges the raptor to a new growth stage. Only should be done forwards, or on raptor init as the first thing before everything else Sorry for the monolith, but splitting it up results in even worse looking code with a ton of duplicate calls and assignments And making a second datum is just insanity
egg_inheritPass our genetic data to the egg

Var Details

can_breed

Can this raptor breed?

change_offsets

Should we change offsets on direction change?

collar_state

Can we wear a collar? If so, what is our icon state prefix for it?

food_types

Food types that we can consume

growth_probability

Probability of getting progress in the baby phase each second

growth_progress

Our current growth progress towards the next stage if we're a youngling or a baby

growth_stage

Are we an adult, youngling or baby?

happiness_percentage

Current happiness value of the raptor

inherited_stats

Inheritance datum we store our genetic data in

pet_commands

Pet commands when we tame the raptor

raptor_color

Raptor color datum assigned to this raptor, this is a singleton

Proc Details

change_growth_stage

Changes the raptor to a new growth stage. Only should be done forwards, or on raptor init as the first thing before everything else Sorry for the monolith, but splitting it up results in even worse looking code with a ton of duplicate calls and assignments And making a second datum is just insanity

egg_inherit

Pass our genetic data to the egg