Mercurial > mm7
comparison mm7_2.cpp @ 1064:655fde266d96
GetSkillBonus cleaning in progress
author | Gloval |
---|---|
date | Fri, 24 May 2013 08:16:36 +0400 |
parents | cbb1baa606aa |
children | e86b4951da70 |
comparison
equal
deleted
inserted
replaced
1059:0e0f1192aa57 | 1064:655fde266d96 |
---|---|
5443 pHostileTXT_Raw = NULL; | 5443 pHostileTXT_Raw = NULL; |
5444 } | 5444 } |
5445 } | 5445 } |
5446 | 5446 |
5447 //----- (00458244) -------------------------------------------------------- | 5447 //----- (00458244) -------------------------------------------------------- |
5448 unsigned int SkillToMastery(unsigned int value) | 5448 int SkillToMastery( unsigned int skill_value ) |
5449 { | 5449 { |
5450 switch (value & 0x1C0) | 5450 switch (skill_value & 0x1C0) |
5451 { | 5451 { |
5452 case 0x100: return 4; // Grandmaster | 5452 case 0x100: return 4; // Grandmaster |
5453 case 0x80: return 3; // Master | 5453 case 0x80: return 3; // Master |
5454 case 0x40: return 2; // Expert | 5454 case 0x40: return 2; // Expert |
5455 case 0x00: return 1; // Normal | 5455 case 0x00: return 1; // Normal |