diff --git a/SPID/include/Cache.h b/SPID/include/Cache.h index 4b2a3a5..c3ed2db 100644 --- a/SPID/include/Cache.h +++ b/SPID/include/Cache.h @@ -13,7 +13,8 @@ namespace FormType RE::FormType::FormList, RE::FormType::Spell, RE::FormType::Armor, - RE::FormType::Location + RE::FormType::Location, + RE::FormType::Perk }; bool GetWhitelisted(RE::FormType a_type); diff --git a/SPID/src/LookupNPC.cpp b/SPID/src/LookupNPC.cpp index 6251b89..8d2d0d9 100644 --- a/SPID/src/LookupNPC.cpp +++ b/SPID/src/LookupNPC.cpp @@ -146,6 +146,11 @@ namespace NPC const auto location = a_form->As(); return actor->GetEditorLocation() == location; } + case RE::FormType::Perk: + { + const auto perk = a_form->As(); + return actor->HasPerk(perk); + } case RE::FormType::FormList: { bool result = false;