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

techniques

git-svn-id: http://svn.net-core.org/repos/t-engine4@297 51575b47-30f0-44d4-a5cc-537603b46e54
parent b261d6aa
No related branches found
No related tags found
No related merge requests found
......@@ -226,6 +226,11 @@ function _M:die(src)
end
self.inven = {}
-- Give stamina back
if src:knowTalent(src.T_UNENDING_FRENZY) then
src:incStamina(src:getTalentLevel(src.T_UNENDING_FRENZY) * 2)
end
return true
end
......
----------------------------------------------------
-- Active techniques
----------------------------------------------------
newTalent{
name = "Precise Striking",
type = {"technique/combat-techniques", 1},
type = {"technique/combat-techniques-active", 1},
mode = "sustained",
points = 5,
require = techs_strdex_req1,
......@@ -27,7 +30,7 @@ newTalent{
newTalent{
name = "Blinding Speed",
type = {"technique/combat-techniques", 2},
type = {"technique/combat-techniques-active", 2},
points = 5,
cooldown = 55,
stamina = 25,
......@@ -43,7 +46,7 @@ newTalent{
newTalent{
name = "Perfect Strike",
type = {"technique/combat-techniques", 3},
type = {"technique/combat-techniques-active", 3},
points = 5,
cooldown = 55,
stamina = 25,
......@@ -59,7 +62,7 @@ newTalent{
newTalent{
name = "Rush",
type = {"technique/combat-techniques", 4},
type = {"technique/combat-techniques-active", 4},
message = "@Source@ rushes out!",
require = techs_strdex_req4,
points = 5,
......@@ -98,3 +101,68 @@ newTalent{
return ([[Rushes toward your target with incredible speed. If the target is reached you get a free attack doing 120% weapon damage.]])
end,
}
----------------------------------------------------
-- Passive techniques
----------------------------------------------------
newTalent{
name = "Quick Recovery",
type = {"technique/combat-techniques-passive", 1},
require = techs_strdex_req1,
mode = "passive",
points = 5,
on_learn = function(self, t)
self.stamina_regen = self.stamina_regen + 0.2
end,
on_unlearn = function(self, t)
self.stamina_regen = self.stamina_regen - 0.2
end,
info = function(self, t)
return ([[Your focus on the combat allows you to regenerate stamina faster (+%0.2f stamina/turn).]]):format(self:getTalentLevelRaw(t) / 5)
end,
}
newTalent{
name = "Fast Metabolism",
type = {"technique/combat-techniques-passive", 2},
require = techs_strdex_req2,
mode = "passive",
points = 5,
on_learn = function(self, t)
self.life_regen = self.life_regen + 0.2
end,
on_unlearn = function(self, t)
self.life_regen = self.life_regen - 0.2
end,
info = function(self, t)
return ([[Your focus on the combat allows you to regenerate life faster (+%0.2f life/turn).]]):format(self:getTalentLevelRaw(t) / 5)
end,
}
newTalent{
name = "Spell Shield",
type = {"technique/combat-techniques-passive", 3},
require = techs_strdex_req3,
mode = "passive",
points = 5,
on_learn = function(self, t)
self.combat_spellresist = self.combat_spellresist + 4
end,
on_unlearn = function(self, t)
self.combat_spellresist = self.combat_spellresist - 4
end,
info = function(self, t)
return ([[Rigorous training allows you to be more resistant to some spells effects. (+%d spell resistance).]]):format(self:getTalentLevelRaw(t) * 4)
end,
}
newTalent{
name = "Unending Frenzy",
type = {"technique/combat-techniques-passive", 4},
require = techs_strdex_req4,
mode = "passive",
points = 5,
info = function(self, t)
return ([[You relish in the death of your foes, regaining %d stamina wit heach death.]]):format(self:getTalentLevel(t) * 2)
end,
}
......@@ -35,7 +35,7 @@ newTalent{
self.max_life = self.max_life - 40
end,
info = function(self, t)
return ([[Increases your maximun life by %d]]):format(40 * self:getTalentLevel(t))
return ([[Increases your maximun life by %d]]):format(40 * self:getTalentLevelRaw(t))
end,
}
......
......@@ -5,7 +5,8 @@ newTalentType{ type="technique/shield-offense", name = "weapon and shields", des
newTalentType{ type="technique/shield-defense", name = "weapon and shields", description = "Specialized weapon and shield techniques." }
newTalentType{ type="technique/dualweapon-training", name = "dual wielding", description = "Specialized dual wielding techniques." }
newTalentType{ type="technique/dualweapon-attack", name = "dual wielding", description = "Specialized dual wielding techniques." }
newTalentType{ type="technique/combat-techniques", name = "combat-techniques", description = "Generic combat oriented techniques." }
newTalentType{ type="technique/combat-techniques-active", name = "combat-techniques", description = "Generic combat oriented techniques." }
newTalentType{ type="technique/combat-techniques-passive", name = "combat-techniques", description = "Generic combat oriented techniques." }
newTalentType{ type="technique/combat-training", name = "combat-training", description = "Teaches to use various armors and improves health." }
-- Generic requires for techs based on talent level
......
--load("/data/general/npcs/rodent.lua")
--load("/data/general/npcs/vermin.lua")
--load("/data/general/npcs/molds.lua")
load("/data/general/npcs/rodent.lua")
load("/data/general/npcs/vermin.lua")
load("/data/general/npcs/molds.lua")
load("/data/general/npcs/skeleton.lua")
--load("/data/general/npcs/snake.lua")
load("/data/general/npcs/snake.lua")
local Talents = require("engine.interface.ActorTalents")
......
No preview for this file type
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