static void Postfix(ref bool __result, ref CardPool ___paramCardPool, CardUpgradeMaskData ___paramCardFilter, RelicManager relicManager, ref List <CardData> toProcessCards) { List <CardData> customCardsToAddToPool = CustomCardPoolManager.GetCardsForPoolSatisfyingConstraints(___paramCardPool.name, ___paramCardFilter, relicManager); toProcessCards.AddRange(customCardsToAddToPool); __result = toProcessCards.Count > 0; }
/// <summary> /// Builds the CardPool represented by this builder's parameters /// and registers it with the CustomCardPoolManager. /// </summary> /// <returns>The newly registered CardPool</returns> public CardPool BuildAndRegister() { var cardPool = this.Build(); CustomCardPoolManager.RegisterCustomCardPool(cardPool); return(cardPool); }
static void Postfix(ref List <CardData> __result, ref CardPool cardPool, ClassData classData, CollectableRarity paramRarity, CardPoolHelper.RarityCondition rarityCondition, bool testRarityCondition) { List <CardData> customCardsToAddToPool = CustomCardPoolManager.GetCardsForPoolSatisfyingConstraints(cardPool.name, classData, paramRarity, rarityCondition, testRarityCondition); __result.AddRange(customCardsToAddToPool); }