brain
Vars | |
damage_delta | Two variables necessary for calculating whether we get a brain trauma or not |
---|---|
decay_factor | The brain's organ variables are significantly more different than the other organs, with half the decay rate for balance reasons, and twice the maxHealth |
decoy_override | If it's a fake brain with no brainmob assigned. Feedback messages will be faked as if it does have a brainmob. See changelings & dullahans. |
max_skillchip_complexity | Maximum skillchip complexity we can support before they stop working. Do not reference this var directly and instead call get_max_skillchip_complexity() |
max_skillchip_slots | Maximum skillchip slots available. Do not reference this var directly and instead call get_max_skillchip_slots() |
oxygen_reserve | How many ticks we can go without oxygen before bad things start happening. |
skillchips | List of skillchip items, their location should be this brain. |
Procs | |
activate_skillchip_failsafe | Deactivates all chips currently in the brain. |
clone_skillchip_list | Creates a list of assoc lists containing skillchip types and key metadata. |
destroy_all_skillchips | Destroys all skillchips in the brain, calling on_removal if the brain has an owner. Arguments: |
get_attacking_limb | This proc lets the mob's brain decide what bodypart to attack with in an unarmed strike. |
get_max_skillchip_complexity | Returns the total maximum skillchip complexity supported by this brain. |
get_max_skillchip_slots | Returns the total maximum skillchip slot capacity supported by this brain. |
get_used_skillchip_complexity | Returns the total current skillchip complexity used in this brain. |
get_used_skillchip_slots | Returns the total current skillchip slot capacity used in this brain. |
has_trauma_type | TRAUMAS |
implant_skillchip | Attempts to implant target skillchip into the brain. |
remove_skillchip | Attempts to remove target skillchip from the brain. |
update_skillchips | Disables or re-enables any extra skillchips after skillchip limit changes. |
Var Details
damage_delta
Two variables necessary for calculating whether we get a brain trauma or not
decay_factor
The brain's organ variables are significantly more different than the other organs, with half the decay rate for balance reasons, and twice the maxHealth
decoy_override
If it's a fake brain with no brainmob assigned. Feedback messages will be faked as if it does have a brainmob. See changelings & dullahans.
max_skillchip_complexity
Maximum skillchip complexity we can support before they stop working. Do not reference this var directly and instead call get_max_skillchip_complexity()
max_skillchip_slots
Maximum skillchip slots available. Do not reference this var directly and instead call get_max_skillchip_slots()
oxygen_reserve
How many ticks we can go without oxygen before bad things start happening.
skillchips
List of skillchip items, their location should be this brain.
Proc Details
activate_skillchip_failsafe
Deactivates all chips currently in the brain.
clone_skillchip_list
Creates a list of assoc lists containing skillchip types and key metadata.
Returns a complete list of new skillchip types with their metadata cloned from the brain's existing skillchip stock. Rumour has it that Changelings just LOVE this proc. Arguments:
- not_removable - Special override, whether or not to force cloned chips to be non-removable, i.e. to delete on removal.
destroy_all_skillchips
Destroys all skillchips in the brain, calling on_removal if the brain has an owner. Arguments:
- silent - Whether to give the user a chat notification with the removal flavour text.
get_attacking_limb
This proc lets the mob's brain decide what bodypart to attack with in an unarmed strike.
get_max_skillchip_complexity
Returns the total maximum skillchip complexity supported by this brain.
get_max_skillchip_slots
Returns the total maximum skillchip slot capacity supported by this brain.
get_used_skillchip_complexity
Returns the total current skillchip complexity used in this brain.
get_used_skillchip_slots
Returns the total current skillchip slot capacity used in this brain.
has_trauma_type
TRAUMAS
implant_skillchip
Attempts to implant target skillchip into the brain.
Returns whether the skillchip was implanted or not. If you're implanting the skillchip into a mob, use the implant_skillchip proc in mob/living/carbon instead. DANGEROUS - This proc assumes you've done the appropriate checks to make sure the skillchip should be implanted. Where possible, call the mob/living/carbon version of this proc which does relevant checks. Arguments:
- skillchip - The skillchip you'd like to implant.
- force - Whether or not to force the skillchip to be implanted, ignoring any checks.
remove_skillchip
Attempts to remove target skillchip from the brain.
Returns whether the skillchip was removed or not. If you're removing the skillchip from a mob, use the remove_skillchip proc in mob/living/carbon instead. Arguments:
- skillchip - The skillchip you'd like to remove.
update_skillchips
Disables or re-enables any extra skillchips after skillchip limit changes.