From 6ffc82d2d0267649929ef2e4d263ff774bbd4bb6 Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Wed, 28 Oct 2026 19:10:23 +0000 Subject: [PATCH] Decompile fn_24251 (CEffectMaker::CEffectMaker) Batch #1563 by eAthena: 0 byte-identical, 1 confirmed by peer review. - fn_24251 CEffectMaker::CEffectMaker: logic confirmed by peer review Reviewed-by: ragnarok-clanker Adds to the build: Source/Contents/Effects/EffectMaker.cpp --- Source/Contents/Effects/EffectMaker.cpp | 13 +++++++++++++ Source/Contents/Effects/EffectMaker.h | 25 +++++++++++++++++++++++++ data/compile.json | 1 + 3 files changed, 39 insertions(+) create mode 100644 Source/Contents/Effects/EffectMaker.cpp create mode 100644 Source/Contents/Effects/EffectMaker.h diff --git a/Source/Contents/Effects/EffectMaker.cpp b/Source/Contents/Effects/EffectMaker.cpp new file mode 100644 index 0000000..c5d30a6 --- /dev/null +++ b/Source/Contents/Effects/EffectMaker.cpp @@ -0,0 +1,13 @@ +#include "Contents/Effects/EffectMaker.h" + +// OFFSET: 0x00E4A2B0 +// FUNCTION: fn_24251 +CEffectMaker::CEffectMaker(ResourceMgr& resources, JobNames& names) : EffectActor(resources, names) { + this->unknown_0160 = -1; + this->unknown_015C = 360; + this->unknown_0158 = 360; + this->unknown_0164 = 0; + this->unknown_0168 = 0; + this->unknown_016C = 0; + this->unknown_0170 = 0; +} diff --git a/Source/Contents/Effects/EffectMaker.h b/Source/Contents/Effects/EffectMaker.h new file mode 100644 index 0000000..b300c46 --- /dev/null +++ b/Source/Contents/Effects/EffectMaker.h @@ -0,0 +1,25 @@ +#ifndef RAGNAROK_SOURCE_CONTENTS_EFFECTS_EFFECTMAKER_H +#define RAGNAROK_SOURCE_CONTENTS_EFFECTS_EFFECTMAKER_H + +#include "Contents/Effects/EffectActor.h" + +#include + +struct CEffectMaker : EffectActor { + CEffectMaker(ResourceMgr& resources, JobNames& names); + + /* 0158 */ int unknown_0158; + /* 015C */ int unknown_015C; + /* 0160 */ int unknown_0160; + /* 0164 */ int unknown_0164; + /* 0168 */ int unknown_0168; + /* 016C */ int unknown_016C; + /* 0170 */ int unknown_0170; +}; + +#if defined(_WIN32) && !defined(_WIN64) +static_assert(offsetof(CEffectMaker, unknown_0158) == 0x158); +static_assert(offsetof(CEffectMaker, unknown_0170) == 0x170); +#endif + +#endif diff --git a/data/compile.json b/data/compile.json index d506cba..a1eed00 100644 --- a/data/compile.json +++ b/data/compile.json @@ -295,6 +295,7 @@ "Source/Contents/Effects/EffectActor.cpp": 4, "Source/Contents/Effects/EffectAttachments.cpp": 4, "Source/Contents/Effects/EffectLists.cpp": 0, + "Source/Contents/Effects/EffectMaker.cpp": 4, "Source/Contents/Effects/EffectParticle.cpp": 4, "Source/Contents/Effects/EffectPrimitiveColor.cpp": 4, "Source/Contents/Effects/EffectPrimitiveMotion.cpp": 4,