typo
the day the earth stood still
This commit is contained in:
1 parent
21e3a5ee90
commit
c53209ef96
1 file changed
+2
-2
@@ -103,7 +103,7 @@ Skills.AddPlayerXP = function(src, skillName, xp)
|
|||||||
return true
|
return true
|
||||||
end
|
end
|
||||||
|
|
||||||
Skills.SetPlayerXP = function(src, skillName, xp)
|
Skills.SetXP = function(src, skillName, xp)
|
||||||
if not src or not skillName or not xp or xp < 0 then return false end
|
if not src or not skillName or not xp or xp < 0 then return false end
|
||||||
if not Skills.All[skillName] then
|
if not Skills.All[skillName] then
|
||||||
Skills.All[skillName] = Skills.Create(skillName, 99, 50)
|
Skills.All[skillName] = Skills.Create(skillName, 99, 50)
|
||||||
@@ -119,7 +119,7 @@ Skills.SetPlayerXP = function(src, skillName, xp)
|
|||||||
return true
|
return true
|
||||||
end
|
end
|
||||||
|
|
||||||
Skills.GetPlayerXP = function(src, skillName)
|
Skills.GetXP = function(src, skillName)
|
||||||
if not src or not skillName then return 0 end
|
if not src or not skillName then return 0 end
|
||||||
local playerSkills = Framework.GetPlayerMetadata(src, "community_bridge_skills") or {}
|
local playerSkills = Framework.GetPlayerMetadata(src, "community_bridge_skills") or {}
|
||||||
local skill = playerSkills[skillName] or { xp = 0, level = 1 }
|
local skill = playerSkills[skillName] or { xp = 0, level = 1 }
|
||||||
|
|||||||
Reference in new issue
Block a user