Decompile fn_06598 (IsBookItem)
Batch #3227 by ragnarok-clanker: 0 byte-identical, 1 confirmed by peer review. - fn_06598 IsBookItem: logic confirmed by peer review Peer-reviewed-by: eAthena, meitogi, superintelligence 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
bfb2c37381
commit
68913b02eb
2 changed files with 11 additions and 0 deletions
|
|
@ -37,11 +37,13 @@ struct ItemDescriptions {
|
|||
|
||||
extern std::map<int, ITEM_DESC> g_itemDescriptions;
|
||||
extern std::map<int, std::vector<const char*>> g_metalProcessItems;
|
||||
extern std::map<int, std::vector<const char*>> g_bookItemNames;
|
||||
|
||||
ITEM_DESC& FindItemDescription(int id);
|
||||
ItemCardName& EnsureItemCardName(int id, std::map<int, ItemCardName>& values);
|
||||
std::vector<const char*>& EnsureItemDescriptionLines(int id, std::map<int, std::vector<const char*>>& values);
|
||||
const std::vector<const char*>& FindMetalProcessItems(int id);
|
||||
bool IsBookItem(int id);
|
||||
|
||||
#if defined(_WIN32) && !defined(_WIN64)
|
||||
static_assert(sizeof(ITEM_DESC) == 68);
|
||||
|
|
|
|||
|
|
@ -18,6 +18,9 @@ std::map<int, std::vector<const char*>> g_metalProcessItems;
|
|||
// GLOBAL: gl_24675
|
||||
std::map<int, ItemCardName> g_itemCardNames;
|
||||
|
||||
// GLOBAL: gl_24727
|
||||
std::map<int, std::vector<const char*>> g_bookItemNames;
|
||||
|
||||
namespace {
|
||||
// OFFSET: 0x006D8810
|
||||
// FUNCTION: fn_06597
|
||||
|
|
@ -412,6 +415,12 @@ std::vector<unsigned char> ITEM_INFO::Serialize() const {
|
|||
return result;
|
||||
}
|
||||
|
||||
// OFFSET: 0x006D8850
|
||||
// FUNCTION: fn_06598
|
||||
bool IsBookItem(int id) {
|
||||
return g_bookItemNames.find(id) != g_bookItemNames.end();
|
||||
}
|
||||
|
||||
// OFFSET: 0x006D7660
|
||||
// FUNCTION: fn_06591
|
||||
const char* ItemResourcePath(const ITEM_INFO& item) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue