uplink
![code/datums/components/uplink.dm 10](git.png)
Uplinks
All /obj/item(s) have a hidden_uplink var. By default it's null. Give the item one with 'new(src') (it must be in its contents). Then add 'uses.' Use whatever conditionals you want to check that the user has an uplink, and then call interact() on their uplink. You might also want the uplink menu to open if active. Check if the uplink is 'active' and then interact() with it.
Vars | |
active | Whether the uplink is currently active or not |
---|---|
allow_restricted | Whether this uplink allows restricted items to be accessed |
failsafe_code | The failsafe code that causes this uplink to blow up. |
lockable | Whether this uplink can be locked or not |
locked | Whether the uplink is locked or not. |
name | Name of the uplink |
owner | Current owner of the uplink |
previous_attempts | Used for pen uplink |
purchase_log | Purchase log, listing all the purchases this uplink has made |
unlock_code | Code to unlock the uplink. |
unlock_note | The unlock note that is sent to the traitor with this uplink. This is not modular and not recommended to expand upon |
unlock_text | The unlock text that is sent to the traitor with this uplink. This is not modular and not recommended to expand upon |
uplink_handler | The current linked uplink handler. |
Procs | |
handle_uplink_replaced | When a new uplink is made via the syndicate beacon it locks all lockable uplinks and destroys replacement uplinks |
lock_uplink | Proc that locks uplinks |
on_heard | Proc that unlocks a locked replacement uplink when it hears the unlock code from their datum |
Var Details
active
![code/datums/components/uplink.dm 15](git.png)
Whether the uplink is currently active or not
allow_restricted
![code/datums/components/uplink.dm 21](git.png)
Whether this uplink allows restricted items to be accessed
failsafe_code
![code/datums/components/uplink.dm 42](git.png)
The failsafe code that causes this uplink to blow up.
lockable
![code/datums/components/uplink.dm 17](git.png)
Whether this uplink can be locked or not
locked
![code/datums/components/uplink.dm 19](git.png)
Whether the uplink is locked or not.
name
![code/datums/components/uplink.dm 13](git.png)
Name of the uplink
owner
![code/datums/components/uplink.dm 23](git.png)
Current owner of the uplink
previous_attempts
![code/datums/components/uplink.dm 31](git.png)
Used for pen uplink
purchase_log
![code/datums/components/uplink.dm 25](git.png)
Purchase log, listing all the purchases this uplink has made
unlock_code
![code/datums/components/uplink.dm 29](git.png)
Code to unlock the uplink.
unlock_note
![code/datums/components/uplink.dm 38](git.png)
The unlock note that is sent to the traitor with this uplink. This is not modular and not recommended to expand upon
unlock_text
![code/datums/components/uplink.dm 36](git.png)
The unlock text that is sent to the traitor with this uplink. This is not modular and not recommended to expand upon
uplink_handler
![code/datums/components/uplink.dm 27](git.png)
The current linked uplink handler.
Proc Details
handle_uplink_replaced
When a new uplink is made via the syndicate beacon it locks all lockable uplinks and destroys replacement uplinks
lock_uplink
Proc that locks uplinks
on_heard
Proc that unlocks a locked replacement uplink when it hears the unlock code from their datum