CustomCardSacrificeCost

v1.0.0·Updated 2024-12-04

Library that adds an abstract class that allows you to make custom card sacrifice cost easily. (AUTO PATCHED)

About this mod Author’s original text

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
  • 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

Install & use Install: BepInEx plugin

  1. The archive from playbuff is the mod itself — usually a BepInEx plugin (a .dll or a plugin folder once unzipped).
  2. Recommended: use a community mod manager (such as r2modman) — pick this game, import the mod, and the manager sets up BepInEx and its dependencies for you.
  3. Manual route: install the BepInEx loader in the game folder, then drop the unzipped .dll or plugin folder into BepInEx/plugins/.
  4. Launch the game — the BepInEx console logs every plugin it loads; seeing this mod in the log means it is installed.

Mods with listed dependencies need those installed too, or they will not load. Options are usually changed in-game or in the plugin's config file.

Dependencies

Install these first, or the mod will not work:

API_dev-API

File & checksum

Filename
CustomCardSacrificeCost-1.0.0.zip
File size
15.0 MiB