uox3/source/cSkillClass.h
Xoduz 37a76083de Rest of the changes for 0.99.6-RC1
Misc cleanup and standardization of style and naming conventions in code and scripts
Added missing code for showing race in paperdoll based on ini setting
Players can no longer use Polymorph spell while incognitoed, or while under effect of tribal paint
Players can no longer use Incognito spell while polymorphed, or while under the effects of tribal paint
Facial hair is now removed from players who are under the effects of Incognito spell that changes their gender for female
2022-10-24 18:39:33 +08:00

33 lines
646 B
C++

#ifndef __CSKILLCLASS_H__
#define __CSKILLCLASS_H__
#include <algorithm>
class cSkillClass
{
public:
UI08 skill;
UI16 value;
cSkillClass( UI08 nskill, UI16 nvalue ) : skill( nskill ), value( nvalue )
{
}
};
inline bool operator == ( const cSkillClass& x, const cSkillClass& y )
{
return ( x.value == y.value );
}
inline bool operator < ( const cSkillClass& x, const cSkillClass& y )
{
return (( x.value == y.value ) ? ( x.skill < y.skill ) : ( x.value < y.value ));
}
inline bool operator > ( const cSkillClass& x, const cSkillClass& y )
{
return (( x.value == y.value ) ? ( x.skill > y.skill ) : ( x.value > y.value ));
}
#endif