AI-assisted mod — built with Claude AI and verified through in-game testing.
Adds a visible Luck stat to Magicraft that grows with your gold and rewards you for playing well. Find the Prospector's Pickaxe and watch your wealth start working for you.
🐛 Found a bug or have a feature idea? Submit it here
Luck is a value ranging from -100 to +100. It starts at 0 each run and shifts based on your playstyle and what relics you hold. Higher luck bends the game in your favor — cheaper shops, better spells. Let it go negative and things get harder.
The Prospector's Pickaxe (Money is Power relic) This is your primary luck engine. Equip it and your current gold balance passively contributes to luck every second — you don't spend the gold, you simply hold it. The richer you are, the luckier you feel.
Win Streaks Consecutive successful runs build momentum. Each unbroken streak adds bonus luck at the start of your next run, giving skilled players an early advantage.
Mercy Bonus If you've been losing repeatedly, the system notices. A small mercy bonus at run start keeps you from spiraling into permanent bad luck.
Set Enabled = true under [Cheats] in the config file to unlock luck adjustment keys during runs:
] — add +0.5 luck[ — subtract 0.5 luckLuck scales every item price in the shop. This affects everything sold — relics, potions, and spells.
Since Magicraft's shop prices scale with floor depth and rarity, this effect compounds across a full run. At high luck, late-game items that would normally be out of reach become attainable. At negative luck, even early items can strain your budget.
Luck biases the quality of spell drops throughout each run.
When the Prospector's Pickaxe is equipped, your gold actively contributes to your luck stat. This creates a self-reinforcing loop: more gold → more luck → cheaper shops → easier to accumulate more gold. Protect your purse.
When the Prospector's Pickaxe is active, a small overlay appears showing your current luck value. It's color-coded — green when luck is positive, red when negative, white when neutral. Win and loss streaks of 2 or higher also appear alongside the number.
The HUD is invisible until you obtain the relic, and won't clutter runs where it isn't relevant.
| Key | Action |
|---|---|
| P | Hide or show the luck overlay (works any time during a run) |
| ] | Add +0.5 luck (requires Cheats mode — see config) |
| [ | Subtract 0.5 luck (requires Cheats mode — see config) |
A config file is generated at BepInEx/config/com.effcoding.LuckyBreak.cfg — open it in any text editor to adjust the gold-luck rate, reposition the HUD, or enable the cheat keys for testing.
Controls how much luck each coin contributes while holding the Pickaxe.
| LuckPerCoin | 50g | 100g | 200g | 500g | Gold to cap |
|---|---|---|---|---|---|
| 0.05 | +2.5 | +5 | +10 | +25 | ~2000 (subtle) |
| 0.08 | +4 | +8 | +16 | +40 | ~1250 (noticeable) |
| 0.10 | +5 | +10 | +20 | +50 | ~1000 (default) |
| 0.15 | +7.5 | +15 | +30 | +75 | ~666 (strong) |
| 0.20 | +10 | +20 | +40 | cap | ~500 (dominant) |
At +100 luck, shop prices are 30% cheaper and spells drop at maximum level.
Shifts the HUD left from the right edge of the screen. Default: 8. Raise to move further left, lower to push right. Press P during a run to hide or show the overlay instantly.
Distance from the top of the screen in pixels. Default: 8. Increase to move the HUD down.
Set to true to unlock luck adjustment keys (] and [) during runs. Default: false.