mirror of
https://github.com/UOX3DevTeam/UOX3
synced 2026-08-13 12:27:04 -04:00
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
33 lines
646 B
C++
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
|
|
|