Brotato

Brotato

Increase Fish Hook Curse Chance By 50%
23 Comments
DrDucko 12 Apr @ 9:35am 
Seems to work great! Do wish the numbers got updated, but otherwise very nice!

Now I just need a mod where all players can get 1 fishhook early..........
SoulSpawn 2 Apr @ 1:07pm 
I just reloaded and it seems fine now but something is throwing up an error with this mod.
SoulSpawn 2 Apr @ 1:06pm 
I just played and it an issue with this mod and disabled all my mods
As of Patch 1.1.10.0, the mod does no longer work.
Hapii7 22 Feb @ 2:02pm 
you are cool dude
已经在换弹了 14 Feb @ 7:16pm 
@凉凉 没改文本,只要两个普通+一个诅咒就能100%诅咒,当然这个诅咒钩自己显示的概率至少要27%
凉凉 13 Feb @ 4:41am 
诅咒概率20变30,感觉有点看不出来
已经在换弹了 11 Feb @ 5:16pm 
People don't see the effect because the text of hook is not changed.
sun13080 4 Jan @ 3:29am 
怎么弄才起效 我安装 没看到有效果
Bishey  [author] 20 Dec, 2024 @ 12:35am 
@summer This mod is still working as of 1.1.8.1. No update is needed.
summer 19 Dec, 2024 @ 10:09pm 
Update please <3
Bishey  [author] 19 Dec, 2024 @ 1:03am 
I've tested this mod extensively and I know that it works. If you have doubts, here is how you can test it yourself.

Uninstall the mod. Start a run with Creature. You will have a cursed hook that has 28% chance of cursing. In the first shop, lock ONLY 1 item. Play the next wave. If the item is not cursed in the next shop, look at your fish hook. It will say that the pity bonus is 7.

When you lock 1 item, the pity bonus is Curse Chance divided by 4. So 28 / 4 = 7

Now install this mod. And repeat the same steps. The pity bonus will be 10 instead of 7. Because the curse chance goes from 28 to 42 and 42 / 4 = 10 (it gets rounded down to nearest integer)

If you do this test and see that the pity bonus goes from 7 to 10 with this mod, it means that it is correctly working.

You don't need to do this because I've already done it and confirmed that it works. You can safely ignore people that say it doesn't work...
sun13080 19 Dec, 2024 @ 12:35am 
没有效果
Bishey  [author] 14 Dec, 2024 @ 3:57pm 
@DevDokus you are wrong. You are getting confused by the name of the variable.

curse_locked_items is not the number of cursed items. If you look at the fish_hook_effect_0.tres file, you can see that the fish hook adds 20 to the value EFFECT_CURSE_LOCKED_ITEMS. In the same file, this value is paired with the key "curse_locked_items".

The RNG roll that decides if a locked item will be cursed or not is the following line:

Utils.get_chance_success((RunData.players_data[player_index].curse_locked_shop_items_pity + curse_locked_items) / 100.0):

This line calls the get_chance_success function with a param between 0 and 1. That param is calculated by doing:

(curse_locked_shop_items_pity + curse_locked_items) / 100

My mod multiplies the variable curse_locked_items by 1.5, which correctly increases the curse chance by 50%.
DevDokus 13 Dec, 2024 @ 9:48am 
This plugin doesn't do what it claims. You just change one line in the "_on_tree_exited()" event, which doesn't affect anything.

Original: var curse_locked_items: int = RunData.get_player_effect("curse_locked_items", player_index)

Your edit: var curse_locked_items: float = RunData.get_player_effect("curse_locked_items", player_index) * 1.5

The original line simply returns the count of cursed items in the shop. This event only returns a value, it doesn’t set one, and you changed it to return 1.5x more. When you lock items, they can become cursed, and if they do, the edited event now returns a 1, 2, or 3 based on the number of cursed locked items.

The rest of the code executes normally, as the edited line doesn’t impact drop rates. The condition if curse_locked_items > 0 and locked_items.size() > 0 still checks for cursed locked items, so multiplying by 1.5 does nothing meaningful.
Lappie88 3 Dec, 2024 @ 5:07am 
Its not 50, its 50% increase from base. So 20% becomes 30% etc.
热辣香骨鸡 3 Dec, 2024 @ 4:30am 
is this mod works?because the curse hook is still about 29 or a little higher not 50 in text
TimDice 2 Dec, 2024 @ 6:00pm 
has this mod been working for yall? I dont see it coming up at least in text
Scott 29 Nov, 2024 @ 10:26pm 
Thank you
pavi 27 Nov, 2024 @ 10:58am 
thank you sir, great mod for gameplay !
Dimqwq 24 Nov, 2024 @ 6:33pm 
hello there. can this mod increase the chance of hook show up. hook is too rare for me as a luckless person
Food and Shelter 2 22 Nov, 2024 @ 12:03pm 
Thank you