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 | |
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 |
Procs | |
OnDrawUnderlays | Called after the mob runs update_icons. |
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. |
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.