From c187e2c76f44b60c93d37634c8ac24f8edc20515 Mon Sep 17 00:00:00 2001 From: icecool Date: Sat, 23 Feb 2019 17:17:31 -0600 Subject: [PATCH] GMCP Adjustments --- EquipmentManager.xml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/EquipmentManager.xml b/EquipmentManager.xml index 2c5d657..9c443ba 100644 --- a/EquipmentManager.xml +++ b/EquipmentManager.xml @@ -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