Skip to content
Gremious edited this page May 29, 2019 · 7 revisions

1. What if my card fits into several archetypes? e.g. "Discard 3 cards, apply 3 Poison to all enemies, gain 3 Shivs."

  • Add it to all of them. Duplicates are cleared, so you can fit a card in as many jsons as you want.

2. What if my card doesn't fit into any archetype? e.g. "Deal 9 damage 2 times."

  • Add it to the "Basic" Archetype - it is the catch-all archetype for all 'standard' cards.

3. My custom character has a bunch of cards. How do I know I didn't miss putting any of them in the jsons?

  • Start a run with them after enabling ArchAPI and search for the following log:

    12:08:34.628 INFO effects.RandomArchetypeEffect> This character has cards not registered with archetype API. Those cards are: [Card 1, Card 2, Card 3]

If you can't find it or it's empty - you've added all the cards!


4. I am expanding existing basegame archetypes. Do I need to tag them the same way?

  • No. Basegame archetypes are already pre-tagged, so simply leave the tag field empty, e.g. "TAGS": [],.

All you have to do is make sure you used an identical archetpe name i.e. "Poison", for "My Mod's Poison Expac". Don't tag it Single, as archetypes with the same name include each-other, so you effectively double the chance poison will be roled if you do so. If you're making a brand new type of poison, (e.g. replay the spire's necrotic poison) consider making it a brand new archetype instead.


5. I am adding brand new archetypes to existing characters. Do I need to tag them?

  • Yes, normally this would just be "SINGLE" and nothing else. If you're adding new orbs to the defect, remember to add the "INCLUDE_SUPPORT" tag.

6. What is support/include support?

  • When you start a new game, Archetype API starts grabbing random archetypes. Every time it does so, it checkes whether it grabbed one tagged SUPPORT (e.g. Focus Cards archetype for the Defect). If it did, it'll check if it had previously grabbed one with the tag INCLUDE_SUPPORT (e.g. any orb archetype). If it did - the SUPPORT archetype will be added. If not, it'll be re-rolled.

Clone this wiki locally