mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-20 19:49:39 +01:00
Adds a signal to buying items from the uplink (& fixes TC misinfo) (#81372)
## About The Pull Request Adds a signal when someone buys an item from the uplink and removes single-letter vars from the ``spawn_item`` proc, and adds/standardizes add/removing of telecrystals from uplinks (and admin setting how much TC they have) to ensure the UI always has the right amount of telecrystals displayed in it. ## Why It's Good For The Game There are reasons why someone would want to hook up to a traitor's uplink and listen to items they purchase to do any special effect on-purchase, so this adds support to do anything in the future with it. Also tells players how much TC they actually have without forcing them to close/reopen the UI every time they insert some TC in it by hand. ## Changelog 🆑 fix: Uplinks now update their UI when you add telecrystals in them, so you don't need to close and reopen it. /🆑
This commit is contained in:
@@ -33,7 +33,7 @@
|
||||
/mob/living/basic/drone/syndrone/Initialize(mapload)
|
||||
. = ..()
|
||||
var/datum/component/uplink/hidden_uplink = internal_storage.GetComponent(/datum/component/uplink)
|
||||
hidden_uplink.set_telecrystals(telecrystal_count)
|
||||
hidden_uplink.uplink_handler.set_telecrystals(telecrystal_count)
|
||||
|
||||
/obj/effect/mob_spawn/ghost_role/drone/syndrone
|
||||
name = "syndrone shell"
|
||||
|
||||
Reference in New Issue
Block a user