The Binding of Isaac: Rebirth

The Binding of Isaac: Rebirth

Not enough ratings
Host Drops Host Hat
   
Award
Favorite
Favorited
Unfavorite
Tags: Lua, Tweaks
File Size
Posted
Updated
30.218 KB
23 Sep, 2022 @ 4:27am
28 Sep, 2022 @ 5:43pm
10 Change Notes ( view )

Subscribe to download
Host Drops Host Hat

Description
Gives Host a small chance to drop Host Hat.

Base chance is 0.1% (1/1000). This scales with Luck.

Items related to explosions also give a bonus chance, with potentially self-damaging items giving a bigger bonus.

Objectives
The main goals of this mod are to:
  • Make taking items that can damage you slightly less risky, and potentially more fun (eg. Bob's Brain, Anarchist Cookbook)
  • Add an extra element of strategy to your build, by choosing explosion-related trinkets, hanging on to The Tower card, and acquiring even more risky items.
  • Give you a reason to kill Hosts that spawn from destroyed skulls, since in vanilla they're effectively pointless.

Luck Scaling
The calculation is: 0.1 + ( LCK * 0.1 ), so just 1 point of Luck doubles the chance. At 4 Luck, it's the same as the chance to get Dry/Ghost Baby from destroying a rock (0.5%).

Luck
Bonus
Total Chance
Fraction
0
-
0.1%
1/1000
1
+0.1%
0.2%
1/500
4
+0.4%
0.5%
1/200
5
+0.5%
0.6%
3/500
10
+1%
1.1%
~1/100
50
+5%
5.1%
~1/20
99
+9.9%
10%
1/10
500
+50%
50% (MAX)
1/2

Item Bonuses
All items related to explosions and bombs give a bonus chance, per item.

ESD = Explosive Self-Damage potential. These items have a higher bonus, giving you a better chance when you need it the most.

You can disable these bonuses by setting addItemBonus to false in the mod's main.lua.

Group
Bonus
Items
Notes
Active ESD
2.5%
Anarchist Cookbook, Kamikaze
Bonus counts twice if you have 2 explosive actives (via Schoolbag)
Active
1%
Bob's Rotten Head, Remote Detonator, Mama Mega, Mr Boom
Same as above
Passive ESD
2%
Dr. Fetus, Epic Fetus, Curse of the Tower,
Bob's Brain, Ipecac, Number Two, Rocket in a Jar
Extra +2% bonus if you have My Reflection and either Dr. Fetus or Ipecac
Passive
0.5%
All other bomb passives
See the "Bomb Items" wiki category, linked below
Trinkets
0.5%
Blasting Cap, Bobs Bladder, Match Stick,
Ring Cap, Safety Scissors, Short Fuse
Only applies to held trinkets.
Bonus counts twice if you have 2 trinkets (via Mom's Purse/Belly Button)
Cards
1%
The Tower
Bonus counts while the card is held.
Applied twice if you have 2 (via Starter Deck)

Modders
If you want to make a mod that does something similar (ie. make an enemy drop an item based on Luck/RNG), the main.lua file is heavily annotated. It also has an option to enable debug logging, which logs the RNG roll & drop chance after every Host kill, to both log.txt and the debug console.

Related Mods
These mods by other creators provide other ways of gaining explosion immunity.

Wiki
8 Comments
darkly77  [author] 29 Sep, 2022 @ 5:28am 
@Videofreak In my limited tests I've been encountering 10-20 Hosts per run, so you'd need 50 luck (1/20 chance) to get the drop. So if you're lucky, you might get a run with Luck Up pills, Mom's Pill Box/Placebo, and plenty of batteries -- but that's a rare setup. In my own runs I'm only getting 0-4 luck (1/1000 to 1/200 chance). If you have your own data you'd like to share that'd be great, since this is only based on my own runs atm. I'm aiming for a balance between both casual players and min/maxers, and I'm somewhere in between. I have been looking into Mod Config Menu though, so if I add support for that then I can just add a multiplier for the luck bonus.
darkly77  [author] 29 Sep, 2022 @ 5:16am 
@Revalopod Ohhh, I get you! That might actually be possible -- before the drop, just check if the room's cleared -- I'll look into that
Videofreak 28 Sep, 2022 @ 7:07pm 
I would make the base chance lower, as luck multiplies it so much its basically impossible not to get a hat drop by the end of the run
Revalopod 26 Sep, 2022 @ 5:54am 
Well for my idea I was thinking a simpler method to achieve it would be that there would only be a chance for a host hat to drop when the room is cleared, meaning you'd have to beat all the enemies first and then bomb the skulls. Anyway, good job on your first lua!
darkly77  [author] 26 Sep, 2022 @ 5:44am 
@Revalopod That's a good idea, but perhaps you could just give destroyed skulls a % chance to spawn Host Hat instead of a Host. That might feel more organic, and would alleviate the minor time sink of still having to kill Hosts. This is only my first Lua project though, so that's all a bit outside my experience atm (as is checking how an enemy was spawned, especially performantly). If I end up making Isaac mods and gain more experience, I'll keep the idea in mind for the future
Revalopod 26 Sep, 2022 @ 2:18am 
I just think it's strange to have a normal enemy drop an item. Could there be an option to only have a chance from the skull-born hosts?
darkly77  [author] 25 Sep, 2022 @ 10:46pm 
@Revalopod Any Host. Was the mention of skulls confusing? I've edited that bit slightly to be clearer.
Revalopod 25 Sep, 2022 @ 11:00am 
So it's from any host, or just the hosts spawned from destroying skulls?