Goonstation 13 - Modules - TypesVar Details - Proc Details

/datum/syndicate_buylist

Vars

br_allowedIf the item can be created as loot in Battle Royale
can_buyBitflags for what uplinks can buy this item (see _std/defines/uplink.dm for flags)
categoryThe category of the item, currently unused (somewhat used in the Nukeop Commander uplink)
costThe TC cost of the datum in a buylist. Set to 0 to make it unavailable
descThe extended description that will go in the "about" section of the item
itemA typepath for the item that will be spawned when the datum is purchased
item2A typepath for the second, optional, item that will be spawned when the datum is purchased
item3A typepath for the third, optional, item that will be spawned when the datum is purchased
jobA list of job names that you want the item to be restricted to, e.g. list("Clown", "Captain")
max_buyThe maximum amount a given uplink can buy this item
nameName of the buylist entry
not_in_cratesIf the item should show up in surplus crates or not
objectiveFor items that only can be purchased when you have a specfic objective. Needs to be a type, e.g. /datum/objective/assassinate
surplus_weightHow often should this show up in a surplus crate/spy bounty?
telecrystalIs this buylist entry for ejecting TC from an uplink?
vr_allowedIf the item should be allowed to be purchased in the VR murderbox

Procs

run_on_spawnRuns on the purchase of the buylist datum

Var Details

br_allowed

If the item can be created as loot in Battle Royale

can_buy

Bitflags for what uplinks can buy this item (see _std/defines/uplink.dm for flags)

category

The category of the item, currently unused (somewhat used in the Nukeop Commander uplink)

cost

The TC cost of the datum in a buylist. Set to 0 to make it unavailable

desc

The extended description that will go in the "about" section of the item

item

A typepath for the item that will be spawned when the datum is purchased

item2

A typepath for the second, optional, item that will be spawned when the datum is purchased

item3

A typepath for the third, optional, item that will be spawned when the datum is purchased

job

A list of job names that you want the item to be restricted to, e.g. list("Clown", "Captain")

max_buy

The maximum amount a given uplink can buy this item

name

Name of the buylist entry

not_in_crates

If the item should show up in surplus crates or not

objective

For items that only can be purchased when you have a specfic objective. Needs to be a type, e.g. /datum/objective/assassinate

surplus_weight

How often should this show up in a surplus crate/spy bounty?

telecrystal

Is this buylist entry for ejecting TC from an uplink?

vr_allowed

If the item should be allowed to be purchased in the VR murderbox

Proc Details

run_on_spawn

Runs on the purchase of the buylist datum

Arguments: item, the item you're expecting owner, the person who bought the item in_surplus_crate, is TRUE if the item is in a surplus crate, FALSE otherwise. uplink, the uplink that bought the item