SS1984 - Modules - TypesVar Details - Proc Details

uplink_item

Vars

can_discountWhether item can be on sales category.
categoryUplink category.
costItem cost in TC.
cybernetic_sensitiveThis item can cause harm to robots and augmented people, used to tripple the cost with "cybernetic revolution" station trait
descUplink description.
excludefromEmpty list does nothing. Place the name of uplink type you don't want this item to be available in here.
hijack_onlyCan this item be purchased only with hijack objective?
itemItem object, must be defined in every datum entry and must be /obj path.
item_to_refund_costAssociative list UID - refund cost
jobEmpty list means it is available for every job assignment.
limited_stockCan you only buy so many? -1 allows for infinite purchases.
nameUplink name.
raceEmpty list means it is available for every in game species.
refund_pathAlternative path for refunds, in case the item purchased isn't what is actually refunded (ie: holoparasites).
refundableIs this item refundable?
surplusChance of being included in the surplus crate (when pick() selects it).
uplinktypesEmpty list means it is in all the uplink types. Otherwise place the uplink type here.

Procs

buyHandles buying an item, and logging.
descriptionActulizes datum description.
handle_discount_refundHandles refund tracking for discount category items.
log_purchaseLogs the purchase to game logs and admins, and reduces limited stock if applicable.
spawn_itemSpawns object item contained as path in datum item variable if possible.

Var Details

can_discount

Whether item can be on sales category.

category

Uplink category.

cost

Item cost in TC.

cybernetic_sensitive

This item can cause harm to robots and augmented people, used to tripple the cost with "cybernetic revolution" station trait

desc

Uplink description.

excludefrom

Empty list does nothing. Place the name of uplink type you don't want this item to be available in here.

hijack_only

Can this item be purchased only with hijack objective?

item

Item object, must be defined in every datum entry and must be /obj path.

item_to_refund_cost

Associative list UID - refund cost

job

Empty list means it is available for every job assignment.

limited_stock

Can you only buy so many? -1 allows for infinite purchases.

name

Uplink name.

race

Empty list means it is available for every in game species.

refund_path

Alternative path for refunds, in case the item purchased isn't what is actually refunded (ie: holoparasites).

refundable

Is this item refundable?

surplus

Chance of being included in the surplus crate (when pick() selects it).

uplinktypes

Empty list means it is in all the uplink types. Otherwise place the uplink type here.

Proc Details

buy

Handles buying an item, and logging.

Arguments:

description

Actulizes datum description.

handle_discount_refund

Handles refund tracking for discount category items.

log_purchase

Logs the purchase to game logs and admins, and reduces limited stock if applicable.

spawn_item

Spawns object item contained as path in datum item variable if possible.

Arguments: