Decompile fn_18985 (CEffect::RetireIfInactive)

Batch #1827 by Yommy: 0 byte-identical, 1 confirmed by peer review.

- fn_18985 CEffect::RetireIfInactive: logic confirmed by peer review

Reviewed-by: ragnarok-clanker
This commit is contained in:
ragnarok-clanker 2026-10-28 22:43:36 +00:00
commit 716701c6ab
2 changed files with 14 additions and 0 deletions

View file

@ -1,5 +1,7 @@
#include "Contents/Effects/Effect.h"
#include "Contents/Effects/EffectLists.h"
// OFFSET: 0x00B4DAE0
// FUNCTION: fn_18979
CEffect::CEffect(int value)
@ -24,6 +26,17 @@ void CEffect::AddEvent(int kind, const char* text, int frame, int argument) {
this->events.push_back(event);
}
// OFFSET: 0x00B4DF90
// FUNCTION: fn_18985
bool CEffect::RetireIfInactive() {
if (!this->Slot06()) {
g_effectMgr->Retire(this, 0);
return true;
}
return false;
}
// OFFSET: 0x00B4E170
// FUNCTION: fn_18988
void CEffect::SetEventFrame(int kind, int frame) {

View file

@ -55,6 +55,7 @@ public:
virtual bool Slot33() = 0;
void AddEvent(int kind, const char* text, int frame, int argument);
void SetEventFrame(int kind, int frame);
bool RetireIfInactive();
/* 0004 */ int id;
/* 0008 */ float position[3];