Skip to content
Snippets Groups Projects
Commit 35742fad authored by dg's avatar dg
Browse files

All npc talents should correctly show up in charsheet

git-svn-id: http://svn.net-core.org/repos/t-engine4@5652 51575b47-30f0-44d4-a5cc-537603b46e54
parent 4cc4b710
No related branches found
No related tags found
No related merge requests found
......@@ -37,7 +37,7 @@ newTalent{
name = "Attack",
type = {"base/class", 1},
no_energy = "fake",
hide = true,
hide = "always",
innate = true,
points = 1,
range = 1,
......@@ -83,7 +83,7 @@ newTalent{
type = {"base/class", 1},
info = "Allows you to have an energy pool. Energy is used to perform psionic manipulations.",
mode = "passive",
hide = true,
hide = "always",
no_unlearn_last = true,
}
......@@ -92,7 +92,7 @@ newTalent{
type = {"base/class", 1},
info = "Allows you to have a Feedback pool. Feedback is used to power feedback and discharge talents.",
mode = "passive",
hide = true,
hide = "always",
no_unlearn_last = true,
on_learn = function(self, t)
if self:getMaxFeedback() <= 0 then
......@@ -108,7 +108,7 @@ newTalent{
type = {"base/class", 1},
info = "Allows you to have a mana pool. Mana is used to cast all spells.",
mode = "passive",
hide = true,
hide = "always",
no_unlearn_last = true,
}
newTalent{
......@@ -116,7 +116,7 @@ newTalent{
type = {"base/class", 1},
info = "Allows you to have a vim pool. Vim is used by corruptions.",
mode = "passive",
hide = true,
hide = "always",
no_unlearn_last = true,
}
newTalent{
......@@ -124,7 +124,7 @@ newTalent{
type = {"base/class", 1},
info = "Allows you to have a stamina pool. Stamina is used to activate special combat attacks.",
mode = "passive",
hide = true,
hide = "always",
no_unlearn_last = true,
}
newTalent{
......@@ -132,7 +132,7 @@ newTalent{
type = {"base/class", 1},
info = "Allows you to have an equilibrium pool. Equilibrium is used to measure your balance with nature and the use of wild gifts.",
mode = "passive",
hide = true,
hide = "always",
no_unlearn_last = true,
}
newTalent{
......@@ -140,7 +140,7 @@ newTalent{
type = {"base/class", 1},
info = "Allows you to have a positive energy pool.",
mode = "passive",
hide = true,
hide = "always",
no_unlearn_last = true,
}
newTalent{
......@@ -148,7 +148,7 @@ newTalent{
type = {"base/class", 1},
info = "Allows you to have a negative energy pool.",
mode = "passive",
hide = true,
hide = "always",
no_unlearn_last = true,
}
newTalent{
......@@ -156,7 +156,7 @@ newTalent{
type = {"base/class", 1},
info = "Allows you to have a hate pool.",
mode = "passive",
hide = true,
hide = "always",
no_unlearn_last = true,
updateRegen = function(self, t)
-- hate loss speeds up as hate increases
......@@ -210,7 +210,7 @@ newTalent{
type = {"base/class", 1},
info = "Allows you to have a paradox pool.",
mode = "passive",
hide = true,
hide = "always",
no_unlearn_last = true,
}
......
......@@ -885,7 +885,7 @@ function _M:drawDialog(kind, actor_to_compare)
local list = {}
for j, t in pairs(player.talents_def) do
if player:knowTalent(t.id) and not t.hide then
if player:knowTalent(t.id) and (not t.hide or t.hide ~= "always") then
local lvl = player:getTalentLevelRaw(t)
list[#list+1] = {
name = ("%s (%d)"):format(t.name, lvl),
......
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