amputating_limbs ![code/datums/components/amputating_limbs.dm 2](git.png)
This component will intercept bare-handed attacks by the owner on sufficiently injured carbons and amputate random limbs instead
Vars | |
minimum_stat | How awake must our target be? |
---|---|
pre_hit_callback | Callback for a proc right before confirming the attack. If it returns FALSE, cancel |
snip_chance | How likely are we to perform this action? |
surgery_time | How long does it take? |
surgery_verb | What is the means by which we describe the act of amputation? |
target_zones | The types of limb we can remove |
Procs | |
amputate | Chop one off |
try_amputate | Called when you click on literally anything with your hands, see if it is an injured carbon and then try to cut it up |
Var Details
minimum_stat ![code/datums/components/amputating_limbs.dm 8](git.png)
How awake must our target be?
pre_hit_callback ![code/datums/components/amputating_limbs.dm 16](git.png)
Callback for a proc right before confirming the attack. If it returns FALSE, cancel
snip_chance ![code/datums/components/amputating_limbs.dm 10](git.png)
How likely are we to perform this action?
surgery_time ![code/datums/components/amputating_limbs.dm 4](git.png)
How long does it take?
surgery_verb ![code/datums/components/amputating_limbs.dm 6](git.png)
What is the means by which we describe the act of amputation?
target_zones ![code/datums/components/amputating_limbs.dm 12](git.png)
The types of limb we can remove
Proc Details
amputate
Chop one off
try_amputate
Called when you click on literally anything with your hands, see if it is an injured carbon and then try to cut it up