Decompile fn_19755 (EquipmentResourceMgr::GetRobeResourceName)

Batch #2069 by eAthena: 0 byte-identical, 1 confirmed by peer review.

- fn_19755 EquipmentResourceMgr::GetRobeResourceName: logic confirmed by peer review

Peer-reviewed-by: ragnarok-clanker, Yommy
Reviewed-by: ragnarok-clanker
This commit is contained in:
ragnarok-clanker 2026-10-29 08:59:47 +00:00
commit b551c5a670
3 changed files with 54 additions and 0 deletions

View file

@ -1,12 +1,22 @@
#include "Contents/Actors/SpriteDrawingPolicy.h"
#include "Client/Session.h"
#include "Contents/Camera/Camera.h"
#include "Render/SpriteGeometry.h"
#include "Script/LuaScript.h"
constexpr float robeTopLayerThreshold = 320.0f;
// GLOBAL: gl_24739
float g_cameraDistance = 300.0f;
struct AccessoryLayerDepth {
const int& bottomAccessory;
const int& topAccessory;
const int& middleAccessory;
void OffsetLayerDepth(int layer, SpriteCellQuad& quad, float bottomDepth, float topDepth) const;
};
// OFFSET: 0x0080DAA0
// FUNCTION: fn_10103
void SpriteDrawingPolicy::OffsetLayerDepth(int layer, SpriteCellQuad& quad, float bottomDepth, float topDepth) const {
@ -39,3 +49,5 @@ void SpriteDrawingPolicy::OffsetLayerDepth(int layer, SpriteCellQuad& quad, floa
break;
}
}
// OFFSET: 0x0080E4D0