private void reconstruct()
        {
            base.clearQuickLookup();
            this.m_augs.Clear();
            this.m_perkInstanceToAugMap.Clear();
            List <PlayerAugmentation> list = GameLogic.Binder.PlayerAugmentationResources.getOrderedList();

            for (int i = 0; i < list.Count; i++)
            {
                PlayerAugmentation augmentation = list[i];
                bool flag = false;
                for (int j = 0; j < this.Instances.Count; j++)
                {
                    if (this.Instances[j].PlayerAugmentationId == augmentation.Id)
                    {
                        flag = true;
                        break;
                    }
                }
                this.m_augs.Add(augmentation.Id, flag);
                this.m_perkInstanceToAugMap.Add(augmentation.PerkInstance, augmentation);
                if (flag)
                {
                    base.addQuickLookupPerkInstance(augmentation.PerkInstance, false);
                }
            }
            base.refreshQuickLookup();
        }
Exemple #2
0
 public bool shouldNotifyAug(PlayerAugmentation aug)
 {
     if (this.m_inspectedAugNotifiers[aug])
     {
         return(false);
     }
     return(this.Player.Augmentations.canBuy(aug.Id));
 }
Exemple #3
0
        public void markAllAugNotificationsThatWeCanPurchaseAsInspected()
        {
            List <PlayerAugmentation> list = GameLogic.Binder.PlayerAugmentationResources.getOrderedList();
            int num = 0;

            for (int i = 0; i < list.Count; i++)
            {
                PlayerAugmentation augmentation = list[i];
                if (!this.Player.Augmentations.hasAugmentation(augmentation.Id))
                {
                    num++;
                    if (this.Player.Augmentations.canBuy(augmentation.Id))
                    {
                        this.m_inspectedAugNotifiers[augmentation] = true;
                    }
                    if (num > 6)
                    {
                        break;
                    }
                }
            }
            this.refreshAugShopInspectedFlag();
        }
Exemple #4
0
        public void refreshAugShopInspectedFlag()
        {
            List <PlayerAugmentation> list = GameLogic.Binder.PlayerAugmentationResources.getOrderedList();
            int num = 0;

            for (int i = 0; i < list.Count; i++)
            {
                PlayerAugmentation aug = list[i];
                if (!this.Player.Augmentations.hasAugmentation(aug.Id))
                {
                    num++;
                    if (this.shouldNotifyAug(aug))
                    {
                        this.AugmentationShopInspected = false;
                        return;
                    }
                    if (num > 6)
                    {
                        break;
                    }
                }
            }
            this.AugmentationShopInspected = true;
        }