No experience in solving mangos advanced monsters

Source: Internet
Author: User

No experience in solving mangos advanced monsters
 
The file managed by mangos is formulas. h.

Replace the followingCodeYou can.

Namespace XP
{
Typedef Enum xpcolorchar {red, orange, yellow, green, gray };

Inline uint32 getgraylevel (uint32 pl_level)
{

// Ark bbs.arsf.cn

If (pl_level <= 10) // modify part
Return 0;
Else if (pl_level <= 60) // modify part
Return pl_level-10-pl_level/10;
Else if (pl_level <= 80) // Add part
Return pl_level-4-pl_level/5;
Else if (pl_level <= 100) // Add part
Return pl_level-1-pl_level/4;
Else 75; // After 100, the default minimum monster level is 75.

}

Inline xpcolorchar getcolorcode (uint32 pl_level, uint32 mob_level)
{
If (mob_level> = pl_level + 5)
Return red;
Else if (mob_level> = pl_level + 3)
Return orange;
Else if (mob_level> = pl_level-2)
Return yellow;
Else if (mob_level> getgraylevel (pl_level ))
Return green;
Else
Return gray;
}

Inline uint32 getzerodifference (uint32 pl_level)
{

// Set the registration difference factor to ARK bbs.arsf.cn
If (pl_level <8) return 5;
If (pl_level <10) return 6;
If (pl_level <12) return 7;
If (pl_level <16) return 8;
If (pl_level <20) return 9;
If (pl_level <30) return 11;
If (pl_level <40) return 12;
If (pl_level <45) Return 13;
If (pl_level <50) return 14;
If (pl_level <55) return 15;
If (pl_level <60) return 16;

// Added later
If (pl_level <80) return 20;
If (pl_level <100) return 30;
If (pl_level <120) return 50;
If (pl_level <150) return 80;
If (pl_level <200) return 130;
Return 180;

// Add end
}

I originally wanted to change it to the empirical formula of my arwow_ut version. However, there are too many changes in this way, which is not suitable for future upgrades, this Code only changes the code of the original file. It is added in other places!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.