Esempio n. 1
0
 // Token: 0x06000018 RID: 24 RVA: 0x00002BBC File Offset: 0x00000DBC
 public new static WinState.EndgameTracker CreateAndAddTracker(WinState.EndgameID ID, List <WinState.EndgameTracker> endgameTrackers)
 {
     if (ID == WinState.EndgameID.Traveller)
     {
         WinState.EndgameTracker endgameTracker = new WinState.BoolArrayTracker(ID, 12 + patch_WinState.NumberOfCustomRegions());
         if (endgameTracker != null && endgameTrackers != null)
         {
             endgameTrackers.Add(endgameTracker);
         }
         return(endgameTracker);
     }
     return(patch_WinState.orig_CreateAndAddTracker(ID, endgameTrackers));
 }
Esempio n. 2
0
        private static WinState.EndgameTracker WinState_CreateAndAddTracker(On.WinState.orig_CreateAndAddTracker orig, WinState.EndgameID ID, List <WinState.EndgameTracker> endgameTrackers)
        {
            WinState.EndgameTracker endgameTracker = null;
            if (ID == WinState.EndgameID.Traveller)
            {
                int slots = CustomWorldMod.numberOfVanillaRegions + CustomWorldMod.activeModdedRegions.Count;
                endgameTracker = new WinState.BoolArrayTracker(ID, slots);

                if (endgameTracker != null && endgameTrackers != null)
                {
                    endgameTrackers.Add(endgameTracker);
                }
                CustomWorldMod.Log($"Expanded EndGameTracker to [{slots}]");
                return(endgameTracker);
            }

            return(orig(ID, endgameTrackers));
        }