mirror of
https://github.com/edubart/otclient.git
synced 2025-04-30 01:29:21 +02:00

* i'm gradually restoring game functionality with the new modules design, though still a lot to do * you can reload all scripts and modules using Ctrl+R shortcut while playing (finally! this is the reason of all this rework) * a bunch of fixes, but new regression too :P * fix performance issue that could lead freezes in the client in older machines * completely new game module with new design * fix crashs in map render * remove uigame.cpp (now every game input is via lua) * enable DEBUG macro by default, with it you are able to view any possible lua leak while running
32 lines
1.1 KiB
Lua
32 lines
1.1 KiB
Lua
function Player:isPartyLeader()
|
|
local shield = self:getShield()
|
|
return (shield == ShieldWhiteYellow or
|
|
shield == ShieldYellow or
|
|
shield == ShieldYellowSharedExp or
|
|
shield == ShieldYellowNoSharedExpBlink or
|
|
shield == ShieldYellowNoSharedExp)
|
|
end
|
|
|
|
function Player:isPartyMember()
|
|
local shield = self:getShield()
|
|
return (shield == ShieldWhiteYellow or
|
|
shield == ShieldYellow or
|
|
shield == ShieldYellowSharedExp or
|
|
shield == ShieldYellowNoSharedExpBlink or
|
|
shield == ShieldYellowNoSharedExp or
|
|
shield == ShieldBlueSharedExp or
|
|
shield == ShieldBlueNoSharedExpBlink or
|
|
shield == ShieldBlueNoSharedExp or
|
|
shield == ShieldBlue)
|
|
end
|
|
|
|
function Player:isPartySharedExperienceActive()
|
|
local shield = self:getShield()
|
|
return (shield == ShieldYellowSharedExp or
|
|
shield == ShieldYellowNoSharedExpBlink or
|
|
shield == ShieldYellowNoSharedExp or
|
|
shield == ShieldBlueSharedExp or
|
|
shield == ShieldBlueNoSharedExpBlink or
|
|
shield == ShieldBlueNoSharedExp)
|
|
end
|