Decompile fn_04238 (CMCStoreInfoBackup::ExportData)
Batch #17495 by eAthena: 0 byte-identical, 1 confirmed by peer review. - fn_04238 CMCStoreInfoBackup::ExportData: logic confirmed by peer review Peer-reviewed-by: Yommy, cremane, bibinir Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes).
This commit is contained in:
parent
b75e65ced8
commit
809ffeb3d1
1 changed files with 4 additions and 7 deletions
|
|
@ -90,13 +90,10 @@ void CMCStoreInfoBackup::ExportData(Json::Value& data) const {
|
|||
value["Identified"] = item.identified != 0;
|
||||
value["RefiningLevel"] = item.refiningLevel;
|
||||
value["GradeLevel"] = item.grade;
|
||||
const char* slotKeys[] = {"Slot_1", "Slot_2", "Slot_3", "Slot_4"};
|
||||
|
||||
for (unsigned index = 0; index < 4; ++index) {
|
||||
std::int32_t slot;
|
||||
std::memcpy(&slot, item.cards + 4 * index, sizeof(slot));
|
||||
value[slotKeys[index]] = slot;
|
||||
}
|
||||
value["Slot_1"] = LoadField<std::int32_t>(item.cards + 0);
|
||||
value["Slot_2"] = LoadField<std::int32_t>(item.cards + 4);
|
||||
value["Slot_3"] = LoadField<std::int32_t>(item.cards + 8);
|
||||
value["Slot_4"] = LoadField<std::int32_t>(item.cards + 12);
|
||||
|
||||
const int count = item.optionCount;
|
||||
value["RandomOptionCount"] = count;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue