Space Station 13 - Modules - TypesVar Details - Proc Details

Rep Purchase

Describes something that can be purchased with Contractor Rep.

Vars

costThe price in Contractor Rep of the purchase.
descriptionThe description of the purchase.
nameThe display name of the purchase.
stockHow many times the purchase can be made. -1 means infinite stock.

Procs

buyAttempts to perform the purchase.
on_buyCalled when the purchase was made successfully.

Var Details

cost

The price in Contractor Rep of the purchase.

description

The description of the purchase.

name

The display name of the purchase.

stock

How many times the purchase can be made. -1 means infinite stock.

Proc Details

buy

Attempts to perform the purchase.

Returns TRUE or FALSE depending on whether the purchase succeeded.

Arguments:

on_buy

Called when the purchase was made successfully.

Arguments: