Found some weird things in files of this mod, so i ask WTF does they mean :
1) in skills.lua file this strings
function skill_rune_stone(name,level)
local bonus = skill_power(name,1,level-1)
local cur_might=Logic.hero_lu_item("rune_might","count")
local cur_magic=Logic.hero_lu_item("rune_magic","count")
Logic.hero_lu_item("rune_might","count",cur_might+ bonus)
Logic.hero_lu_item("rune_magic","count",cur_magic+ bonus)
This is description of old paladin runic stone skill from KB-TL, so i ask what it do here ?
2) function skill_archer(name,level)
local bonus = skill_power(name,1,level-1)
if level >1 then bonus=bonus-skill_power(name,1,level-2) end
local cur_archer=Logic.hero_lu_item("sp_lead_archer","co unt")
Logic.hero_lu_item("sp_lead_archer","count",bonus+ cur_archer)
I guess it`s suposed to lower lds requirements for archer units, but in skills.txt and eng_skills.lng it isnt mentioned, or given function for it. How to add this function in other 2 files connected to skills ?
3) function skill_archmage(name,level)
local bonus = skill_power(name,1,level-1)
if level >1 then bonus=bonus-skill_power(name,1,level-2) end
local cur_archer=Logic.hero_lu_item("sp_lead_archmage"," count")
Logic.hero_lu_item("sp_lead_archmage","count",bonu s+cur_archer)
It`s mage`s archemage skill, but it have string cur_archer ??? What should be there instead cur_archmage or something else ?
4) function skill_warrior(name,level)
local bonus = skill_power(name,1,level-1)
if level >1 then bonus=bonus-skill_power(name,1,level-2) end
local cur_lead=Logic.hero_lu_item("sp_lead_warrior","cou nt")
Logic.hero_lu_item("sp_lead_warrior","count",bonus +cur_lead)
Same as for archer skill, should this lower lds for warrior units listed in special_params.txt file ? And what skill is warrior anyway ?
|