Skip to content
Snippets Groups Projects
Commit 78d079ba authored by DarkGod's avatar DarkGod
Browse files

some permanent prodigies cant be stolen

parent 6aa295a2
No related branches found
No related tags found
No related merge requests found
Pipeline #
......@@ -187,6 +187,10 @@ uberTalent{
self.max_life = self.max_life + 250
self.combat_armor_hardiness = self.combat_armor_hardiness + 20
end,
on_unlearn = function(self, t)
self.max_life = self.max_life - 250
self.combat_armor_hardiness = self.combat_armor_hardiness - 20
end,
info = function(self, t)
return ([[Thanks to your newfound knowledge of corruption, you've learned some tricks for toughening your body... but only if you are healthy enough to withstand the strain from the changes.
Improves your life by 250, your Defense by %d, your Armour Hardiness by 20%% and your saves by %d as your natural toughness and reflexes are pushed beyond their normal limits.
......
......@@ -131,6 +131,7 @@ uberTalent{
local o3 = self:findInAllInventoriesBy("define_as", "TELOS_BOTTOM_HALF")
return o1 and o2 and o3
end} },
cant_steal = true,
on_learn = function(self, t)
local list = mod.class.Object:loadList("/data/general/objects/special-artifacts.lua")
local o = game.zone:makeEntityByName(game.level, list, "TELOS_SPIRE", true)
......
......@@ -41,6 +41,7 @@ uberTalent{
require = { special={desc="Have at least 25% arcane damage reduction and have been exposed to the void of space", fct=function(self)
return (game.state.birth.ignore_prodigies_special_reqs or self:attr("planetary_orbit")) and self:combatGetResist(DamageType.ARCANE) >= 25
end} },
cant_steal = true,
on_learn = function(self, t)
local ret = {}
self:talentTemporaryValue(ret, "force_use_resist", DamageType.ARCANE)
......@@ -128,6 +129,7 @@ uberTalent{
require = { special={desc="Have summoned at least 100 creatures affected by this talent. The alchemist golem counts as 100.", fct=function(self)
return self:attr("summoned_times") and self:attr("summoned_times") >= 100
end} },
cant_steal = true,
on_learn = function(self, t)
local golem = self.alchemy_golem
if not golem then return end
......
......@@ -157,6 +157,10 @@ uberTalent{
self:attr("max_encumber", 500)
self:incIncStat(self.STAT_STR, 40)
end,
on_unlearn = function(self, t)
self:attr("max_encumber", -500)
self:incIncStat(self.STAT_STR, -40)
end,
info = function(self, t)
return ([[Your strength is legendary; fatigue and physical exertion mean nothing to you.
Your fatigue is permanently set to 0, carrying capacity increased by 500, and strength increased by 40.]])
......@@ -172,6 +176,7 @@ uberTalent{
local q = self:hasQuest("temple-of-creation")
return q and not q:isCompleted("kill-slasul") and q:isCompleted("kill-drake")
end} },
cant_steal = true,
-- _M:levelup function in mod.class.Actor.lua updates the talent levels with character level
bonusLevel = function(self, t) return math.ceil(self.level/10) end,
callbackOnLevelup = function(self, t, new_level)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment