Fixes species uplinks (#64816)

I was fucking deranged when I originally made this. I not only didn't actually include the assigned species to the uplink's ui data, but I made the code add each objective item to the uplink list twice. This fixes both of those problems, and makes it more readable.

Fixes a mistake I caused.
Closes #64806 (Species-Restricted uplink items don't appear)

Role-restricted and species restricted items can be purchased again.
Species-restricted items no longer appear in surplus.
This commit is contained in:
John Willard
2022-02-11 01:26:10 -08:00
committed by GitHub
parent 911ada6c13
commit b6808270df
4 changed files with 12 additions and 8 deletions
+2 -1
View File
@@ -200,7 +200,7 @@
"restricted_roles" = item.restricted_roles,
"restricted_species" = item.restricted_species,
"progression_minimum" = item.progression_minimum,
"ref" = REF(item)
"ref" = REF(item),
))
var/list/remaining_stock = list()
@@ -218,6 +218,7 @@
data["has_objectives"] = uplink_handler.has_objectives
data["lockable"] = lockable
data["assigned_role"] = uplink_handler.assigned_role
data["assigned_species"] = uplink_handler.assigned_species
data["debug"] = uplink_handler.debug_mode
return data