Adds a searchbar to the Traitor uplink (#20230)

* searching traitor uplink

* remove unused variable

* sirryan review
This commit is contained in:
Contrabang
2023-02-04 19:22:56 -06:00
committed by GitHub
parent 61995a6875
commit ce59b7b712
3 changed files with 62 additions and 10 deletions
+7 -1
View File
@@ -64,7 +64,13 @@ GLOBAL_LIST_EMPTY(world_uplinks)
if(I.job && I.job.len)
if(!(I.job.Find(job)) && uplink_type != UPLINK_TYPE_ADMIN)
continue
cats[cats.len]["items"] += list(list("name" = sanitize(I.name), "desc" = sanitize(I.description()),"cost" = I.cost, "hijack_only" = I.hijack_only, "obj_path" = I.reference, "refundable" = I.refundable))
cats[cats.len]["items"] += list(list(
"name" = sanitize(I.name),
"desc" = sanitize(I.description()),
"cost" = I.cost,
"hijack_only" = I.hijack_only,
"obj_path" = I.reference,
"refundable" = I.refundable))
uplink_items[I.reference] = I
uplink_cats = cats