Skip to content
Snippets Groups Projects
Commit 1e47a8ef authored by dg's avatar dg
Browse files

fix

git-svn-id: http://svn.net-core.org/repos/t-engine4@4174 51575b47-30f0-44d4-a5cc-537603b46e54
parent 8ab1ade6
No related branches found
No related tags found
No related merge requests found
......@@ -249,7 +249,7 @@ function _M:display()
end
if player:isTalentActive(player.T_NECROTIC_AURA) then
local p = player:isTalentActive(player.T_NECROTIC_AURA)
self:mouseTooltip(self.TOOLTIP_MANA, self:makeTextureBar("#7fffd4#Necrotic", "%d", p.souls, p.souls_max, nil, x, h, 255, 255, 255,
self:mouseTooltip(self.TOOLTIP_NECROTIC_AURA, self:makeTextureBar("#7fffd4#Necrotic", "%d", p.souls, p.souls_max, nil, x, h, 255, 255, 255,
{r=colors.GREY.r / 2, g=colors.GREY.g / 2, b=colors.GREY.b / 2},
{r=colors.GREY.r / 5, g=colors.GREY.g / 5, b=colors.GREY.b / 5}
)) h = h + self.font_h
......
......@@ -114,6 +114,11 @@ It does not regenerate naturally. You must absorb energy through shields or thro
Your capacity for storing energy is determined by your Willpower.
]]
TOOLTIP_NECROTIC_AURA = [[#GOLD#Necrotic Aura#LAST#
Represents the raw materials for creating undead minions.
It increases each time you or your minions kill something that is inside the aura radius.
]]
TOOLTIP_LEVEL = [[#GOLD#Level and experience#LAST#
Each time you kill a creature that is over your own level - 5 you gain some experience.
When you reach enough experience you advance to the next level. There is a maximum of 50 levels you can gain.
......
......@@ -83,7 +83,7 @@ newBirthDescriptor{
max_level = 50,
money = 10,
resolvers.equip{ id=true,
{type="lite", subtype="lite", name="brass lantern", ego_chance=-1000},
{type="lite", subtype="lite", name="brass lantern", ingore_material_restriction=true, ego_chance=-1000},
},
make_tile = function(e)
if not e.image then e.image = "player/"..e.descriptor.subrace:lower():gsub("[^a-z0-9_]", "_").."_"..e.descriptor.sex:lower():gsub("[^a-z0-9_]", "_")..".png" end
......
......@@ -142,9 +142,9 @@ newTalent{
info = function(self, t)
local damage = t.getDamage(self, t)
local radius = self:getTalentRadius(t)
return ([[Invoke a cone dealing %0.2f darkness damage, any creatures caught inside must make a mental save or be knocked back 4 grids away
return ([[Invoke a cone dealing %0.2f darkness damage in a radius of %d, any creatures caught inside must make a mental save or be knocked back 4 grids away
The damage will increase with the Magic stat]]):
format(damDesc(self, DamageType.DARKNESS, damage))
format(damDesc(self, DamageType.DARKNESS, damage), self:getTalentRadius(t))
end,
}
......@@ -178,10 +178,10 @@ newTalent{
local speed = t.getSpeed(self, t) * 100
local dur = t.getDur(self, t)
local minion = t.getMinion(self, t)
return ([[Invoke a ball of darkness that deals %0.2f darkness damage. Every creature hit will start to become closer to death and thus reduce global speed by %d%%.
return ([[Invoke a ball of darkness that deals %0.2f darkness damage in a radius of %d. Every creature hit will start to become closer to death and thus reduce global speed by %d%%.
Necrotic minions damage against those creatures is increased by %d%%.
The effects last for %d turns.
The damage done and minions damage increase will increase with the Magic stat]]):
format(damDesc(self, DamageType.DARKNESS, damage), speed, minion, dur)
format(damDesc(self, DamageType.DARKNESS, damage), self:getTalentRadius(t), speed, minion, dur)
end,
}
......@@ -139,7 +139,7 @@ newTalent{
m:setEffect(m.EFF_CURSE_HATE, 100, {src=self})
m.on_die = function(self, src)
local p = self.summoner:isTalentActive(self.summoner.T_NECROTIC_AURA)
if p and src and src.reactionToward and src:reactionToward(self) < 0 then
if p and src and src.reactionToward and src:reactionToward(self) < 0 and rng.percent(50) then
p.souls = math.min(p.souls + 1, p.souls_max)
self.summoner.changed = true
end
......
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