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

deliver first element!

bespoke element (1 per set of specific arguments in existence) that makes crates unable to be sold UNTIL they are opened once (to where this element, and the block, are removed) Used for non-cargo orders to not get turned into a quick buck

for the future coders or just me: please convert this into a component to allow for more feedback on the crate's status (clicking when unlocked, overlays, etc)

Vars

goal_area_typetypepath of the area we will be allowed to be opened in
paymenthow much is earned on delivery of the crate

Procs

area_checkregisters the signal that blocks target from opening when outside of the valid area, returns if it is now unlocked
on_examinesignal sent from examining target
on_post_opensignal called by successfully opening target
on_pre_opensignal called before opening target, blocks opening
remove_lockcalled to remove the element in a flavorful way, either from delivery or from emagging/breaking open the crate

Var Details

goal_area_type

typepath of the area we will be allowed to be opened in

payment

how much is earned on delivery of the crate

Proc Details

area_check

registers the signal that blocks target from opening when outside of the valid area, returns if it is now unlocked

on_examine

signal sent from examining target

on_post_open

signal called by successfully opening target

on_pre_open

signal called before opening target, blocks opening

remove_lock

called to remove the element in a flavorful way, either from delivery or from emagging/breaking open the crate