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

crate

Vars

lockaction to lock us
lockedcan we be opened or closed, if false we can
max_mob_sizemax mob size
mob_storage_capacityA cap for mobs. Mobs count towards the item cap. Same purpose as above.
openedare we open
storage_capacityA cap for items in the mimic. Prevents the mimic from eating enough stuff to cause lag when opened.

Procs

insertCalled by toggle_open to put items inside the mimic when it's being closed
toggle_openUsed to open and close the mimic

Var Details

lock

action to lock us

locked

can we be opened or closed, if false we can

max_mob_size

max mob size

mob_storage_capacity

A cap for mobs. Mobs count towards the item cap. Same purpose as above.

opened

are we open

storage_capacity

A cap for items in the mimic. Prevents the mimic from eating enough stuff to cause lag when opened.

Proc Details

insert

Called by toggle_open to put items inside the mimic when it's being closed

Will return CANT_INSERT_FULL (-1) if the insertion fails due to the storage capacity of the mimic having been reached Will return FALSE if insertion fails Will return TRUE if insertion succeeds Arguments:

toggle_open

Used to open and close the mimic

Will insert tile contents into the mimic when closing Will dump mimic contents into the time when opening Does nothing if the mimic locked itself