Skip to content

Commit

Permalink
fix some cyclopedia minor issues.
Browse files Browse the repository at this point in the history
precisa add, 11 13
  • Loading branch information
vllworldbuilding committed Nov 1, 2024
1 parent 8aa5ec2 commit 0527c24
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server/network/protocol/protocolgame.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3505,7 +3505,7 @@ void ProtocolGame::sendCyclopediaCharacterGeneralStats() {
msg.add<uint16_t>(player->getMagicLevelPercent() * 100);
/*HARDCODED? the values are right?*/
for (uint8_t i = SKILL_FIRST; i < SKILL_CRITICAL_HIT_CHANCE; ++i) {
static const uint8_t HardcodedSkillIds[] = { 12, 10, 9, 11, 8, 7, 14 };
static const uint8_t HardcodedSkillIds[] = { 9, 8, 10, 12, 14, 15, 16, 17 };
const auto skill = static_cast<skills_t>(i);
msg.addByte(HardcodedSkillIds[i]);
msg.add<uint16_t>(std::min<int32_t>(player->getSkillLevel(skill), std::numeric_limits<uint16_t>::max()));
Expand Down

0 comments on commit 0527c24

Please sign in to comment.