Goonstation 13 - Modules - TypesVar Details - Proc Details

/datum/cloner_defect_holder

Holds all the cloner defects for a person, as well as the weighted list of possible defects

Vars

active_cloner_defectsCloner defects active on the owner of this holder
ownerHuman this defect holder belongs to (thus, also the owner of all defects contained herewithin)
weighted_defect_index2D list, mapping severity to a list mapping defect type to weight

Procs

add_cloner_defectAdd a cloner defect of the given severity
add_random_cloner_defectAdd a cloner defect, rolling severity according to weights
add_specific_cloner_defectDebug proc- add a cloner defect of a specific type.
apply_toApplies all the defects on this holder (which is assumed to be ownerless) to the target mob
apply_to_on_movePerforms the above function after the mob moves. Used for cloning (only apply)
copyCopies all the defects on this holder, returns a new holder with those copied defects
has_defectReturns TRUE if this holder contains the given defect type, FALSE otherwise

Var Details

active_cloner_defects

Cloner defects active on the owner of this holder

owner

Human this defect holder belongs to (thus, also the owner of all defects contained herewithin)

weighted_defect_index

2D list, mapping severity to a list mapping defect type to weight

Proc Details

add_cloner_defect

Add a cloner defect of the given severity

add_random_cloner_defect

Add a cloner defect, rolling severity according to weights

add_specific_cloner_defect

Debug proc- add a cloner defect of a specific type.

apply_to

Applies all the defects on this holder (which is assumed to be ownerless) to the target mob

apply_to_on_move

Performs the above function after the mob moves. Used for cloning (only apply)

copy

Copies all the defects on this holder, returns a new holder with those copied defects

has_defect

Returns TRUE if this holder contains the given defect type, FALSE otherwise