byond - Modules - TypesVar Details - Proc Details

kidneys

Vars

current_medicine_capHow many drugs we can take before they overwhelm us. Decreases with damage
current_medicine_countTracks the number of reagent/medicine datums we currently have
new_medicinesTotal medicines added since last tick
old_overflowWhether we were over cap the last time we checked.
removed_medicinesTotal medicines removed since last tick

Procs

owner_added_reagentSignaled proc. Check if the added reagent was under reagent/medicine. If so, increment medicine counter and potentially notify owner.
owner_removed_reagentSignaled proc. Check if the removed reagent was under reagent/medicine. If so, decrement medicine counter and potentially notify owner.

Var Details

current_medicine_cap

How many drugs we can take before they overwhelm us. Decreases with damage

current_medicine_count

Tracks the number of reagent/medicine datums we currently have

new_medicines

Total medicines added since last tick

old_overflow

Whether we were over cap the last time we checked.

removed_medicines

Total medicines removed since last tick

Proc Details

owner_added_reagent

Signaled proc. Check if the added reagent was under reagent/medicine. If so, increment medicine counter and potentially notify owner.

owner_removed_reagent

Signaled proc. Check if the removed reagent was under reagent/medicine. If so, decrement medicine counter and potentially notify owner.