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

asthma

Vars

albuterol_immediate_reduction_multWhen albuterol is inhaled, inflammation will be reduced via (inhaled_albuterol * albuterol_inflammation_reduction * albuterol_immediate_reduction_mult)
albuterol_inflammation_reductionIf [inhaled_albuterol] is above 0, we will reduce inflammation by this much per tick.
asthma_attack_raritiesAssoc list of (/datum/disease/asthma_attack typepath -> number). Used in pickweight for when we pick a random asthma attack to apply.
chance_for_attack_to_happen_per_secondEvery second, an asthma attack can happen via this probability. 0-1.
current_attackThe current asthma attack trying to kill our owner.
histamine_OD_inflammationIf our owner is ODing on histamine, inflammation will increase by this per tick.
histamine_inflammationIf our owner is metabolizing histamine, inflammation will increase by this per tick.
hit_max_mult_at_inflammation_percentAt this percentage of inflammation, our lung pressure mult reaches 0. From 0-1.
inflammationCurrent inflammation of the lungs.
inflammation_on_smokeThe amount of inflammation we will receive when our owner breathes smoke.
inhaled_albuterolA tracker variable for how much albuterol has been inhaled.
max_inflammationHighest possible inflammation. Interacts with [hit_max_mult_at_inflammation_percent]
max_time_between_attacksAfter an attack ends, this is the maximum time we must wait before we attack again.
min_time_between_attacksAfter an attack ends, this is the minimum time we must wait before we attack again.
next_attack_cooldownCan we cause an asthma attack?
passive_inflammation_reductionThe amount [inflammation] reduces every second while our owner is off stasis and alive.
time_first_attack_can_happenworld.time + this is the time the first attack can happen. Used on spawn.

Procs

adjust_albuterol_levelsSetter proc for [inhaled_albuterol]. Adjusts inflammation immediately.
adjust_inflammationSetter proc for [inflammation]. Adjusts the amount by lung health, adjusts pressure mult, gives feedback messages if silent is FALSE.
attack_deletingSignal proc for when our asthma attack qdels. Unsets our refs to it and resets [next_attack_cooldown].
do_asthma_attackCauses an asthma attack via infecting our owner with the attack disease. Notifies ghosts.
do_inflammation_change_feedbackSends feedback to our owner of which direction our asthma is intensifying/recovering.
exposed_to_reagentsSignal proc for when our owner receives reagents. If we receive albuterol via inhalation, we adjust inhaled albuterol by that amount. If we are smoking, we increase inflammation.
get_lung_health_multReturns the % of health our lungs have, from 1-0. Used in reducing recovery and intensifying inflammation.
get_pressure_multReturns the pressure mult to be applied to our lungs.
holder_exposed_to_smokeSignal proc for when we are exposed to smoke. Increases inflammation.
on_full_healSignal handler for COMSIG_LIVING_POST_FULLY_HEAL. Heals our asthma.
organ_removedSignal proc for when our lungs are removed. Resets all our variables.
reset_asthmaResets our asthma to normal. No inflammation, no pressure mult.

Var Details

albuterol_immediate_reduction_mult

When albuterol is inhaled, inflammation will be reduced via (inhaled_albuterol * albuterol_inflammation_reduction * albuterol_immediate_reduction_mult)

albuterol_inflammation_reduction

If [inhaled_albuterol] is above 0, we will reduce inflammation by this much per tick.

asthma_attack_rarities

Assoc list of (/datum/disease/asthma_attack typepath -> number). Used in pickweight for when we pick a random asthma attack to apply.

chance_for_attack_to_happen_per_second

Every second, an asthma attack can happen via this probability. 0-1.

current_attack

The current asthma attack trying to kill our owner.

histamine_OD_inflammation

If our owner is ODing on histamine, inflammation will increase by this per tick.

histamine_inflammation

If our owner is metabolizing histamine, inflammation will increase by this per tick.

hit_max_mult_at_inflammation_percent

At this percentage of inflammation, our lung pressure mult reaches 0. From 0-1.

inflammation

Current inflammation of the lungs.

inflammation_on_smoke

The amount of inflammation we will receive when our owner breathes smoke.

inhaled_albuterol

A tracker variable for how much albuterol has been inhaled.

max_inflammation

Highest possible inflammation. Interacts with [hit_max_mult_at_inflammation_percent]

max_time_between_attacks

After an attack ends, this is the maximum time we must wait before we attack again.

min_time_between_attacks

After an attack ends, this is the minimum time we must wait before we attack again.

next_attack_cooldown

Can we cause an asthma attack?

passive_inflammation_reduction

The amount [inflammation] reduces every second while our owner is off stasis and alive.

time_first_attack_can_happen

world.time + this is the time the first attack can happen. Used on spawn.

Proc Details

adjust_albuterol_levels

Setter proc for [inhaled_albuterol]. Adjusts inflammation immediately.

adjust_inflammation

Setter proc for [inflammation]. Adjusts the amount by lung health, adjusts pressure mult, gives feedback messages if silent is FALSE.

attack_deleting

Signal proc for when our asthma attack qdels. Unsets our refs to it and resets [next_attack_cooldown].

do_asthma_attack

Causes an asthma attack via infecting our owner with the attack disease. Notifies ghosts.

do_inflammation_change_feedback

Sends feedback to our owner of which direction our asthma is intensifying/recovering.

exposed_to_reagents

Signal proc for when our owner receives reagents. If we receive albuterol via inhalation, we adjust inhaled albuterol by that amount. If we are smoking, we increase inflammation.

get_lung_health_mult

Returns the % of health our lungs have, from 1-0. Used in reducing recovery and intensifying inflammation.

get_pressure_mult

Returns the pressure mult to be applied to our lungs.

holder_exposed_to_smoke

Signal proc for when we are exposed to smoke. Increases inflammation.

on_full_heal

Signal handler for COMSIG_LIVING_POST_FULLY_HEAL. Heals our asthma.

organ_removed

Signal proc for when our lungs are removed. Resets all our variables.

reset_asthma

Resets our asthma to normal. No inflammation, no pressure mult.