Space Station 13 - Modules - TypesVar Details - Proc Details

gene

Gene Datum

domutcheck was getting pretty hairy. This is the solution.

All genes are stored in a global variable to cut down on memory usage.

@author N3X15 nexisentertainment@gmail.com

Vars

blockWhat gene activates this? Should be set on Initialize() only!
descProbably won't get used but why the fuck not
flagsAny of a number of GENE_ flags.
instabilityChance of the gene to cause adverse effects when active
nameDisplay name
traits_to_addWhich traits gene gives

Procs

OnDrawUnderlaysCalled after the mob runs update_icons.
OnMobDeathCalled when the mob dies
OnMobLifeCalled in each life() tick.
OnSayCalled when the mob says shit
activateCalled when the gene activates. Do your magic here.
can_activateReturn TRUE if we can activate.
can_deactivateReturn TRUE if we can deactivate.
deactivateCalled when the gene deactivates. Undo your magic here. Only called when the block is deactivated.

Var Details

block

What gene activates this? Should be set on Initialize() only!

desc

Probably won't get used but why the fuck not

flags

Any of a number of GENE_ flags.

instability

Chance of the gene to cause adverse effects when active

name

Display name

traits_to_add

Which traits gene gives

Proc Details

OnDrawUnderlays

Called after the mob runs update_icons.

@params M The subject. @params g Gender (m or f)

OnMobDeath

Called when the mob dies

OnMobLife

Called in each life() tick.

OnSay

Called when the mob says shit

activate

Called when the gene activates. Do your magic here.

can_activate

Return TRUE if we can activate.

can_deactivate

Return TRUE if we can deactivate.

deactivate

Called when the gene deactivates. Undo your magic here. Only called when the block is deactivated.