Picked up a perk but it's horrible? No worries, this mod lets you remove picked up perks!
Not compatible with custom perks unless mod authors provide a function to remove that perk.
Unremovable perks (like new ones that I haven't added a removal function for yet) do not show up in the selection.
For mod developers:
If you want to make your perk removable, give it a custom table property when appending your perk to perk_list called _remove, which should be a function that gets the perk owners entity_id passed as it's only argument. game_effects are removed automatically, you don't need to remove them yourself. For example:
table.insert(perk_list, {
{
id = "YOUR_PERK",
ui_name = "Your perk",
ui_description = "Does something custom",
ui_icon = "mods/yourmod/ui_gfx/perk_icons/custom.png",
perk_icon = "mods/yourmod/items_gfx/perk_icons/custom.png",
stackable = STACKABLE_DEFAULT,
func = function( entity_perk_item, entity_who_picked, item_name )-- blabla do somethingend,
_remove = function(entity_id)-- here you undo whatever you didend
}
})
Forgot to check this page again for comments, sorry. There was a bug in an older version where after a Noita update the perk icons were not getting removed, but that should be fixed already since v0.5.10, try a newer version if you haven't already.
33 748
We Use Cookies 🍪We use cookies to improve your user experience. Will you allow us to store them?
Doesn't work for me on Build Apr 30 2024. (Only this mod is active)
Is there anything I need to do?
Thanks for the mod anyway,
Have a nice day
Forgot to check this page again for comments, sorry. There was a bug in an older version where after a Noita update the perk icons were not getting removed, but that should be fixed already since v0.5.10, try a newer version if you haven't already.