CardChoiceSpawnUniqueCardPatch
Patches erroneous logic in the base game CardChoice method SpawnUniqueCard
Date uploaded | 3 years ago |
Version | 0.1.7 |
Download link | Pykess-CardChoiceSpawnUniqueCardPatch-0.1.7.zip |
Downloads | 106882 |
Dependency string | Pykess-CardChoiceSpawnUniqueCardPatch-0.1.7 |
This mod requires the following mods to function
BepInEx-BepInExPack_ROUNDS
BepInEx pack for ROUNDS. Preconfigured and ready to use.
Preferred version: 5.4.1100willis81808-UnboundLib
This is a helpful utility for ROUNDS modders aimed at simplifying common tasks.
Preferred version: 3.1.0Pykess-ModdingUtils
Utilities aimed at making modding easier and more accessible
Preferred version: 0.3.3README
CardChoiceSpawnUniqueCardPatch
This is a utility mod which patches the erroneous CardChoice.SpawnUniqueCard
method in the base game code.
Previously, the game would not properly check if the allowMultiple
or blacklistedcategories
fields of a card should have prevented it from being offered. Moreover, if it had done this, it would have been possible to crash the game since the method was called recursively with no garunteed exit.
This mod also adds the ability for custom cards (made with Unbound) to use CardCategories, even across mods. Simply use:
using using CardChoiceSpawnUniqueCardPatch.CustomCategories;
...
cardInfo.categories = new CardCategory[] { CustomCardCategories.instance.CardCategory("MySpecialCategory") };
then, if another card in another mod wants to be exclusive or incompatible with the example card above, it should simply use:
using using CardChoiceSpawnUniqueCardPatch.CustomCategories;
...
cardInfo.blacklistedCategories = new CardCategory[] { CustomCardCategories.instance.CardCategory("MySpecialCategory") };
Patch Notes
- 1.6: performance improvements