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

fix

git-svn-id: http://svn.net-core.org/repos/t-engine4@517 51575b47-30f0-44d4-a5cc-537603b46e54
parent fcdd5125
No related branches found
No related tags found
No related merge requests found
......@@ -22,8 +22,10 @@ setDefaultProjector(function(src, x, y, type, dam)
local target = game.level.map(x, y, Map.ACTOR)
if target then
-- Increases damage
local inc = src.inc_damage[type] or 0
dam = dam + (dam * inc / 100)
if src.inc_damage then
local inc = src.inc_damage[type] or 0
dam = dam + (dam * inc / 100)
end
-- Reduce damage with resistance
local res = target.resists[type] or 0
......
......@@ -121,10 +121,10 @@ newTalent{
name = "guardian bear", faction = "players",
desc = [[A bear summoned by the powers of nature to help you.]],
autolevel = "warrior",
ai = "summoned", ai_real = "dumb_talented_simple", ai_state = { talent_in=5, },
ai = "summoned", ai_real = "dumb_talented_simple", ai_state = { talent_in=3, },
energy = { mod=1 },
stats = { str=18, dex=13, mag=5, con=15 },
tmasteries = resolvers.tmasteries{ ["physical/other"]=0.25 },
tmasteries = resolvers.tmasteries{ ["technique/other"]=0.25 },
talents = resolvers.talents{ [Talents.T_STUN]=2 },
max_stamina = 100,
......
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