mirror of
https://github.com/EQEmu/Server.git
synced 2026-08-28 07:37:56 +00:00
Correct charm scaling for RoF
Other clients should actually work the same as well
This commit is contained in:
@@ -4817,7 +4817,7 @@ namespace RoF
|
||||
|
||||
std::stringstream ss(std::stringstream::in | std::stringstream::out | std::stringstream::binary);
|
||||
|
||||
const Item_Struct *item = inst->GetItem();
|
||||
const Item_Struct *item = inst->GetUnscaledItem();
|
||||
//_log(NET__ERROR, "Serialize called for: %s", item->Name);
|
||||
|
||||
RoF::structs::ItemSerializationHeader hdr;
|
||||
@@ -4839,7 +4839,7 @@ namespace RoF
|
||||
hdr.price = inst->GetPrice();
|
||||
hdr.merchant_slot = (merchant_slot == 0) ? 1 : inst->GetMerchantCount();
|
||||
//hdr.merchant_slot = (merchant_slot == 0) ? 1 : 0xffffffff;
|
||||
hdr.unknown020 = 0;
|
||||
hdr.scaled_value = inst->IsScaling() ? inst->GetExp() / 100 : 0;
|
||||
hdr.instance_id = (merchant_slot == 0) ? inst->GetSerialNumber() : merchant_slot;
|
||||
hdr.unknown028 = 0;
|
||||
hdr.last_cast_time = ((item->RecastDelay > 1) ? 1212693140 : 0);
|
||||
@@ -5009,6 +5009,7 @@ namespace RoF
|
||||
ibs.SpellShield = item->SpellShield;
|
||||
ibs.Avoidance = item->Avoidance;
|
||||
ibs.Accuracy = item->Accuracy;
|
||||
ibs.CharmFileID = item->CharmFileID;
|
||||
ibs.FactionAmt1 = item->FactionAmt1;
|
||||
ibs.FactionMod1 = item->FactionMod1;
|
||||
ibs.FactionAmt2 = item->FactionAmt2;
|
||||
|
||||
Reference in New Issue
Block a user