Skip to content
Snippets Groups Projects
Commit 2ce4aa5c authored by Hachem_Muche's avatar Hachem_Muche
Browse files

Clean up code. update talent tooltip, Fix randart name generation.

parent 14bb43c7
No related branches found
No related tags found
No related merge requests found
......@@ -5160,6 +5160,7 @@ function _M:getTalentFullDescription(t, addlevel, config, fake_mastery)
if t.is_spell then is_a[#is_a+1] = "a spell" end
if t.is_mind then is_a[#is_a+1] = "a mind power" end
if t.is_nature then is_a[#is_a+1] = "a nature gift" end
if t.is_antimagic then is_a[#is_a+1] = "an antimagic ability" end
if t.is_summon then is_a[#is_a+1] = " a summon power" end
if #is_a > 0 then
d:add({"color",0x6f,0xff,0x83}, "Is: ", {"color",0xFF,0xFF,0xFF}, table.concatNice(is_a, ", ", " and "), true)
......
This diff is collapsed.
......@@ -800,6 +800,7 @@ newEntity{ base = "BASE_NPC_HORROR", define_as = "DREAM_SEED",
},
resolvers.sustains_at_birth(),
power_source = {psionic=true},
-- Remove ourselves from the dream seed limit
on_die = function(self)
......
......@@ -51,7 +51,6 @@ function resolvers.calc.equip(t, e)
filter.random_art_replace.chance = 100
end
end
--if o then print("Equipment resolver for", e.name, "forbid_power_source:", filter.forbid_power_source and table.concat(table.keys(filter.forbid_power_source, ","))) end
if o and o.power_source and (o.power_source.antimagic and e:attr("has_arcane_knowledge") or o.power_source.arcane and e:attr("forbid_arcane")) then
ok = false
print(" Equipment resolver for ", e.name ," -- incompatible equipment ", o.name, "retrying", tries, "forbid ps:", filter.forbid_power_source and table.concat(table.keys(filter.forbid_power_source, ",")))
......
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