Inscryption
You are viewing a potentially older version of this package. View Latest Version
Install with App

Details

Date Uploaded
5 years ago
Downloads
708
Size
121KB

BoonAPI

BoonAPI is a BepInEx plugin that allows for easy creation of custom boons. To use BoonAPI in your mod, just add it as a reference in your project. Custom boon creation example:

NewBoon exampleBoon = new NewBoon("Boon's Rulebook Name Here", typeof(ExampleBoonHandler), "Boon's Description Here", boonRulebookIcon, boonCardArt, trueIfStacks, trueIfAppearsAsLeshyTrialReward, trueIfAppearsInRulebook);
ExampleBoonHandler.boo = exampleBoon.boon.type;

ExampleBoonHandler here would be a class that inherits from BoonBehavior that handles how the boon affects card battles. You can override any method that would normally be overridable in any TriggerReceivers like AbilityBehaviours or SpecialCardBehaviours (but in BoonBehavior the RespondsToSomething methods are named RespondToSomething instead). To add your boon you can do RunState.Run.playerDeck.AddBoon(savedBoonType) (this is why the last line (ExampleBoonHandler.boo = exampleBoon.boon.type) is there, to save the boon's type). To remove the boon do the same but RemoveBoon or RemoveAllBoonsOfType instead of AddBoon.

Installation

To use BoonAPI, put BoonAPI.dll inside of your BepInEx plugins folder. It also probably works for Thunderstore Mod Manager or r2modman but I don't know for sure (I don't use them)

NOTE: This mod was developed for Kaycee's Mod beta but it should work for the normal game.

Thunderstore development is made possible with ads. Please consider making an exception to your adblock.