1
0

Fixed calculating bonuses for items when equipping and unequipping

This commit is contained in:
Emagi 2025-05-25 14:02:46 -04:00
parent 14eca6fb5b
commit 4f04033e97
2 changed files with 5 additions and 0 deletions

View File

@ -7155,6 +7155,8 @@ void Commands::Command_Inventory(Client* client, Seperator* sep, EQ2_RemoteComma
client->GetPlayer()->UpdateWeapons();
EQ2Packet* characterSheetPackets = client->GetPlayer()->GetPlayerInfo()->serialize(client->GetVersion());
client->QueuePacket(characterSheetPackets);
client->GetPlayer()->CalculateBonuses();
}
else if (sep->arg[1][0] && strncasecmp("unpack", sep->arg[0], 6) == 0 && sep->IsNumber(1))
{
@ -11757,6 +11759,8 @@ void Commands::Command_Attune_Inv(Client* client, Seperator* sep) {
if(outapp)
client->QueuePacket(outapp);
}
client->GetPlayer()->CalculateBonuses();
}
}

View File

@ -8066,6 +8066,7 @@ void Client::UnequipItem(int16 index, sint32 bag_id, int8 to_slot, int8 appearan
}
GetPlayer()->UpdateWeapons();
GetPlayer()->CalculateBonuses();
EQ2Packet* characterSheetPackets = GetPlayer()->GetPlayerInfo()->serialize(GetVersion());
QueuePacket(characterSheetPackets);
}