finally got skills working properly
woooooo
This commit is contained in:
1 parent
8d17447f59
commit
bc9899b56d
4 files changed
+126
-391
No files matched your search
@@ -31,9 +31,9 @@ Skills.AddXp = function(src, skillName, amount)
|
||||
if not Skills.All[skillName] then
|
||||
Skills.All[skillName] = Skills.Create(skillName, 99, 50)
|
||||
end
|
||||
if not amount or amount < 0 then
|
||||
amount = Skills.GetScaledXP(Skills.All[skillName].baseXP, Skills.GetSkillLevel(src, skillName))
|
||||
end
|
||||
-- if not amount or amount < 0 then
|
||||
-- amount = Skills.GetScaledXP(Skills.All[skillName].baseXP, Skills.GetSkillLevel(src, skillName))
|
||||
-- end
|
||||
exports.pickle_xp:AddPlayerXP(src, skillName, amount)
|
||||
return true
|
||||
end
|
||||
|
||||
Reference in new issue
Block a user