Skip to content

Commit

Permalink
Fixes traitors having some uplink items missing from their PDAs. (#6845)
Browse files Browse the repository at this point in the history
  • Loading branch information
Aranclanos committed Jun 22, 2021
1 parent 6f0b693 commit 458f78c
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions UnityProject/Assets/Scripts/UI/Items/PDA/GUI_PDAUplinkItem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,14 @@ public void OnPageDeactivated()
public void GenerateEntries(UplinkCategory category)
{
controller.SetBreadcrumb($"{controller.UPLINK_DIRECTORY}/categories/{category.CategoryName}/");
bool isNukie = controller.mainController.PDA.IsNukeOps;
for (int i = 0; i < category.ItemList.Count; i++)
var isNukie = controller.mainController.PDA.IsNukeOps;
foreach (var uplinkItem in category.ItemList)
{
if (isNukie || category.ItemList[i].IsNukeOps == false)
if (isNukie || uplinkItem.IsNukeOps == false)
{
dynamicList.AddItem();
dynamicList.Entries[i].GetComponent<GUI_PDAUplinkItemTemplate>().ReInit(category.ItemList[i]);
var entry = dynamicList.Entries[dynamicList.Entries.Length-1];
entry.GetComponent<GUI_PDAUplinkItemTemplate>().ReInit(uplinkItem);
}
}
}
Expand Down

0 comments on commit 458f78c

Please sign in to comment.