Decompile 3 functions in Source/Contents/Items/ItemDescription.cpp
Batch #11320 by cremane: 0 byte-identical, 3 confirmed by peer review. - fn_06546 EnsureItemCardName: logic confirmed by peer review - fn_06547 EnsureItemDescriptionLines: logic confirmed by peer review - fn_06576 ITEM_INFO::Description: logic confirmed by peer review Peer-reviewed-by: Yommy, dori, raiken 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
b800c9f13d
commit
1dbe3dc23f
1 changed files with 4 additions and 4 deletions
|
|
@ -62,7 +62,7 @@ ItemCardName& EnsureItemCardName(int id, std::map<int, ItemCardName>& values) {
|
|||
return entry->second;
|
||||
}
|
||||
|
||||
return values[id];
|
||||
return values.insert({id, ItemCardName()}).first->second;
|
||||
}
|
||||
|
||||
// OFFSET: 0x006D3C10
|
||||
|
|
@ -73,7 +73,7 @@ std::vector<const char*>& EnsureItemDescriptionLines(int id, std::map<int, std::
|
|||
return entry->second;
|
||||
}
|
||||
|
||||
return values[id];
|
||||
return values.insert({id, std::vector<const char*>()}).first->second;
|
||||
}
|
||||
|
||||
// OFFSET: 0x006D5890
|
||||
|
|
@ -99,8 +99,8 @@ void CSession::IconPath(char* output, const char* id, int identified) {
|
|||
// OFFSET: 0x006D5730
|
||||
// FUNCTION: fn_06576
|
||||
const std::vector<const char*>& ITEM_INFO::Description() const {
|
||||
const ITEM_DESC& value = FindItemDescription(std::atoi(this->itemId.c_str()), g_itemDescriptions);
|
||||
return this->identified == 1 ? value.identifiedDescription : value.unidentifiedDescription;
|
||||
return this->identified == 1 ? FindItemDescription(std::atoi(this->itemId.c_str()), g_itemDescriptions).identifiedDescription
|
||||
: FindItemDescription(std::atoi(this->itemId.c_str()), g_itemDescriptions).unidentifiedDescription;
|
||||
}
|
||||
|
||||
// OFFSET: 0x006D5810
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue