GMCP Adjustments

master
icecool 6 years ago
parent fa38b8e02f
commit c187e2c76f

@ -163,14 +163,23 @@ function Character.New()
return player
end
function Character:Level()
if not checkGMCPValue("char.status.level") then
Send_GMCP_Packet("request char")
end
dnote(("%s Character:Level() returns: %d"):format(Prepend, tonumber(checkGMCPValue("char.status.level"))))
return tonumber(checkGMCPValue("char.status.level"))
end
function Character:TierLevel()
if not checkGMCPValue("char.base.tier") then
Send_GMCP_Packet("request char")
end
dnote(("%s Character:TierLevel() returns: %d"):format(Prepend, (tonumber(checkGMCPValue("char.base.tier"))*10)))
return (tonumber(checkGMCPValue("char.base.tier"))*10)
end
function Character:EffectiveLevel()
if not checkGMCPValue("char") then
Send_GMCP_Packet("request char")
end
dnote(("%s Character:EffectiveLevel() returns: %d"):format(Prepend, (self:Level()+self:TierLevel())))
return (self:Level() + self:TierLevel())
end

Loading…
Cancel
Save