
CustomCardSacrificeCost
Library that adds an abstract class that allows you to make custom card sacrifice cost easily. (AUTO PATCHED)Details
Geck Volant Marin : Custom Card Sacrifice Cost
This library adds an abstract class that allows you to make custom card sacrifice cost easily.
How to create a custom card sacrifice cost.
- Follow the steps in https://github.com/InscryptionModding/InscryptionAPI/blob/main/docs/wiki/custom_costs.md.
- Replace the derivation
CustomCardCost
byCustomSacrificeCost
. - Override the following function:
public override int satisfiesSacrifices(PlayableCard card)
-
- This function must take the parameter
PlayableCard card
and returns a int that represent the number of sacrifice that this card value.
- This function must take the parameter
-
- If returns 0, can't be sacrificed for this custom card sacrifice cost.
Also, the source code is available in the plugin folder, in SourceCode.zip, along with an exemple.
Functionalities:
- Works with CustomCardSacrificeCost alone
- Works with combination of CustomCardSacrificeCost, BloodCost, BonesCost, EnergyCost, GemsCost, other CustomCardSacrificeCost and even with otherCustomCardCost.
Current minimal non-important flaws:
- Not yet able to set custom markers on the side of the screen to signify which sacrifices were done.
- Leshy doesn't always warn the player that the card is not playable right now. (can still be canceled) (appens in one specific case really long to explain, and realy rare)
Thanks To:
- The modding community
- ILSpy developers