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
}
})