CustomCardSacrificeCost
Library that adds an abstract class that allows you to make custom card sacrifice cost easily. (AUTO PATCHED)
Last updated | 14 hours ago |
Total downloads | 5 |
Total rating | 0 |
Categories | Libraries |
Dependency string | GeckVolantMarin-CustomCardSacrificeCost-1.0.0 |
Dependants | 0 other packages depend on this package |
This mod requires the following mods to function
API_dev-API
The de-facto standard core API for all Inscryption mods. This lets you create new cards, abilities, challenges, map nodes, starter decks, and more.
Preferred version: 2.22.3README
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