Batch #10213 by ragnarok-clanker: forced by an admin (38 lower score(s), 147 changed function(s)); checked with 352 compiled unit(s), including every includer of Source/Client/Mode/ModeDragState.h, Source/Client/Session.h, Source/Contents/Items/ItemDescription.h, Source/Contents/Items/ItemInfo.h, Source/Contents/Items/ItemLink.h, Source/Contents/Items/ItemResources.h, Source/UI/Shop/ItemDrawing.h, Source/UI/Shortcuts/ShortcutPainting.h, Source/UI/Shortcuts/ShortcutPress.h, Source/UI/Shortcuts/UIQuickSlotWnd.h, Source/UI/Text/TextWrapping.h, Source/UI/Text/UIBalloonText.h, Source/UI/UIStaticItem.h.
33 lines
924 B
C++
33 lines
924 B
C++
#include "Client/Session.h"
|
|
#include "Contents/Items/ItemDescription.h"
|
|
#include "Contents/Items/ItemResources.h"
|
|
#include "Resource/ResourceMgr.h"
|
|
|
|
#include <cstdlib>
|
|
#include <string>
|
|
|
|
// OFFSET: 0x00DDDA20
|
|
// FUNCTION: fn_23391
|
|
const char* CSession::ItemDragResource(const char* id, int identified) {
|
|
static std::string resource;
|
|
resource = "아이템\\";
|
|
const ITEM_DESC& value = FindItemDescription(std::atoi(id));
|
|
const char* name = identified != 0 ? value.identifiedResource : value.unidentifiedResource;
|
|
resource += name ? name : "사과";
|
|
|
|
return resource.c_str();
|
|
}
|
|
|
|
// OFFSET: 0x00DDDCD0
|
|
// FUNCTION: fn_23392
|
|
const char* SkillDragResource(ResourceMgr& resources, const char* name) {
|
|
static std::string resource;
|
|
resource = "아이템\\";
|
|
resource += name;
|
|
|
|
if (!resources.Exists((resource + ".act").c_str())) {
|
|
resource = "아이템\\am_berserkpitcher";
|
|
}
|
|
|
|
return resource.c_str();
|
|
}
|