WIP - skills module

This commit is contained in:
MrNewb committed 2025-04-28 09:17:43 -04:00
1 parent 9881292602
commit a17eb15217
11 files changed
+179 -1

No files matched your search

+25
View File
@@ -0,0 +1,25 @@
Skills = Skills or {}
local function warnUser()
print("Currently only a few skill systems are supported by Community Bridge, you are using a resource that requires the skills module to be used.")
end
---@diagnostic disable-next-line: duplicate-set-field
Skills.GetResourceName = function()
return "none"
end
---@diagnostic disable-next-line: duplicate-set-field
Skills.GetSkillLevel = function(src, skillName)
return 0, warnUser()
end
---@diagnostic disable-next-line: duplicate-set-field
Skills.AddXp = function(src, skillName, amount)
return false, warnUser()
end
---@diagnostic disable-next-line: duplicate-set-field
Skills.RemoveXp = function(src, skillName, amount)
return false, warnUser()
end