/datum/cloner_defect_holder
Holds all the cloner defects for a person, as well as the weighted list of possible defects
Vars | |
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 |
Procs | |
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 |
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