Rep Purchase ![code/modules/antagonists/traitor/contractor/datums/rep_purchases/rep_purchase_base.dm 6](git.png)
Describes something that can be purchased with Contractor Rep.
Vars | |
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. |
Procs | |
buy | Attempts to perform the purchase. |
on_buy | Called when the purchase was made successfully. |
Var Details
cost ![code/modules/antagonists/traitor/contractor/datums/rep_purchases/rep_purchase_base.dm 12](git.png)
The price in Contractor Rep of the purchase.
description ![code/modules/antagonists/traitor/contractor/datums/rep_purchases/rep_purchase_base.dm 10](git.png)
The description of the purchase.
name ![code/modules/antagonists/traitor/contractor/datums/rep_purchases/rep_purchase_base.dm 8](git.png)
The display name of the purchase.
stock ![code/modules/antagonists/traitor/contractor/datums/rep_purchases/rep_purchase_base.dm 15](git.png)
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:
- hub - The contractor hub.
- user - The user who is making the purchase.
on_buy
Called when the purchase was made successfully.
Arguments:
- hub - The contractor hub.
- user - The user who made the purchase.