Skip to content
Davis Cook edited this page Mar 10, 2018 · 8 revisions

API

To add or remove relics you need to put your relic manipulation code inside the receiveEditRelics callback from EditRelicsSubscriber.

  • addRelic(AbstractRelic relic, RelicType type) - this can be used to add custom relics to either the shared pool or the pool for the ironclad or the pool for the silent; this method should not be used to add relics specific to a custom character
  • removeRelic(AbstractRelic relic) - same restrictions as above but removes the relic instead of adding it
  • `addRelicToCustomPool(AbstractRelic relic, String color) - this can be used to add a relic to the relic pool for a custom character. Do not attempt to use this to add a relic to the shared pool or the ironclad/silent pool.
Clone this wiki locally