Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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