finally got skills working properly

woooooo
This commit is contained in:
gononono64 committed 2025-06-24 03:18:38 -05:00
1 parent 8d17447f59
commit bc9899b56d
4 files changed
+126 -391

No files matched your search

-4
View File
@@ -10,7 +10,6 @@ if (configValue == "auto" and GetResourceState(resourceName) ~= "started") or (c
Skills.GetResourceName = function()
return resourceName
end
---This will return the skill level of the passed skill name.
---@param src number
---@param skillName string
@@ -31,9 +30,6 @@ 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
exports.evolent_skills:addXp(src, skillName, amount)
return true
end