Skip to content

Commit

Permalink
disabling xp display for offline, if you want to edit common scripts …
Browse files Browse the repository at this point in the history
…for online play put in a logical switch
  • Loading branch information
MinaciousGrace committed Mar 19, 2017
1 parent e377aac commit 78ff27d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Themes/Til Death/BGAnimations/_PlayerInfo.lua
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,11 @@ t[#t+1] = Def.ActorFrame{
if profileXP > 0 then
level = math.floor(math.log(profileXP) / math.log(2))
end
self:settext("Overall Level: " .. level .. "\nEXP Earned: " .. profileXP .. "/" .. 2^(level+1))
if(IsNetSMOnline()) then
self:settext("Overall Level: " .. level .. "\nEXP Earned: " .. profileXP .. "/" .. 2^(level+1))
else
self:settext("")
end
end,
PlayerJoinedMessageCommand=cmd(queuecommand,"Set"),
PlayerUnjoinedMessageCommand=cmd(queuecommand,"Set"),
Expand Down

0 comments on commit 78ff27d

Please sign in to comment.