Created
November 12, 2010 01:35
-
-
Save scottdavis/673588 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| } else { | |
| // no idea how taunt success is actually calculated | |
| // TODO: chance for level 50+ mobs should be lower | |
| int level_difference = level - who->GetLevel(); | |
| if (level_difference <= 5) { | |
| tauntchance = 25.0; // minimum | |
| tauntchance += tauntchance * (float)GetSkill(TAUNT) / 200.0; // skill modifier | |
| if (tauntchance > 65.0) | |
| tauntchance = 65.0; | |
| } | |
| else if (level_difference <= 10) { | |
| tauntchance = 30.0; // minimum | |
| tauntchance += tauntchance * (float)GetSkill(TAUNT) / 200.0; // skill modifier | |
| if (tauntchance > 85.0) | |
| tauntchance = 85.0; | |
| } | |
| else if (level_difference <= 15) { | |
| tauntchance = 40.0; // minimum | |
| tauntchance += tauntchance * (float)GetSkill(TAUNT) / 200.0; // skill modifier | |
| if (tauntchance > 90.0) | |
| tauntchance = 90.0; | |
| } | |
| else { | |
| tauntchance = 50.0; // minimum | |
| tauntchance += tauntchance * (float)GetSkill(TAUNT) / 200.0; // skill modifier | |
| if (tauntchance > 95.0) | |
| tauntchance = 95.0; | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment