Space Station 13 - Modules - Types — Var Details - Proc Details

inspiration

Simple data container component containing level up statistics. This does NOT make something a valid inspiration. It simply holds the data in case it gets used as one! To actually use it, the typepath of the object has to be contained within the sanity datum valid_inspiration list. Assign this component to an item specifying which statistics should be levelled up, and the item will be able to be used as an inspiration. The format of statistics is list(STAT_DEFINE = number) or a proc that returns such a list. (This would've been better as an element instead of a component, but currently elements don't exist on cev eris. F)

Vars

get_statsCallback used for dynamic calculation of the stats to level up, used if stats is null. It must accept NO arguments, and it needs to return a list shaped like stats.
statsSimple list defined as list(STAT_DEFINE = number).

Procs

InitializeStatistics can be a list (static) or a callback to a proc that returns a list (of the same format)
calculate_statisticsReturns stats if defined, otherwise it returns the return value of get_stats

Var Details

get_stats

Callback used for dynamic calculation of the stats to level up, used if stats is null. It must accept NO arguments, and it needs to return a list shaped like stats.

stats

Simple list defined as list(STAT_DEFINE = number).

Proc Details

Initialize

Statistics can be a list (static) or a callback to a proc that returns a list (of the same format)

calculate_statistics

Returns stats if defined, otherwise it returns the return value of get_stats