Re: some weapon skill help pls
Posted: Fri Feb 27, 2015 5:01 am
and also here is the sword prof skill definition
SpoilerShow
Code: Select all
defineSkill{
name = "sword_prof",
uiName = "Sword prof",
priority = 10,
--iconAtlas = "mod_assets/icons/testujuikony.tga",
icon = 0,
description = "Mastering the sword requires both dexterity and Strength. Each point invested increases your Strength / Hit points or Dexterity / energy. On Level 5 any attack with sword is 20% faster.",
onRecomputeStats = function(champion, level)
if level == 1 then
champion:addStatModifier("dexterity", level)
champion:addStatModifier("max_energy", level * 5)
elseif level == 2 then
champion:addStatModifier("dexterity", level - 1)
champion:addStatModifier("max_energy", (level - 1) * 5)
champion:addStatModifier("strength", level - 1)
champion:addStatModifier("max_health", (level - 1) * 5)
elseif level == 3 then
champion:addStatModifier("dexterity", level - 1)
champion:addStatModifier("max_energy", (level - 1) * 5)
champion:addStatModifier("strength", level - 2)
champion:addStatModifier("max_health", (level - 2) * 5)
elseif level == 4 then
champion:addStatModifier("dexterity", level - 2)
champion:addStatModifier("max_energy", (level - 2) * 5)
champion:addStatModifier("strength", level - 2)
champion:addStatModifier("max_health", (level - 2) * 5)
elseif level == 5 then
champion:addStatModifier("dexterity", level - 3)
champion:addStatModifier("max_energy", (level - 3) * 5)
champion:addStatModifier("strength", level - 3)
champion:addStatModifier("max_health", (level - 3) * 5)
end
end,
traits = { [5] = "grandmaster_sword" },
}