Please disclose if any significant portion of your mod was created using AI tools by adding the 'AI Generated' category. Failing to do so may result in the mod being removed from Thunderstore.
SaveYourLuckBruh
Persists vanilla Valheim bad luck protection across game sessions and world transitions.
| Last updated | 5 hours ago |
| Total downloads | 38 |
| Total rating | 0 |
| Categories | Mods Client-side Utility Deep North Update |
| Dependency string | Vapok-SaveYourLuckBruh-1.0.0 |
| Dependants | 0 other packages depend on this package |
This mod requires the following mods to function
denikson-BepInExPack_Valheim
BepInEx pack for Valheim. Preconfigured with the correct entry point for mods and preferred defaults for the community.
Preferred version: 5.4.2350ValheimModding-Jotunn
Jötunn (/ˈjɔːtʊn/, 'giant'), the Valheim Library was created with the goal of making the lives of mod developers easier. It enables you to create mods for Valheim using an abstracted API so you can focus on the actual content creation.
Preferred version: 2.30.2ValheimModding-YamlDotNet
Shared version 16.3.0 of YamlDotNet from Antoine Aubry and contributors, net47 package for use in Valheim mods. Maintained by the ValheimModding team.
Preferred version: 16.3.1README
🍀 SaveYourLuckBruh
Persists vanilla Valheim pseudo-random drop counters so your bad luck equity is never lost across game sessions or world travels.
In Valheim, rare item drops (such as trophies and rare materials) feature an internal "bad luck protection" system designed to prevent prolonged dry streaks. However, in the vanilla game, this counter is stored purely in temporary memory and resets to zero every time you close the game.
SaveYourLuckBruh fixes this by saving your bad luck progress directly into your character save file, preserving your hard-earned drop progress across restarts and across different worlds.
🎯 The Problem
Vanilla Valheim uses a hidden countdown (s_pseudoCounter) for any item with a drop rate of 30% or lower. Every time you kill an eligible creature without getting the rare item, the countdown ticks closer to a guaranteed drop.
Example: Hunting Cultist Trophies
- The Math: A Cultist Trophy has a base 10% drop chance. The game rolls an internal countdown between 1 and 20 kills.
- Session 1: You clear Frost Caves and defeat 18 Cultists without seeing a trophy drop. You are now 1 or 2 kills away from a guaranteed trophy.
- The Flaw: You log off for the night and close Valheim.
- Session 2 (Vanilla): You boot up Valheim tomorrow. Your 18 kills are gone. The game re-rolls a brand-new countdown from scratch. If you repeatedly play in short 1–2 hour sessions, you might suffer dozens of dry kills because your bad luck equity never survives a game restart.
💡 The Solution
SaveYourLuckBruh automatically saves your active bad luck counters into your character's native custom save data (Player.m_customData):
- 💾 Persistent Across Restarts: When you exit Valheim and launch it again the next day, your exact remaining countdown is restored.
- 🌍 World-Scoped Progress: Counters are tracked per unique World ID. Hunting Cultists in your solo world will not bleed into or reset your progress on a multiplayer server.
- ⚔️ Attacker Attribution: In co-op play, your bad luck countdown is only consumed when you (or your tamed pets) deliver the lethal blow—an ally landing a kill won't drain your personal bad luck equity.
- 🛡️ Zero Corrupted Saves: Stored entirely within vanilla character fields. If you ever uninstall the mod, your character file (
.fch) remains 100% intact and uncorrupted. - 🔌 Client-Side Only: Does not need to be installed on dedicated servers. Works seamlessly in singleplayer, co-op, or multiplayer servers without affecting unmodded players.
⚙️ Configuration
SaveYourLuckBruh is an install-and-forget mod. It requires no functional configuration or gameplay tweaking to work.
Standard logging settings (including debug logging) are available via BepInEx/config/vapok.mods.SaveYourLuckBruh.cfg:
- Enable Debug Mode: Outputs detailed log statements to
LogOutput.logshowing when counters load, decrement, trigger drops, and save.
🤝 Compatibility & Requirements
- BepInEx: 5.4.2350 or later.
- Jotunn: 2.30.2 or later.
