From a6a71aa8a15c64f07f086cc0121c62b7bf576b94 Mon Sep 17 00:00:00 2001 From: Recaiden <mlwatts45@gmail.com> Date: Fri, 28 Aug 2020 10:51:58 -0500 Subject: [PATCH] Fallen suggestion of DG's Have to dfo something cowardly/murderous on the individual sun paladin. --- game/modules/tome/data/talents/uber/wil.lua | 22 +++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/game/modules/tome/data/talents/uber/wil.lua b/game/modules/tome/data/talents/uber/wil.lua index d9c97641a1..8e3c6e3d21 100644 --- a/game/modules/tome/data/talents/uber/wil.lua +++ b/game/modules/tome/data/talents/uber/wil.lua @@ -300,6 +300,28 @@ uberTalent{ require = { birth_descriptors={{"subclass", "Sun Paladin"}}, special={desc=_t"Unlocked the Fallen evolution", fct=function(self) return profile.mod.allow_build.paladin_fallen end}, + special2={ + desc=_t"Commit a heinous act", + fct=function(self) + if game.state.birth.ignore_prodigies_special_reqs then return true end + -- Didn't save the merchant + if self:hasQuest("lost-merchant") then + if self:hasQuest("lost-merchant"):isCompleted("evil") then return true end + if self:hasQuest("lost-merchant"):isFailed() then return true end + if not self:hasQuest("lost-merchant"):isCompleted("saved") then return true end + end + -- Let Melinda die + if (self:hasQuest("kryl-feijan-escape") and self:hasQuest("kryl-feijan-escape"):isStatus(engine.Quest.FAILED)) then return true end + -- Sided with the Grand Corruptor + if (self:hasQuest("anti-antimagic") and self:hasQuest("anti-antimagic"):isStatus(engine.Quest.DONE)) then return true end + -- Killed an escort yourself + local id = world:getCurrentAchievementDifficultyId(game, "ESCORT_KILL") + if self.achievement_data[id] and self.achievement_data[id].nb > 0 then return true end + -- Lumberjack massacre + if (self:hasQuest("lumberjack-cursed") and (self:hasQuest("lumberjack-cursed").lumberjacks_died or 0) >= 20) then return true end + return false + end + }, stat = {mag=25}, }, is_class_evolution = "Sun Paladin", -- GitLab