GetMaxStam
Returns the maximum stamina of the mobile with ObjID.
Возвращает максимальную выносливость (stamina) мобайла с ObjID.
function GetMaxStam(ObjID: Cardinal): Integer;
def GetMaxStam(ObjID: int) -> int: ...
begin
if GetStam(Self) < GetMaxStam(Self) div 2 then
AddToSystemJournal('Stamina below 50%');
end.
if GetStam(Self()) < GetMaxStam(Self()) // 2:
AddToSystemJournal('Stamina below 50%')