comparison mm7_5.cpp @ 1108:a1fd8045ffb1

probably erroneous semicolons removed, mace and staff stun chance work as they should
author Grumpy7
date Mon, 27 May 2013 22:25:27 +0200
parents 5d5c78088274
children cf6cd674c398
comparison
equal deleted inserted replaced
1107:4339bb88c4f5 1108:a1fd8045ffb1
4443 switch (main_hand_skill) 4443 switch (main_hand_skill)
4444 { 4444 {
4445 case PLAYER_SKILL_STAFF: 4445 case PLAYER_SKILL_STAFF:
4446 if (main_hand_mastery >= 3) 4446 if (main_hand_mastery >= 3)
4447 { 4447 {
4448 if (rand() % 100 < player->GetActualSkillLevel(PLAYER_SKILL_STAFF) & 0x3F) // stun chance when mastery >= 3 4448 if (rand() % 100 < (player->GetActualSkillLevel(PLAYER_SKILL_STAFF) & 0x3F)) // stun chance when mastery >= 3
4449 hit_will_stun = true; 4449 hit_will_stun = true;
4450 } 4450 }
4451 break; 4451 break;
4452 4452
4453 case PLAYER_SKILL_MACE: 4453 case PLAYER_SKILL_MACE:
4454 if (main_hand_mastery >= 3) 4454 if (main_hand_mastery >= 3)
4455 { 4455 {
4456 if (rand() % 100 < player->GetActualSkillLevel(PLAYER_SKILL_MACE) & 0x3F) 4456 if (rand() % 100 < (player->GetActualSkillLevel(PLAYER_SKILL_MACE) & 0x3F))
4457 hit_will_stun = true; 4457 hit_will_stun = true;
4458 } 4458 }
4459 if (main_hand_mastery >= 4) 4459 if (main_hand_mastery >= 4)
4460 { 4460 {
4461 if (rand() % 100 < player->GetActualSkillLevel(PLAYER_SKILL_MACE) & 0x3F) 4461 if (rand() % 100 < (player->GetActualSkillLevel(PLAYER_SKILL_MACE) & 0x3F))
4462 hit_will_paralyze = true; 4462 hit_will_paralyze = true;
4463 } 4463 }
4464 break; 4464 break;
4465 } 4465 }
4466 } 4466 }