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

fix

git-svn-id: http://svn.net-core.org/repos/t-engine4@5480 51575b47-30f0-44d4-a5cc-537603b46e54
parent 6fbe3205
No related branches found
No related tags found
No related merge requests found
......@@ -260,7 +260,7 @@ newTalent{
self:project(tg, target.x, target.y, function(px, py, tg, self)
local tmp_target = game.level.map(px, py, Map.ACTOR)
if tmp_target and tmp_target ~= self and tmp_target ~= target then
local hit = self:attackTargetWith(tmp_target, useDreamHammer(self), nil, t.getDamage(self, t))
local hit = self:attackTargetWith(tmp_target, useDreamHammer(self), DamageType.DREAMFORGE, t.getDamage(self, t))
if hit and rng.percent(50) then
game.level.map:particleEmitter(tmp_target.x, tmp_target.y, 1, "generic_discharge", {rm=225, rM=255, gm=0, gM=0, bm=0, bM=0, am=35, aM=90})
elseif hit then
......@@ -275,7 +275,7 @@ newTalent{
info = function(self, t)
local damage = t.getDamage(self, t)
local radius = self:getTalentRadius(t)
local project = t.getProject(self, t)
local project = t.getProject(self, t) /2
return ([[Strike the target with a mighty blow from the forge, inflicting %d%% weapon damage. If the attack hits the echo of the attack will lash out at all enemies in a %d radius.
Learning this talent adds %0.2f mind damage and %0.2f burning damage to your Dream Hammer strikes.
The mind and fire damage will scale with your mindpower.]]):format(damage * 100, radius, damDesc(self, DamageType.MIND, project), damDesc(self, DamageType.FIRE, project))
......
......@@ -33,7 +33,7 @@ newTalent{
if inven.worn then
for item, o in ipairs(inven) do
if o and item and o.power_source and (o.power_source.psionic or o.power_source.nature or o.power_source.antimagic) then
psychometry_count = psychometry_count + math.min(o.material_level/2 or 0.5, t.getPsychometryCap(self, t))
psychometry_count = psychometry_count + math.min((o.material_level or 1) / 2, t.getPsychometryCap(self, t))
end
end
end
......
......@@ -47,7 +47,7 @@ return {
class = "engine.generator.object.Random",
nb_object = {0, 0},
},
}
},
post_process = function(level)
game.state:makeAmbientSounds(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