mirror of
https://github.com/Citadel-Station-13/Citadel-Station-13-RP.git
synced 2025-12-09 15:28:26 +00:00
* Time to become our TGUI God. * Visually sprucing the copyrights. These shouldn't be ignored :) * babababa * https://github.com/tgstation/tgstation/pull/50422 * dooootdooot * Holy fuck Updates the tools folder Updates our build tooling Updates TGUI MASSIVELY I'm going to go scream in a hole now * ?? * Was it this dum thing? * orrrr * It's this isn't it * Did it manually * hubah * TGUI Changelog * oops * What if I use the original? * Lets try this again * Shit commenting out for now * asdasd * Fuck it use the old one and remember to replace later * Updates yarn.lock * Lets try something horrid * Nope it HATES THAT * fucc * The great eslinting * HOLY SHIT * Final? * ? * asd tgstation/tgstation/pull/59914 tgstation/tgstation/pull/66317 * Improved Asset handling. * Oops * Subsystem stuff * Recompiles the Changelong again. * Finally Fixed Communicators * Compiled Changelogs... AGAIN
40 lines
1.3 KiB
Plaintext
40 lines
1.3 KiB
Plaintext
/// Sends information needed for uplinks
|
|
/datum/asset/json/uplink
|
|
name = "uplink"
|
|
|
|
/datum/asset/json/uplink/generate()
|
|
var/list/data = list()
|
|
var/list/categories = list()
|
|
var/list/items = list()
|
|
for(var/datum/uplink_category/category as anything in subtypesof(/datum/uplink_category))
|
|
categories += category
|
|
categories = sortTim(categories, .proc/cmp_uplink_category_desc)
|
|
|
|
var/list/new_categories = list()
|
|
for(var/datum/uplink_category/category as anything in categories)
|
|
new_categories += initial(category.name)
|
|
categories = new_categories
|
|
|
|
for(var/datum/uplink_item/item_path as anything in subtypesof(/datum/uplink_item))
|
|
var/datum/uplink_item/item = new item_path()
|
|
if(item.item) {
|
|
items += list(list(
|
|
"id" = item_path,
|
|
"name" = item.name,
|
|
"cost" = item.cost,
|
|
"desc" = item.desc,
|
|
"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,
|
|
"progression_minimum" = item.progression_minimum,
|
|
))
|
|
}
|
|
SStraitor.uplink_items += item
|
|
SStraitor.uplink_items_by_type[item_path] = item
|
|
|
|
data["items"] = items
|
|
data["categories"] = categories
|
|
return data
|