/tg/ Station 13 - Modules - TypesVar Details

chemical synthesizer

A single machine that produces a single chem. Can be placed in unison with others through plumbing to create chemical factories

Vars

amountAmount we produce for every process. Ideally keep under 5 since thats currently the standard duct capacity
bufferThe maximum we can produce for every process
dispensable_reagentsstraight up copied from chem dispenser. Being a subtype would be extremely tedious and making it global would restrict potential subtypes using different dispensable_reagents
possible_amountsI track them here because I have no idea how I'd make tgui loop like that
reagent_idThe reagent we are producing. We are a typepath, but are also typecast because there's several occations where we need to use initial.

Var Details

amount

Amount we produce for every process. Ideally keep under 5 since thats currently the standard duct capacity

buffer

The maximum we can produce for every process

dispensable_reagents

straight up copied from chem dispenser. Being a subtype would be extremely tedious and making it global would restrict potential subtypes using different dispensable_reagents

possible_amounts

I track them here because I have no idea how I'd make tgui loop like that

reagent_id

The reagent we are producing. We are a typepath, but are also typecast because there's several occations where we need to use initial.