Update mod_congratsonlevel.cpp

I aligned the code, and actually, our communication is done through AI translation. I initially thought your mention of alignment referred to the unification of the level display function calls. Thank you for the reminder. I'm not a professional programmer and haven't received formal training, so I don't have good code alignment habits. Thanks again for your reminder!~
This commit is contained in:
jamssismy 2025-02-28 11:29:09 +08:00 committed by GitHub
parent 4fe199845e
commit ae5e5d3b28
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -183,18 +183,12 @@ public:
case LOCALE_deDE:
case LOCALE_zhCN:
{
ss << "|cffFFFFFF[ |cffFF0000恭|cffFFA500喜|cffFFFF00你|cff00FF00升|cff00FFFF级|cff6A5ACD啦|cffFF00FF! |cffFFFFFF] : |cff4CFF00 "
<< player->GetName()
<< " |cffFFFFFF已达到 |cff4CFF00"
<< static_cast<int>(player->GetLevel()) << " 级|cffFFFFFF!";
ss << "|cffFFFFFF[ |cffFF0000恭|cffFFA500喜|cffFFFF00你|cff00FF00升|cff00FFFF级|cff6A5ACD啦|cffFF00FF! |cffFFFFFF] : |cff4CFF00 " << player->GetName() << " |cffFFFFFF已达到 |cff4CFF00" << static_cast<int>(player->GetLevel()) << " 级|cffFFFFFF!";
break;
}
case LOCALE_zhTW:
{
ss << "|cffFFFFFF[ |cffFF0000恭|cffFFA500喜|cffFFFF00你|cff00FF00升|cff00FFFF級|cff6A5ACD啦|cffFF00FF! |cffFFFFFF] : |cff4CFF00 "
<< player->GetName()
<< " |cffFFFFFF已達到 |cff4CFF00"
<< static_cast<int>(player->GetLevel()) << " 級|cffFFFFFF!";
ss << "|cffFFFFFF[ |cffFF0000恭|cffFFA500喜|cffFFFF00你|cff00FF00升|cff00FFFF級|cff6A5ACD啦|cffFF00FF! |cffFFFFFF] : |cff4CFF00 " << player->GetName() << " |cffFFFFFF已達到 |cff4CFF00" << static_cast<int>(player->GetLevel()) << " 級|cffFFFFFF!";
break;
}
case LOCALE_ruRU:
@ -226,20 +220,12 @@ public:
case LOCALE_deDE:
case LOCALE_zhCN: // 简体中文
{
ss << "|cffFFFFFF[ |cffFF0000恭|cffFFA500喜|cffFFFF00你|cff00FF00升|cff00FFFF级|cff6A5ACD啦|cffFF00FF! |cffFFFFFF] : |cff4CFF00 "
<< player->GetName()
<< " |cffFFFFFF已达到 |cff4CFF00"
<< static_cast<int>(player->GetLevel())
<< " 级|cffFFFFFF!";
ss << "|cffFFFFFF[ |cffFF0000恭|cffFFA500喜|cffFFFF00你|cff00FF00升|cff00FFFF级|cff6A5ACD啦|cffFF00FF! |cffFFFFFF] : |cff4CFF00 " << player->GetName() << " |cffFFFFFF已达到 |cff4CFF00" << static_cast<int>(player->GetLevel()) << " 级|cffFFFFFF!";
break;
}
case LOCALE_zhTW: // 繁体中文
{
ss << "|cffFFFFFF[ |cffFF0000恭|cffFFA500喜|cffFFFF00你|cff00FF00升|cff00FFFF級|cff6A5ACD啦|cffFF00FF! |cffFFFFFF] : |cff4CFF00 "
<< player->GetName()
<< " |cffFFFFFF已達到 |cff4CFF00"
<< static_cast<int>(player->GetLevel())
<< " 級|cffFFFFFF!";
ss << "|cffFFFFFF[ |cffFF0000恭|cffFFA500喜|cffFFFF00你|cff00FF00升|cff00FFFF級|cff6A5ACD啦|cffFF00FF! |cffFFFFFF] : |cff4CFF00 " << player->GetName() << " |cffFFFFFF已達到 |cff4CFF00" << static_cast<int>(player->GetLevel()) << " 級|cffFFFFFF!";
break;
}
case LOCALE_ruRU:
@ -267,14 +253,12 @@ case LOCALE_zhTW: // 繁体中文
case LOCALE_deDE:
case LOCALE_zhCN: // 简体中文
{
ss2 << "恭喜达到等级 " << static_cast<int>(player->GetLevel()) << "" << player->GetName()
<< "!您获得了 " << money << " 钱币和一些宝藏!";
ss2 << "恭喜达到等级 " << static_cast<int>(player->GetLevel()) << "" << player->GetName() << "!您获得了 " << money << " 钱币和一些宝藏!";
break;
}
case LOCALE_zhTW: // 繁体中文
{
ss2 << "恭喜達到等級 " << static_cast<int>(player->GetLevel()) << "" << player->GetName()
<< "!您獲得了 " << money << " 錢幣和一些寶藏!";
ss2 << "恭喜達到等級 " << static_cast<int>(player->GetLevel()) << "" << player->GetName() << "!您獲得了 " << money << " 錢幣和一些寶藏!";
break;
}
case LOCALE_ruRU: