Brotato

Brotato

Increase Fish Hook Curse Chance By 50%
23 kommentarer
DrDucko 12. apr. kl. 9:35 
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. kl. 13:07 
I just reloaded and it seems fine now but something is throwing up an error with this mod.
SoulSpawn 2. apr. kl. 13:06 
I just played and it an issue with this mod and disabled all my mods
Bin Ali 1. apr. kl. 3:59 
As of Patch 1.1.10.0, the mod does no longer work.
Hapii7 22. feb. kl. 14:02 
you are cool dude
Madoka 14. feb. kl. 19:16 
@凉凉 没改文本,只要两个普通+一个诅咒就能100%诅咒,当然这个诅咒钩自己显示的概率至少要27%
凉凉 13. feb. kl. 4:41 
诅咒概率20变30,感觉有点看不出来
Madoka 11. feb. kl. 17:16 
People don't see the effect because the text of hook is not changed.
sun13080 4. jan. kl. 3:29 
怎么弄才起效 我安装 没看到有效果
Bishey  [ophavsmand] 20. dec. 2024 kl. 0:35 
@summer This mod is still working as of 1.1.8.1. No update is needed.
summer 19. dec. 2024 kl. 22:09 
Update please <3
Bishey  [ophavsmand] 19. dec. 2024 kl. 1:03 
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 kl. 0:35 
没有效果
Bishey  [ophavsmand] 14. dec. 2024 kl. 15:57 
@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 kl. 9:48 
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 kl. 5:07 
Its not 50, its 50% increase from base. So 20% becomes 30% etc.
热辣香骨鸡 3. dec. 2024 kl. 4:30 
is this mod works?because the curse hook is still about 29 or a little higher not 50 in text
TimDice 2. dec. 2024 kl. 18:00 
has this mod been working for yall? I dont see it coming up at least in text
Scott 29. nov. 2024 kl. 22:26 
Thank you
pavi 27. nov. 2024 kl. 10:58 
thank you sir, great mod for gameplay !
Dimqwq 24. nov. 2024 kl. 18:33 
hello there. can this mod increase the chance of hook show up. hook is too rare for me as a luckless person
Goby 22. nov. 2024 kl. 12:03 
Thank you