Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- BYTE CHARACTER::GetAlignmentType()
- {
- BYTE iAlignIndex;
- if (GetRealAlignment() >= 200000000)
- iAlignIndex = 0;
- else if (GetRealAlignment() >= 100000000)
- iAlignIndex = 1;
- else if (GetRealAlignment() >= 50000000)
- iAlignIndex = 2;
- else if (GetRealAlignment() >= 10000000)
- iAlignIndex = 3;
- else if (GetRealAlignment() >= 7500000)
- iAlignIndex = 4;
- else if (GetRealAlignment() >= 5000000)
- iAlignIndex = 5;
- else if (GetRealAlignment() >= 2500000)
- iAlignIndex = 6;
- else if (GetRealAlignment() >= 1000000)
- iAlignIndex = 7;
- else if (GetRealAlignment() >= 500000)
- iAlignIndex = 8;
- else if (GetRealAlignment() >= 250000)
- iAlignIndex = 9;
- else if (GetRealAlignment() >= 100000)
- iAlignIndex = 10;
- else
- iAlignIndex = 11;
- return iAlignIndex;
- }
- BYTE CHARACTER::GetAlignmentType(long long value)
- {
- BYTE iAlignIndex;
- if (value >= 200000000)
- iAlignIndex = 0;
- else if (value >= 100000000)
- iAlignIndex = 1;
- else if (value >= 50000000)
- iAlignIndex = 2;
- else if (value >= 10000000)
- iAlignIndex = 3;
- else if (value >= 7500000)
- iAlignIndex = 4;
- else if (value >= 5000000)
- iAlignIndex = 5;
- else if (value >= 2500000)
- iAlignIndex = 6;
- else if (value >= 1000000)
- iAlignIndex = 7;
- else if (value >= 500000)
- iAlignIndex = 8;
- else if (value >= 250000)
- iAlignIndex = 9;
- else if (value >= 100000)
- iAlignIndex = 10;
- else
- iAlignIndex = 11;
- return iAlignIndex;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement