implant

Parent class for all implants
Vars | |
activated | true for implant types that can be activated, false for ones that are "always on" like mindshield implants |
---|---|
allow_multiple | if false, upon implantation of a duplicate implant, an attempt to combine the new implant's uses with the old one's uses will be made, deleting the new implant if successful or stopping the implantation if not |
imp_in | the mob that's implanted with this |
implant_color | implant color, used for selecting either the "b" version or the "r" version of the implant case sprite when the implant is in a case. |
uses | how many times this can do something, only relevant for implants with limited uses |
Procs | |
get_data | Gets implant specifications for the implant pad |
implant | What does the implant do upon injection? |
removed | Remove implant from mob. |
Var Details
activated

true for implant types that can be activated, false for ones that are "always on" like mindshield implants
allow_multiple

if false, upon implantation of a duplicate implant, an attempt to combine the new implant's uses with the old one's uses will be made, deleting the new implant if successful or stopping the implantation if not
imp_in

the mob that's implanted with this
implant_color

implant color, used for selecting either the "b" version or the "r" version of the implant case sprite when the implant is in a case.
uses

how many times this can do something, only relevant for implants with limited uses
Proc Details
get_data
Gets implant specifications for the implant pad
implant
What does the implant do upon injection?
return true if the implant injects return false if there is no room for implant / it fails Arguments:
- mob/living/target - mob being implanted
- mob/user - mob doing the implanting
- silent - unused here
- force - if true, implantation will not fail if can_be_implanted_in returns false
removed
Remove implant from mob.
This removes the effects of the implant and moves it out of the mob and into nullspace. Arguments:
- mob/living/source - What the implant is being removed from
- silent - unused here
- special - unused here