Skip to content

Commit

Permalink
fix: animus mastery bonus on creature list
Browse files Browse the repository at this point in the history
  • Loading branch information
FelipePaluco committed Jan 18, 2025
1 parent 9dc0f2a commit b0e4d15
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/server/network/protocol/protocolgame.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3033,13 +3033,14 @@ void ProtocolGame::parseBestiarysendCreatures(NetworkMessage &msg) {

const auto monsterType = g_monsters().getMonsterType(it_.second);
if (monsterType && player->animusMastery().has(it_.second)) {
newmsg.add<uint16_t>(1);
newmsg.add<uint16_t>(static_cast<uint16_t>(std::round((player->animusMastery().getExperienceMultiplier() - 1) * 1000))); // Animus Mastery Bonus
} else {
newmsg.add<uint16_t>(0);
}
}

newmsg.add<uint16_t>(player->animusMastery().getPoints());
newmsg.add<uint16_t>(player->animusMastery().getPoints()); // Animus Mastery Points

writeToOutputBuffer(newmsg);
}

Expand Down

0 comments on commit b0e4d15

Please sign in to comment.