/tg/ Station 13 - Modules - TypesVar Details - Proc Details

liver

Vars

alcohol_toleranceAffects how much damage the liver takes from alcohol
liver_resistanceModifies how much damage toxin deals to the liver
toxToleranceThe maximum volume of toxins the liver will ignore

Procs

handle_chemicalThis proc can be overriden by liver subtypes so they can handle certain chemicals in special ways. Return null to continue running the normal on_mob_life() for that reagent. Return COMSIG_MOB_STOP_REAGENT_CHECK to not run the normal metabolism effects.
on_mob_insertRegisters COMSIG_SPECIES_HANDLE_CHEMICAL from owner
on_mob_removeUnregisters COMSIG_SPECIES_HANDLE_CHEMICAL from owner

Var Details

alcohol_tolerance

Affects how much damage the liver takes from alcohol

liver_resistance

Modifies how much damage toxin deals to the liver

toxTolerance

The maximum volume of toxins the liver will ignore

Proc Details

handle_chemical

This proc can be overriden by liver subtypes so they can handle certain chemicals in special ways. Return null to continue running the normal on_mob_life() for that reagent. Return COMSIG_MOB_STOP_REAGENT_CHECK to not run the normal metabolism effects.

NOTE: If you return COMSIG_MOB_STOP_REAGENT_CHECK, that reagent will not be removed like normal! You must handle it manually.

on_mob_insert

Registers COMSIG_SPECIES_HANDLE_CHEMICAL from owner

on_mob_remove

Unregisters COMSIG_SPECIES_HANDLE_CHEMICAL from owner