Mercurial > mm7
diff Player.cpp @ 2197:42c8807225a2
UIMSG_SpellBook_PressTab continue
author | Ritor1 |
---|---|
date | Fri, 31 Jan 2014 17:30:36 +0600 |
parents | 48a28fe1f32f |
children | 4bfee77e900d c2eeeb991a87 |
line wrap: on
line diff
--- a/Player.cpp Fri Jan 31 00:37:26 2014 +0100 +++ b/Player.cpp Fri Jan 31 17:30:36 2014 +0600 @@ -1587,7 +1587,7 @@ totalDmg *= 2; } } - if ( (signed int)SkillToMastery(this->pActiveSkills[2]) >= 3 + if ( (signed int)SkillToMastery(this->pActiveSkills[PLAYER_SKILL_DAGGER]) >= 3 && pItemsTable->pItems[itemId].uSkillType == 2 && rand() % 100 < 10 ) totalDmg *= 3; @@ -1936,7 +1936,7 @@ } else { - v6 = this->pActiveSkills[34]; + v6 = this->pActiveSkills[PLAYER_SKILL_STEALING]; v7 = v6 & 0x3F; v8 = SkillToMastery(v6); itemvalue = itemToSteal->GetValue(); @@ -1999,7 +1999,7 @@ pGlobalTXT_LocalizationStrings[1]; if ( !(BYTE2(actroPtr->uAttributes) & 0x80) ) actroPtr->SetRandomGoldIfTheresNoItem(); - unsigned __int16 v6 = this->pActiveSkills[34]; + unsigned __int16 v6 = this->pActiveSkills[PLAYER_SKILL_STEALING]; v7 = v6 & 0x3F; stealingMastery = SkillToMastery(v6); int v30 = StealingMasteryBonuses[stealingMastery];