Luck

v0.2.0·Updated 2026-04-26

Adds a luck stat to the game.

About this mod Author’s original text

By default luck increases the chance of seeing rarer cards. but it can also be used by other mods to improve the likelihood of chance based effects.

Usage as a library:

to have a card adjust a player's luck, add the Luck component to a card either in unity or in SetupCard, then set LuckAdd and/or LuckMult accordingly.

to have a luck based chance event, call Player.GetComponent().RollLuck(chance) where chance is a float between 0.0 and 1.0 (inclusive) representing the base % likelihood of the event occurring.

if you are using the CustomCard component to make your card, in SetupCard you want the following code:

Luck luck = cardInfo.GetOrAddComponent();

luck.LuckAdd = //the value you want to increase the player's luck by

luck.LuckMult = //the value you want to multiply the player's luck by

// note you likely wont be using both Add and Mult in the same card.

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:

Pykess-ModdingUtilswillis81808-UnboundLibRoot-RarityLib

File & checksum

Filename
Luck-0.2.0.zip
File size
616.7 KiB