Skip to content
Snippets Groups Projects
combat-training.lua 2.45 KiB
Newer Older
dg's avatar
dg committed
newTalent{
	name = "Heavy Armour Training",
dg's avatar
dg committed
	type = {"technique/combat-training", 1},
dg's avatar
dg committed
	mode = "passive",
dg's avatar
dg committed
	points = 5,
dg's avatar
dg committed
	require = { stat = { str=18 }, },
dg's avatar
dg committed
	info = function(self, t)
dg's avatar
dg committed
		return ([[Teaches the usage of heavy mail armours. Increases amour value by %d when wearing a heavy mail armour.]]):
		format(self:getTalentLevel(t))
dg's avatar
dg committed
	end,
}

newTalent{
	name = "Massive Armour Training",
dg's avatar
dg committed
	type = {"technique/combat-training", 2},
dg's avatar
dg committed
	mode = "passive",
dg's avatar
dg committed
	points = 5,
dg's avatar
dg committed
	require = { stat = { str=22 }, talent = { Talents.T_HEAVY_ARMOUR_TRAINING }, },
dg's avatar
dg committed
	info = function(self, t)
dg's avatar
dg committed
		return ([[Teaches the usage of massive plate armours. Increases amour value by %d when wearing a massive plate armour.]]):
		format(self:getTalentLevel(t))
dg's avatar
dg committed
	end,
}

newTalent{
	name = "Health",
dg's avatar
dg committed
	type = {"technique/combat-training", 1},
dg's avatar
dg committed
	mode = "passive",
dg's avatar
dg committed
	require = { stat = { con=function(level) return 14 + level * 3 end }, },
dg's avatar
dg committed
	on_learn = function(self, t)
		self.max_life = self.max_life + 40
dg's avatar
dg committed
	end,
	on_unlearn = function(self, t)
		self.max_life = self.max_life - 40
dg's avatar
dg committed
	end,
dg's avatar
dg committed
	info = function(self, t)
dg's avatar
dg committed
		return ([[Increases your maximun life by %d]]):format(40 * self:getTalentLevelRaw(t))
dg's avatar
dg committed
	end,
}

newTalent{
	name = "Weapon Combat",
	type = {"technique/combat-training", 1},
	points = 10,
	require = { level=function(level) return (level - 1) * 2 end },
	mode = "passive",
	info = function(self, t)
dg's avatar
dg committed
		return [[Increases chances to hit with melee and ranged weapons.]]
dg's avatar
dg committed
	end,
}
dg's avatar
dg committed

dg's avatar
dg committed
newTalent{
	name = "Sword Mastery",
	type = {"technique/combat-training", 1},
	points = 10,
	require = { stat = { str=function(level) return 12 + level * 3 end }, },
	mode = "passive",
	info = function(self, t)
		return [[Increases damage with swords.]]
	end,
}

newTalent{
	name = "Axe Mastery",
	type = {"technique/combat-training", 1},
	points = 10,
	require = { stat = { str=function(level) return 12 + level * 3 end }, },
	mode = "passive",
	info = function(self, t)
		return [[Increases damage with axes.]]
	end,
}

newTalent{
	name = "Mace Mastery",
	type = {"technique/combat-training", 1},
	points = 10,
	require = { stat = { str=function(level) return 14 + level * 3 end }, },
	mode = "passive",
	info = function(self, t)
		return [[Increases damage with maces.]]
	end,
}

newTalent{
	name = "Knife Mastery",
	type = {"technique/combat-training", 1},
	points = 10,
	require = { stat = { dex=function(level) return 10 + level * 3 end }, },
	mode = "passive",
	info = function(self, t)
dg's avatar
dg committed
		return [[Increases damage with knives.]]
dg's avatar
dg committed
	end,
}