// Token: 0x06002797 RID: 10135 RVA: 0x000AAE40 File Offset: 0x000A9040
 private void Check()
 {
     if (Run.instance && Run.instance.GetType() == typeof(Run) && base.localUser != null && base.localUser.currentNetworkUser != null)
     {
         SceneDef  sceneDefForCurrentScene = SceneCatalog.GetSceneDefForCurrentScene();
         StatSheet currentStats            = base.localUser.currentNetworkUser.masterPlayerStatsComponent.currentStats;
         if (sceneDefForCurrentScene.stageOrder >= 3 && currentStats.GetStatValueULong(StatDef.totalHealthHealed) <= 0f && base.localUser.cachedBody && base.localUser.cachedBody.healthComponent && base.localUser.cachedBody.healthComponent.alive)
         {
             base.Grant();
         }
     }
 }
        // Token: 0x06002877 RID: 10359 RVA: 0x000AC484 File Offset: 0x000AA684
        private int GetUniquePortalsUsedCount()
        {
            StatSheet statSheet = base.userProfile.statSheet;
            int       num       = 0;

            foreach (StatDef statDef in this.statsToCheck)
            {
                if (statSheet.GetStatValueULong(statDef) > 0UL)
                {
                    num++;
                }
            }
            return(num);
        }
Пример #3
0
 // Token: 0x06002950 RID: 10576 RVA: 0x000ADB70 File Offset: 0x000ABD70
 private static bool EverPickedUpLunarItems(StatSheet statSheet)
 {
     foreach (ItemIndex key in ItemCatalog.lunarItemList)
     {
         if (statSheet.GetStatValueULong(PerItemStatDef.totalCollected.FindStatDef(key)) > 0UL)
         {
             return(true);
         }
     }
     foreach (EquipmentIndex equipmentIndex in EquipmentCatalog.equipmentList)
     {
         if (EquipmentCatalog.GetEquipmentDef(equipmentIndex).isLunar&& statSheet.GetStatValueDouble(PerEquipmentStatDef.totalTimeHeld.FindStatDef(equipmentIndex)) > 0.0)
         {
             return(true);
         }
     }
     return(false);
 }