From 5726b33878935ed67e52eb4711410e232be48eb6 Mon Sep 17 00:00:00 2001 From: cosmonaut Date: Fri, 20 Aug 2021 00:48:37 -0700 Subject: [PATCH] remove GOLD_IS_FOREVER from perk pool --- files/perkpoolremove.lua | 6 ++++++ init.lua | 3 +++ 2 files changed, 9 insertions(+) create mode 100644 files/perkpoolremove.lua diff --git a/files/perkpoolremove.lua b/files/perkpoolremove.lua new file mode 100644 index 0000000..616d4ce --- /dev/null +++ b/files/perkpoolremove.lua @@ -0,0 +1,6 @@ +-- remove from default perk pool +for i, perk in ipairs(perk_list) do + if perk.id == "GOLD_IS_FOREVER" then + perk_list[i].not_in_default_perk_pool = true + end +end diff --git a/init.lua b/init.lua index b4b167f..c5dbf2f 100644 --- a/init.lua +++ b/init.lua @@ -1,3 +1,6 @@ +ModLuaFileAppend("data/scripts/perks/perk_list.lua", + "mods/consistency/files/perkpoolremove.lua") + -- all functions below are optional and can be left out --[[