mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-26 06:29:23 +01:00
Re-adds species uplink items (and some minor fixes) (#64460)
This commit is contained in:
@@ -39,7 +39,15 @@
|
||||
/// The failsafe code that causes this uplink to blow up.
|
||||
var/failsafe_code
|
||||
|
||||
/datum/component/uplink/Initialize(owner, lockable = TRUE, enabled = FALSE, uplink_flag = UPLINK_TRAITORS, starting_tc = TELECRYSTALS_DEFAULT, has_progression = FALSE, datum/uplink_handler/uplink_handler_override)
|
||||
/datum/component/uplink/Initialize(
|
||||
owner,
|
||||
lockable = TRUE,
|
||||
enabled = FALSE,
|
||||
uplink_flag = UPLINK_TRAITORS,
|
||||
starting_tc = TELECRYSTALS_DEFAULT,
|
||||
has_progression = FALSE,
|
||||
datum/uplink_handler/uplink_handler_override,
|
||||
)
|
||||
if(!isitem(parent))
|
||||
return COMPONENT_INCOMPATIBLE
|
||||
|
||||
@@ -57,6 +65,7 @@
|
||||
RegisterSignal(parent, COMSIG_RADIO_NEW_FREQUENCY, .proc/new_frequency)
|
||||
else if(istype(parent, /obj/item/pen))
|
||||
RegisterSignal(parent, COMSIG_PEN_ROTATED, .proc/pen_rotation)
|
||||
|
||||
if(owner)
|
||||
src.owner = owner
|
||||
LAZYINITLIST(GLOB.uplink_purchase_logs_by_key)
|
||||
@@ -184,11 +193,12 @@
|
||||
"name" = item.name,
|
||||
"cost" = item.cost,
|
||||
"desc" = item.desc,
|
||||
"category" = item.category? initial(item.category.name) : null,
|
||||
"category" = item.category ? initial(item.category.name) : null,
|
||||
"purchasable_from" = item.purchasable_from,
|
||||
"restricted" = item.restricted,
|
||||
"limited_stock" = item.limited_stock,
|
||||
"restricted_roles" = item.restricted_roles,
|
||||
"restricted_species" = item.restricted_species,
|
||||
"progression_minimum" = item.progression_minimum,
|
||||
"ref" = REF(item)
|
||||
))
|
||||
|
||||
Reference in New Issue
Block a user