disease 
Vars | |
| affected_mob | Mob that is suffering from this disease |
|---|---|
| can_contract_dead | If TRUE, disease can contract dead mobs |
| can_immunity | Immunity can be developed from the disease |
| can_progress_in_dead | If TRUE, disease can progress in dead mobs |
| carrier | If TRUE, host not affected by virus, but can spread it (mostly for viruses) |
| carrier_mobtypes | Infectable mob types, that can only be carriers |
| curable | Сan the disease be cured |
| cure_prob | Probability of cure for a tick |
| cured_message | Message when cured |
| cures | List of cures if the disease has curable = TRUE, these are reagent ids |
| discovered | If TRUE, this disease will show up on medical HUDs. Automatically set when it reaches mid-stage. |
| discovery_threshold | The fraction of stages the disease must at least be at to show up on medical HUDs. Rounded up. |
| ignore_immunity | Does it skip TRAIT_VIRUSIMMUNE |
| infectable_mobtypes | Types of infectable mobs |
| max_stages | Count of stages of disease |
| mutation_chance | Probability of mutation if the necessary reagents are in the body |
| mutation_reagents | Necessary reagents |
| needs_all_cures | If FASLSE, you need one of any cure from the cures list. Otherwise, you need all the cures from the cure list |
| possible_mutations | List of diseases in which it can mutate |
| required_organs | Required organs |
| severity | If nonthreat, not marked on HUD |
| spread_from_dead_prob | Disease can contract others, if carrier is dead with this chance. Set to 0, if can't. Must be in [0, 100]. |
| stage | Current stage of disease |
| stage_prob | Probability of moving to the next stage for a tick |
| virus_heal_resistant | Immunity to Anti-Bodies Metabolism symptom |
Procs | |
| CanContract | Basic checks of the possibility of infecting a mob |
| Contract | Attempt to infect a mob Arguments: |
| has_cure | Returns the number of reagents from the cures list that are in the body |
| mutate | Transform a disease into another, if the requirements are met |
| stage_act | Main disease process, that executed every tick |
Var Details
affected_mob 
Mob that is suffering from this disease
can_contract_dead 
If TRUE, disease can contract dead mobs
can_immunity 
Immunity can be developed from the disease
can_progress_in_dead 
If TRUE, disease can progress in dead mobs
carrier 
If TRUE, host not affected by virus, but can spread it (mostly for viruses)
carrier_mobtypes 
Infectable mob types, that can only be carriers
curable 
Сan the disease be cured
cure_prob 
Probability of cure for a tick
cured_message 
Message when cured
cures 
List of cures if the disease has curable = TRUE, these are reagent ids
discovered 
If TRUE, this disease will show up on medical HUDs. Automatically set when it reaches mid-stage.
discovery_threshold 
The fraction of stages the disease must at least be at to show up on medical HUDs. Rounded up.
ignore_immunity 
Does it skip TRAIT_VIRUSIMMUNE
infectable_mobtypes 
Types of infectable mobs
max_stages 
Count of stages of disease
mutation_chance 
Probability of mutation if the necessary reagents are in the body
mutation_reagents 
Necessary reagents
needs_all_cures 
If FASLSE, you need one of any cure from the cures list. Otherwise, you need all the cures from the cure list
possible_mutations 
List of diseases in which it can mutate
required_organs 
Required organs
severity 
If nonthreat, not marked on HUD
spread_from_dead_prob 
Disease can contract others, if carrier is dead with this chance. Set to 0, if can't. Must be in [0, 100].
stage 
Current stage of disease
stage_prob 
Probability of moving to the next stage for a tick
virus_heal_resistant 
Immunity to Anti-Bodies Metabolism symptom
Proc Details
CanContract
Basic checks of the possibility of infecting a mob
Contract
Attempt to infect a mob Arguments:
- act_type - type of contract. Can be BITES, CONTACT, AIRBORNE or combination of them, for example CONTACT|AIRBORNE
- is_carrier - make this mob a carrier of the virus
- need_protection_check - check mob's clothing, internals, special masks etc
- zone - zone of contact ("l_leg", "head", etc or /obj/item/organ/external) Returns:
- /datum/disease/D - a new instance of the virus that contract the mob
- FALSE - otherwise
has_cure
Returns the number of reagents from the cures list that are in the body
mutate
Transform a disease into another, if the requirements are met
Returns:
- TRUE - if mutation was succesful
- FALSE - otherwise
stage_act
Main disease process, that executed every tick
Returns:
- TRUE - if process finished the work properlly
- FALSE - if disease was deleted