tModLoader

tModLoader

58 ratings
Bad Luck Protection (Pity System)
   
Award
Favorite
Favorited
Unfavorite
Mod Side: Both
tModLoader Version: 1.4.4
Language: English
File Size
Posted
Updated
21.869 KB
17 Jul @ 3:04am
23 Jul @ 8:40am
3 Change Notes ( view )

Subscribe to download
Bad Luck Protection (Pity System)

Description
This mod simply improves farming for items without adding new content or heavily modifying the game. This is done by implementing a pity system to a bunch of vanilla item drop rules. This mod serves as a proof of concept for a suggestion I made in the Terraria forums, which you can view here: https://forums.terraria.org/index.php?threads/bad-luck-protection.144044/

How it works is simple. If a mob has a 1/400 chance of dropping an item, it is guaranteed every 400 kills. This applies for all enemy drop chances. A 1/7 drop chance is guaranteed every 7 kills, 1/13 in 13 kills. So on, so forth...

Additionally, if a loot pool is a selection of items (like the Moonlord's loot pool dropping 1 of 11 weapons), it will drop ALL of them AT ONCE when killed enough times. Kill requirement depends on the size of the selection (for Moonlord's case, 11 times). Though, keep in mind that these modified drop rules can stack! If a mob has a 1/2 chance to drop 1 of a selection of 4 items, it would take 8 kills to trigger both the guaranteed drops and drop all the items of the selection at once. This is calculated by multiplying the denominators of these two drop rules.

For example, killing 400 Chaos Elementals in an Expert mode world guarantees a Rod of Discord.
Don't believe me? You can try spawning 400 Chaos Elementals with Cheat Sheet in an Expert mode world yourself and a weapon of choice (other than butcher commands) and it will ALWAYS drop a Rod of Discord every 400 kills!

This also applies for treasure bags and loot crates but they might be inconsistent when the loot table is really big. Though, this lead to a side effect of getting way more dev sets than you'll ever need... (Unless you want to use or sell them)

Tested with most content mods. Here are some notable finds:
-Boss masks are always dropped every 7 kills as most of them are 1/7
-Bosses in Fargo's Souls will always drop their corresponding weapon every 10th kill as they are a 1/10 or 10% chance (3rd kill in Eternity mode as it is 1/3)
-Calamity bosses always drop their Revengeance weapon (like Malachite from Plaguebringer Goliath) every 10 kills as they are a 1/10 or 10% chance
-Bosses drop all 3 Revengeance mode accessories (Laundunum, Stress Pills and Heart of Darkness) at the same time after 60 kills, as it is a 1/20 with a selection of 3 items, making it a 1/60.

Things it doesn't work with:
-Custom drop rules that do not extend CommonDrop, OneFromOptionsDropRule or OneFromOptionsNotScaledWithLuckDropRule
-Most Calamity treasure bag drops (other than Revengeance drops) as they already use a pity system

This mod is configurable, you can tweak some of the pity rules if you want!
Originally posted by tModLoader BadLuckProtection:
Developed By n0t_UN_owen
10 Comments
CJ lite 23 Jul @ 11:04pm 
Can't believe we got gacha in Terraria before GTA VI
N0t_UNowen  [author] 22 Jul @ 6:36pm 
Yes
Lunaros 22 Jul @ 5:52pm 
I love this mod idea. To clarify how it works though - does this pity system add to the number of drops or simply assist them? If I get a Rod of Discord after only 100 kills, will I still get a second one after 300 more?
Idontcare 22 Jul @ 6:09am 
Could you make unofficial Consolaria bard, thrower, and healer?
DoodleBro 22 Jul @ 12:54am 
make cosmetics configurable with one toggle, and maybe a blacklist (and a toggle to turn it into a whitelist)
maybe if a cosmetic drop is turned off it autosells with the best happiness you currently have in that world so you just get a bit more money when it is pity-dropped (but that's a little clunky, perhaps if it's big enough of an issue, it also affects normal drops outside of the pity system)
another suggestion, a multiplier slider? so if a drop is 1/10, with a multiplier of 2x the PITY of that drop will come on the 5th kill
Just potato guy 21 Jul @ 7:59pm 
potato is very happy he found this mod, thank you.
N0t_UNowen  [author] 21 Jul @ 4:26pm 
This relies on the bestiary so progress is saved across worlds. This also modifies loot tables differently, to allow better mod compatibility. This also support item selection loot tables (like most bosses' loot tables and fishing crates) which thaf mod does not support.
autism incarnate 21 Jul @ 4:41am 
whenever i play with my friends i normally steal all their luck somehow so this is probably gonna help with farming stuff (especially considering we've never gotten a rod of discord somehow??)
Jay T. Dawgzone 21 Jul @ 12:35am 
This is a great idea! I'll have to try it out.