Skip to content

Commit

Permalink
Merge branch 'mehah:main' into browser
Browse files Browse the repository at this point in the history
  • Loading branch information
OTArchive authored Nov 21, 2024
2 parents 9ba596b + b6cb2d1 commit e2b5416
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 8 deletions.
Binary file added data/images/game/creatureicons/CreatureIcons.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added data/images/game/creatureicons/monsterIcons.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/client/protocolgame.h
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ class ProtocolGame : public Protocol
void parseItemClasses(const InputMessagePtr& msg);
void parseCreatureMark(const InputMessagePtr& msg);
void parseTrappers(const InputMessagePtr& msg);
void addCreatureIcon(const InputMessagePtr& msg);
void addCreatureIcon(const InputMessagePtr& msg) const;
void parseCloseForgeWindow(const InputMessagePtr& msg);
void parseCreatureData(const InputMessagePtr& msg);
void parseCreatureHealth(const InputMessagePtr& msg);
Expand Down
9 changes: 2 additions & 7 deletions src/client/protocolgameparse.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1835,7 +1835,7 @@ void ProtocolGame::parseTrappers(const InputMessagePtr& msg)
}
}

void ProtocolGame::addCreatureIcon(const InputMessagePtr& msg)
void ProtocolGame::addCreatureIcon(const InputMessagePtr& msg) const
{
const uint8_t sizeIcons = msg->getU8();
for (auto i = 0; i < sizeIcons; ++i) {
Expand Down Expand Up @@ -3368,12 +3368,7 @@ CreaturePtr ProtocolGame::getCreature(const InputMessagePtr& msg, int type) cons
const uint16_t speed = msg->getU16();

if (g_game.getClientVersion() >= 1281) {
const uint8_t iconDebuff = msg->getU8(); // creature debuffs
if (iconDebuff != 0) {
msg->getU8(); // Icon
msg->getU8(); // Update (?)
msg->getU16(); // Counter text
}
addCreatureIcon(msg);
}

const uint8_t skull = msg->getU8();
Expand Down

0 comments on commit e2b5416

Please sign in to comment.