Details

Last Updated
5 months ago
First Uploaded
5 months ago
Downloads
215
Likes
0
Size
16MB
Dependency string
GeckVolantMarin-CustomCardSacrificeCost-1.0.0
Dependants

Categories

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 by CustomSacrificeCost.
  • 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.
    • 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
Thunderstore development is made possible with ads. Please consider making an exception to your adblock.
Thunderstore development is made possible with ads. Please consider making an exception to your adblock.
Thunderstore development is made possible with ads. Please consider making an exception to your adblock.