// Token: 0x060014ED RID: 5357 RVA: 0x00059610 File Offset: 0x00057810 private void Build() { List <SurvivorIndex> list = new List <SurvivorIndex>(); for (int i = 0; i < SurvivorCatalog.idealSurvivorOrder.Length; i++) { SurvivorIndex survivorIndex = SurvivorCatalog.idealSurvivorOrder[i]; SurvivorDef survivorDef = SurvivorCatalog.GetSurvivorDef(survivorIndex); if (this.ShouldDisplaySurvivor(survivorDef)) { list.Add(survivorIndex); } } this.survivorIconControllers.AllocateElements(list.Count); ReadOnlyCollection <SurvivorIconController> elements = this.survivorIconControllers.elements; for (int j = 0; j < list.Count; j++) { elements[j].survivorIndex = list[j]; } for (int k = list.Count; k < SurvivorCatalog.survivorMaxCount; k++) { UnityEngine.Object.Instantiate <GameObject>(this.WIPButtonPrefab, this.iconContainer).gameObject.SetActive(true); } }
// Token: 0x06001B2F RID: 6959 RVA: 0x00073EB0 File Offset: 0x000720B0 private static int GuessUnlockableSortScore(UnlockableDef unlockableDef) { int num = 0; int num2 = num + 200; int num3 = num2 + 200; int num4 = num3 + 200; int result = num4 + 200; if (unlockableDef == null) { return(10000); } string name = unlockableDef.name; int i = 0; while (i < SurvivorCatalog.idealSurvivorOrder.Length) { SurvivorIndex survivorIndex = SurvivorCatalog.idealSurvivorOrder[i]; if (name.Contains(survivorIndex.ToString())) { if (SurvivorCatalog.GetSurvivorDef(survivorIndex).unlockableName == name) { return(num3 + i * 10); } int num5 = num4 + i * 10; if (name.Contains("Skin")) { num5++; } return(num5); } else { i++; } } ItemDef itemDef = ItemCatalog.allItems.Select(new Func <ItemIndex, ItemDef>(ItemCatalog.GetItemDef)).FirstOrDefault((ItemDef v) => v.unlockableName == unlockableDef.name); if (itemDef != null) { return((int)(num + itemDef.tier)); } EquipmentDef equipmentDef = EquipmentCatalog.allEquipment.Select(new Func <EquipmentIndex, EquipmentDef>(EquipmentCatalog.GetEquipmentDef)).FirstOrDefault((EquipmentDef v) => v.unlockableName == unlockableDef.name); if (equipmentDef == null) { return(result); } if (equipmentDef.isBoss) { return(num2 + 1); } if (equipmentDef.isLunar) { return(num2 - 1); } return(num2); }
// Token: 0x06001B4E RID: 6990 RVA: 0x0007F918 File Offset: 0x0007DB18 public static Texture GetSurvivorPortrait(SurvivorIndex survivorIndex) { SurvivorDef survivorDef = SurvivorCatalog.GetSurvivorDef(survivorIndex); if (survivorDef.bodyPrefab != null) { CharacterBody component = survivorDef.bodyPrefab.GetComponent <CharacterBody>(); if (component) { return(component.portraitIcon); } } return(null); }