rodecomp/Source/Contents/Skills/SkillActionSpiritHandler.cpp
ragnarok-clanker 36b5b05081 Decompile 66 functions in Source/Contents/Skills/SkillActionSpiritHandler.cpp, Source/Contents/Skills/SkillActionTroubadour.cpp, ...
Batch #4574 by youko: 0 byte-identical, 66 confirmed by peer review.

- fn_08949 CEfstAction_SANDY_FESTIVAL::Slot00: logic confirmed by peer review
- fn_08951 CSkillAction_SH_KI_SUL_RAMPAGE::Slot11: logic confirmed by peer review
- fn_08953 CSkillAction_SH_COLORS_OF_HYUN_ROK::Slot11: logic confirmed by peer review
- fn_08957 CSkillObjectAction_SH_HYUN_ROKS_BREEZE::Slot00: logic confirmed by peer review
- fn_08961 CSkillAction_SH_TEMPORARY_COMMUNION::Slot11: logic confirmed by peer review
- fn_08962 CEfstAction_TEMPORARY_COMMUNION::Slot00: logic confirmed by peer review
- fn_08963 CEfstAction_TEMPORARY_COMMUNION::Slot01: logic confirmed by peer review
- fn_08964 CEfstAction_TEMPORARY_COMMUNION::Slot02: logic confirmed by peer review
- fn_08967 CSkillAction_SH_BLESSING_OF_MYSTICAL_CREATURES::Slot11: logic confirmed by peer review
- fn_08969 CSkillAction_SH_CHUL_HO_BATTERING::Slot08: logic confirmed by peer review
- fn_08970 CSkillAction_SH_CHUL_HO_BATTERING::Slot11: logic confirmed by peer review
- fn_08971 CSkillAction_SH_CHUL_HO_BATTERING::Slot16: logic confirmed by peer review
- fn_08972 CSkillAction_SH_HYUN_ROK_SPIRIT_POWER::Slot08: logic confirmed by peer review
- fn_08973 CSkillAction_SH_HYUN_ROK_SPIRIT_POWER::Slot11: logic confirmed by peer review
- fn_08974 CSkillAction_SH_HYUN_ROK_SPIRIT_POWER::Slot16: logic confirmed by peer review
- fn_08975 CSkillAction_TR_ROSEBLOSSOM::Slot15: logic confirmed by peer review
- fn_08976 CSkillAction_TR_ROSEBLOSSOM::Slot16: logic confirmed by peer review
- fn_08977 CSkillAction_TR_ROSEBLOSSOM_ATK::Slot16: logic confirmed by peer review
- fn_08978 CSkillAction_TR_KVASIR_SONATA::Slot08: logic confirmed by peer review
- fn_08979 CSkillAction_TR_KVASIR_SONATA::Slot11: logic confirmed by peer review
- fn_08980 CEfstAction_KVASIR_SONATA::Slot03: logic confirmed by peer review
- fn_08981 CEfstAction_KVASIR_SONATA::Slot04: logic confirmed by peer review
- fn_08982 CSkillAction_TR_PRON_MARCH::Slot08: logic confirmed by peer review
- fn_08983 CSkillAction_TR_PRON_MARCH::Slot11: logic confirmed by peer review
- fn_08984 CEfstAction_PRON_MARCH::Slot00: logic confirmed by peer review
- fn_08985 CEfstAction_PRON_MARCH::Slot03: logic confirmed by peer review
- fn_08986 CEfstAction_PRON_MARCH::Slot04: logic confirmed by peer review
- fn_08987 CSkillAction_TR_JAWAII_SERENADE::Slot08: logic confirmed by peer review
- fn_08988 CSkillAction_TR_JAWAII_SERENADE::Slot11: logic confirmed by peer review
- fn_08989 CEfstAction_JAWAII_SERENADE::Slot00: logic confirmed by peer review
- fn_08990 CEfstAction_JAWAII_SERENADE::Slot03: logic confirmed by peer review
- fn_08991 CEfstAction_JAWAII_SERENADE::Slot04: logic confirmed by peer review
- fn_08992 CSkillAction_TR_AIN_RHAPSODY::Slot08: logic confirmed by peer review
- fn_08993 CSkillAction_TR_AIN_RHAPSODY::Slot11: logic confirmed by peer review
- fn_08994 CEfstAction_AIN_RHAPSODY::Slot00: logic confirmed by peer review
- fn_08995 CEfstAction_AIN_RHAPSODY::Slot03: logic confirmed by peer review
- fn_08996 CEfstAction_AIN_RHAPSODY::Slot04: logic confirmed by peer review
- fn_08997 CSkillAction_TR_GEF_NOCTURN::Slot08: logic confirmed by peer review
- fn_08998 CSkillAction_TR_GEF_NOCTURN::Slot11: logic confirmed by peer review
- fn_08999 CEfstAction_GEF_NOCTURN::Slot00: logic confirmed by peer review
- fn_09000 CEfstAction_GEF_NOCTURN::Slot03: logic confirmed by peer review
- fn_09001 CEfstAction_GEF_NOCTURN::Slot04: logic confirmed by peer review
- fn_09002 CSkillAction_TR_RHYTHMICAL_WAVE::Slot08: logic confirmed by peer review
- fn_09003 CSkillAction_TR_RHYTHMICAL_WAVE::Slot11: logic confirmed by peer review
- fn_09004 CSkillAction_TR_RHYTHMICAL_WAVE::Slot16: logic confirmed by peer review
- fn_09006 CSkillAction_TR_METALIC_FURY::Slot11: logic confirmed by peer review
- fn_09007 CSkillAction_TR_MYSTIC_SYMPHONY::Slot08: logic confirmed by peer review
- fn_09008 CSkillAction_TR_MYSTIC_SYMPHONY::Slot11: logic confirmed by peer review
- fn_09009 CEfstAction_MYSTIC_SYMPHONY::Slot00: logic confirmed by peer review
- fn_09010 CEfstAction_MYSTIC_SYMPHONY::Slot01: logic confirmed by peer review
- fn_09011 CEfstAction_MYSTIC_SYMPHONY::Slot02: logic confirmed by peer review
- fn_09012 CEfstAction_MYSTIC_SYMPHONY::Slot03: logic confirmed by peer review
- fn_09013 CEfstAction_MYSTIC_SYMPHONY::Slot04: logic confirmed by peer review
- fn_09015 CSkillAction_TR_RHYTHMSHOOTING::Slot08: logic confirmed by peer review
- fn_09018 CSkillAction_TR_ROKI_CAPRICCIO::Slot08: logic confirmed by peer review
- fn_09019 CSkillAction_TR_ROKI_CAPRICCIO::Slot11: logic confirmed by peer review
- fn_09020 CSkillAction_TR_ROSEBLOSSOM::Slot08: logic confirmed by peer review
- fn_09023 CSkillAction_WH_GALESTORM::Slot08: logic confirmed by peer review
- fn_09024 CSkillAction_WH_GALESTORM::Slot11: logic confirmed by peer review
- fn_09025 CSkillAction_WH_GALESTORM::Slot16: logic confirmed by peer review
- fn_09026 CSkillAction_WH_CALAMITYGALE::Slot08: logic confirmed by peer review
- fn_09027 CSkillAction_WH_CALAMITYGALE::Slot11: logic confirmed by peer review
- fn_09028 CEfstAction_CALAMITYGALE::Slot00: logic confirmed by peer review
- fn_09029 CEfstAction_CALAMITYGALE::Slot01: logic confirmed by peer review
- fn_09030 CEfstAction_CALAMITYGALE::Slot02: logic confirmed by peer review
- fn_09031 CEfstAction_CALAMITYGALE::Slot03: logic confirmed by peer review

Peer-reviewed-by: eAthena, meitogi, willerthal, Yommy
Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes).
2026-10-30 03:51:45 +00:00

434 lines
16 KiB
C++

#include "Client/Mode/CGameMode.h"
#include "Client/Mode/ModeMgr.h"
#include "Contents/Actors/GameActor.h"
#include "Contents/Camera/Camera.h"
#include "Contents/EffectResourceSwitcher.h"
#include "Contents/Effects/EZ2STREffectEx.h"
#include "Contents/Effects/Effect.h"
#include "Contents/Effects/EffectActor.h"
#include "Contents/Effects/EffectLists.h"
#include "Contents/Skills/SkillInfo.h"
#include "Utility/Text/FormatString.h"
#include <cstddef>
#include <cstdint>
#include <string>
class CSkillAction_SH_CHUL_HO_SONIC_CLAW : public CSkillAction {
public:
int Slot02() override;
void Slot11(int level, CGameActor* source, CGameActor* target) override;
};
class CSkillAction_SH_HOWLING_OF_CHUL_HO : public CSkillAction {
public:
int Slot02() override;
void Slot08(int level, CGameActor* source) override;
void Slot11(int level, CGameActor* source, CGameActor* target) override;
};
class CEfstAction_HOGOGONG : public CEfstAction {
public:
void Slot00(int efstId, int value, int argument3, int argument4, CRenderObject* actor, bool argument6) override;
void Slot01(int efstId, int argument2, int argument3, int argument4, CRenderObject* actor) override;
void Slot02(int efstId, int value, int argument3, int argument4, CRenderObject* actor) override;
};
class CSkillAction_SH_HOGOGONG_STRIKE : public CSkillAction {
public:
int Slot02() override;
};
class CEfstAction_SANDY_FESTIVAL : public CEfstAction {
public:
void Slot00(int efstId, int value, int argument3, int argument4, CRenderObject* actor, bool argument6) override;
};
class CSkillAction_SH_KI_SUL_RAMPAGE : public CSkillAction {
public:
void Slot08(int level, CGameActor* source) override;
void Slot11(int level, CGameActor* source, CGameActor* target) override;
};
class CSkillAction_SH_COLORS_OF_HYUN_ROK : public CSkillAction {
public:
void Slot08(int level, CGameActor* source) override;
void Slot11(int level, CGameActor* source, CGameActor* target) override;
};
class CSkillAction_SH_HYUN_ROKS_BREEZE : public CSkillAction {
public:
bool Slot03(int argument) override;
void Slot08(int level, CGameActor* source) override;
int Slot14() override;
};
class CSkillAction_SH_HYUN_ROK_CANNON : public CSkillAction {
public:
void Slot08(int level, CGameActor* source) override;
};
class CSkillObjectAction_SH_HYUN_ROKS_BREEZE : public CSkillObjectAction {
public:
void Slot00(int argument, CRenderObject* object, CGameActor* source) override;
};
class CSkillAction_SH_TEMPORARY_COMMUNION : public CSkillAction {
public:
void Slot08(int level, CGameActor* source) override;
void Slot11(int level, CGameActor* source, CGameActor* target) override;
};
class CEfstAction_TEMPORARY_COMMUNION : public CEfstAction {
public:
void Slot00(int efstId, int value, int argument3, int argument4, CRenderObject* actor, bool argument6) override;
void Slot01(int efstId, int argument2, int argument3, int argument4, CRenderObject* actor) override;
void Slot02(int efstId, int value, int argument3, int argument4, CRenderObject* actor) override;
};
class CSkillAction_SH_BLESSING_OF_MYSTICAL_CREATURES : public CSkillAction {
public:
bool Slot00() override;
void Slot08(int level, CGameActor* source) override;
void Slot11(int level, CGameActor* source, CGameActor* target) override;
};
class CSkillAction_SH_CHUL_HO_BATTERING : public CSkillAction {
public:
int Slot02() override;
void Slot08(int level, CGameActor* source) override;
void Slot11(int level, CGameActor* source, CGameActor* target) override;
void Slot16(int level, CGameActor* source, CGameActor* target) override;
};
class CSkillAction_SH_HYUN_ROK_SPIRIT_POWER : public CSkillAction {
public:
void Slot08(int level, CGameActor* source) override;
void Slot11(int level, CGameActor* source, CGameActor* target) override;
void Slot16(int level, CGameActor* source, CGameActor* target) override;
};
// OFFSET: 0x0079EB70
// FUNCTION: fn_08931
int CSkillAction_SH_CHUL_HO_SONIC_CLAW::Slot02() {
return 54;
}
// OFFSET: 0x0079EB80
// FUNCTION: fn_08932
void CSkillAction_SH_CHUL_HO_SONIC_CLAW::Slot11(int level, CGameActor* source, CGameActor* target) {
if (!source) {
return;
}
g_effectMgr->Spawn(source->render.accountId, CEZ2STREffectMgr::GetInstance()->EffectId("chul_ho_sonic_claw"), 0.0f, 0.0f, 0.0f, 0, -1, 0, 0);
if (!target) {
return;
}
const float angle = ScreenAngle(&source->render.position.x, &target->render.position.x, static_cast<CGameMode*>(g_modeMgr.GetGameMode())->camera->frame.view.values);
const int waves[12] = {12, 1, 1, 3, 5, 5, 6, 7, 7, 9, 11, 11};
const int index = static_cast<int>(angle + 105.0f) % 360 / 30;
if (index >= 0 && static_cast<std::size_t>(index) < sizeof(waves) / sizeof(waves[0])) {
g_effectMgr->Spawn(source->render.accountId, CEZ2STREffectMgr::GetInstance()->EffectId(FormatOwnedString("chul_ho_sonic_claw_wave_%d", waves[index])), 0.0f, 0.0f,
0.0f, 0, -1, 0, 0);
}
}
// OFFSET: 0x0079EE10
// FUNCTION: fn_08933
int CSkillAction_SH_HOWLING_OF_CHUL_HO::Slot02() {
return 54;
}
// OFFSET: 0x0079EE20
// FUNCTION: fn_08934
void CSkillAction_SH_HOWLING_OF_CHUL_HO::Slot08(int level, CGameActor* source) {
if (source) {
static_cast<EffectActor*>(source)->LaunchEffect(840, level / 16);
}
}
// OFFSET: 0x0079EE50
// FUNCTION: fn_08935
void CSkillAction_SH_HOWLING_OF_CHUL_HO::Slot11(int level, CGameActor* source, CGameActor* target) {
if (source) {
g_effectMgr->Spawn(source->render.accountId, CEZ2STREffectMgr::GetInstance()->EffectId("howling_of_chul_ho"), 0.0f, 0.0f, 0.0f, 0, -1, 0, 0);
}
}
// OFFSET: 0x0079EFD0
// FUNCTION: fn_08936
void CEfstAction_HOGOGONG::Slot00(int efstId, int value, int argument3, int argument4, CRenderObject* actor, bool argument6) {
if (actor) {
g_effectMgr->Spawn(actor->render.accountId, CEZ2STREffectMgr::GetInstance()->EffectId("howling_of_chul_ho_scared"), 0.0f, 0.0f, 0.0f, 0, -1, 0, 0);
}
}
// OFFSET: 0x0079F150
// FUNCTION: fn_08937
void CEfstAction_HOGOGONG::Slot01(int efstId, int argument2, int argument3, int argument4, CRenderObject* actor) {
if (actor) {
g_effectMgr->Retire(actor->render.accountId, CEZ2STREffectMgr::GetInstance()->EffectId("howling_of_chul_ho_scared"));
}
}
// OFFSET: 0x0079F290
// FUNCTION: fn_08938
void CEfstAction_HOGOGONG::Slot02(int efstId, int value, int argument3, int argument4, CRenderObject* actor) {
this->Slot00(efstId, value, 0, 0, actor, false);
}
// OFFSET: 0x0079F2B0
// FUNCTION: fn_08939
int CSkillAction_SH_HOGOGONG_STRIKE::Slot02() {
return 54;
}
// OFFSET: 0x0079FB10
// FUNCTION: fn_08949
void CEfstAction_SANDY_FESTIVAL::Slot00(int efstId, int value, int argument3, int argument4, CRenderObject* actor, bool argument6) {
if (actor) {
g_effectMgr->Spawn(actor->render.accountId, CEZ2STREffectMgr::GetInstance()->EffectId("sandy_festival_of_ki_sul"), 0.0f, 0.0f, 0.0f, 0, -1, 0, 0);
}
}
// OFFSET: 0x0079FC90
// FUNCTION: fn_08950
void CSkillAction_SH_KI_SUL_RAMPAGE::Slot08(int level, CGameActor* source) {
if (source) {
static_cast<EffectActor*>(source)->LaunchEffect(831, level / 16);
}
}
// OFFSET: 0x0079FCC0
// FUNCTION: fn_08951
void CSkillAction_SH_KI_SUL_RAMPAGE::Slot11(int level, CGameActor* source, CGameActor* target) {
if (source) {
g_effectMgr->Spawn(source->render.accountId, CEZ2STREffectMgr::GetInstance()->EffectId("ki_sul_rampage_bottom"), 0.0f, 0.0f, 0.0f, 0, -1, 0, 0);
g_effectMgr->Spawn(source->render.accountId, CEZ2STREffectMgr::GetInstance()->EffectId("ki_sul_rampage"), 0.0f, 0.0f, 0.0f, 0, -1, 0, 0);
}
}
// OFFSET: 0x0079FF40
// FUNCTION: fn_08952
void CSkillAction_SH_COLORS_OF_HYUN_ROK::Slot08(int level, CGameActor* source) {
if (source) {
static_cast<EffectActor*>(source)->LaunchEffect(58, level / 16);
}
}
// OFFSET: 0x0079FF70
// FUNCTION: fn_08953
void CSkillAction_SH_COLORS_OF_HYUN_ROK::Slot11(int level, CGameActor* source, CGameActor* target) {
if (!source) {
return;
}
switch (level) {
case 1:
g_effectMgr->Spawn(source->render.accountId, CEZ2STREffectMgr::GetInstance()->EffectId("colors_of_hyun_rok_water"), 0.0f, 0.0f, 0.0f, 0, -1, 0, 0);
break;
case 2:
g_effectMgr->Spawn(source->render.accountId, CEZ2STREffectMgr::GetInstance()->EffectId("colors_of_hyun_rok_wind"), 0.0f, 0.0f, 0.0f, 0, -1, 0, 0);
break;
case 3:
g_effectMgr->Spawn(source->render.accountId, CEZ2STREffectMgr::GetInstance()->EffectId("colors_of_hyun_rok_earth"), 0.0f, 0.0f, 0.0f, 0, -1, 0, 0);
break;
case 4:
g_effectMgr->Spawn(source->render.accountId, CEZ2STREffectMgr::GetInstance()->EffectId("colors_of_hyun_rok_fire"), 0.0f, 0.0f, 0.0f, 0, -1, 0, 0);
break;
case 5:
g_effectMgr->Spawn(source->render.accountId, CEZ2STREffectMgr::GetInstance()->EffectId("colors_of_hyun_rok_darkness"), 0.0f, 0.0f, 0.0f, 0, -1, 0, 0);
break;
case 6:
g_effectMgr->Spawn(source->render.accountId, CEZ2STREffectMgr::GetInstance()->EffectId("colors_of_hyun_rok_saint"), 0.0f, 0.0f, 0.0f, 0, -1, 0, 0);
break;
case 7:
g_effectMgr->Spawn(source->render.accountId, CEZ2STREffectMgr::GetInstance()->EffectId("colors_of_hyun_rok_reset"), 0.0f, 0.0f, 0.0f, 0, -1, 0, 0);
break;
}
}
// OFFSET: 0x007A04A0
// FUNCTION: fn_08954
bool CSkillAction_SH_HYUN_ROKS_BREEZE::Slot03(int argument) {
return true;
}
// OFFSET: 0x007A04B0
// FUNCTION: fn_08955
void CSkillAction_SH_HYUN_ROKS_BREEZE::Slot08(int level, CGameActor* source) {
if (source) {
static_cast<EffectActor*>(source)->LaunchEffect(841, level / 16);
}
}
// OFFSET: 0x007A04E0
// FUNCTION: fn_08956
int CSkillAction_SH_HYUN_ROKS_BREEZE::Slot14() {
return 9;
}
// OFFSET: 0x007A04F0
// FUNCTION: fn_08957
void CSkillObjectAction_SH_HYUN_ROKS_BREEZE::Slot00(int argument, CRenderObject* object, CGameActor* source) {
if (object) {
g_effectMgr->Spawn(object->render.accountId, CEZ2STREffectMgr::GetInstance()->EffectId("hyun_roks_breeze_bottom"), 0.0f, 0.0f, 0.0f, 0, -1, 0, 0);
g_effectMgr->Spawn(object->render.accountId, CEZ2STREffectMgr::GetInstance()->EffectId("hyun_roks_breeze"), 0.0f, 0.0f, 0.0f, 0, -1, 0, 0);
}
}
// OFFSET: 0x007A0770
// FUNCTION: fn_08958
void CSkillAction_SH_HYUN_ROK_CANNON::Slot08(int level, CGameActor* source) {
if (source) {
static_cast<EffectActor*>(source)->LaunchEffect(841, level / 16);
}
}
// OFFSET: 0x007A0950
// FUNCTION: fn_08960
void CSkillAction_SH_TEMPORARY_COMMUNION::Slot08(int level, CGameActor* source) {
if (source) {
static_cast<EffectActor*>(source)->LaunchEffect(2367, level / 16);
}
}
// OFFSET: 0x007A0980
// FUNCTION: fn_08961
void CSkillAction_SH_TEMPORARY_COMMUNION::Slot11(int level, CGameActor* source, CGameActor* target) {
if (source) {
g_effectMgr->Spawn(source->render.accountId, CEZ2STREffectMgr::GetInstance()->EffectId("temporary_communion"), 0.0f, 0.0f, 0.0f, 0, -1, 0, 0);
}
}
// OFFSET: 0x007A0B00
// FUNCTION: fn_08962
void CEfstAction_TEMPORARY_COMMUNION::Slot00(int efstId, int value, int argument3, int argument4, CRenderObject* actor, bool argument6) {
if (actor) {
g_effectMgr->Spawn(actor->render.accountId, CEZ2STREffectMgr::GetInstance()->EffectId("temporary_communion_buff_bottom"), 0.0f, 0.0f, 0.0f, 0, -1, 0, 0);
g_effectMgr->Spawn(actor->render.accountId, CEZ2STREffectMgr::GetInstance()->EffectId("temporary_communion_buff"), 0.0f, 0.0f, 0.0f, 0, -1, 0, 0);
}
}
// OFFSET: 0x007A0DA0
// FUNCTION: fn_08963
void CEfstAction_TEMPORARY_COMMUNION::Slot01(int efstId, int argument2, int argument3, int argument4, CRenderObject* actor) {
if (actor) {
g_effectMgr->Retire(actor->render.accountId, CEZ2STREffectMgr::GetInstance()->EffectId("temporary_communion_buff_bottom"));
g_effectMgr->Retire(actor->render.accountId, CEZ2STREffectMgr::GetInstance()->EffectId("temporary_communion_buff"));
}
}
// OFFSET: 0x007A0FD0
// FUNCTION: fn_08964
void CEfstAction_TEMPORARY_COMMUNION::Slot02(int efstId, int value, int argument3, int argument4, CRenderObject* actor) {
this->Slot00(efstId, value, 0, 0, actor, false);
}
// OFFSET: 0x007A0FF0
// FUNCTION: fn_08965
bool CSkillAction_SH_BLESSING_OF_MYSTICAL_CREATURES::Slot00() {
return true;
}
// OFFSET: 0x007A1000
// FUNCTION: fn_08966
void CSkillAction_SH_BLESSING_OF_MYSTICAL_CREATURES::Slot08(int level, CGameActor* source) {
if (source) {
static_cast<EffectActor*>(source)->LaunchEffect(2367, level / 16);
}
}
// OFFSET: 0x007A1030
// FUNCTION: fn_08967
void CSkillAction_SH_BLESSING_OF_MYSTICAL_CREATURES::Slot11(int level, CGameActor* source, CGameActor* target) {
if (target) {
g_effectMgr->Spawn(target->render.accountId, CEZ2STREffectMgr::GetInstance()->EffectId("blessing_of_mystical_creatures"), 0.0f, 0.0f, 0.0f, 0, -1, 0, 0);
}
}
// OFFSET: 0x007A11C0
// FUNCTION: fn_08968
int CSkillAction_SH_CHUL_HO_BATTERING::Slot02() {
return 54;
}
// OFFSET: 0x007A11D0
// FUNCTION: fn_08969
void CSkillAction_SH_CHUL_HO_BATTERING::Slot08(int level, CGameActor* source) {
if (source) {
if (CEffect* effect = g_effectMgr->Spawn(
source->render.accountId, CEZ2STREffectMgr::GetInstance()->EffectId("chul_ho_battering_cast"), 0.0f, 0.0f, 0.0f, 0, -1, 0, 0
)) {
effect->Slot14(level);
}
}
}
// OFFSET: 0x007A1360
// FUNCTION: fn_08970
void CSkillAction_SH_CHUL_HO_BATTERING::Slot11(int level, CGameActor* source, CGameActor* target) {
if (!target || !source) {
return;
}
const float scale = source->unknown_0378 * source->render.speed * 16.0f;
if (CEffect* effect = g_effectMgr->Spawn(
target->render.accountId, CEZ2STREffectMgr::GetInstance()->EffectId("chul_ho_battering"), 0.0f, 0.0f, 0.0f, 0, -1, 0, 0
)) {
effect->Slot16(static_cast<int>(scale));
}
if (CEffect* effect = g_effectMgr->Spawn(
target->render.accountId, CEZ2STREffectMgr::GetInstance()->EffectId("chul_ho_battering_bottom"), 0.0f, 0.0f, 0.0f, 0, -1, 0, 0
)) {
effect->Slot16(static_cast<int>(scale));
}
}
// OFFSET: 0x007A1630
// FUNCTION: fn_08971
void CSkillAction_SH_CHUL_HO_BATTERING::Slot16(int level, CGameActor* source, CGameActor* target) {
if (source) {
if (CEffect* effect = g_effectMgr->Spawn(
source->render.accountId, CEZ2STREffectMgr::GetInstance()->EffectId("chul_ho_battering_hit"), 0.0f, 0.0f, 0.0f, 0, -1, 0, 0
)) {
effect->Slot26(static_cast<bool>(reinterpret_cast<std::uintptr_t>(target) & 1));
}
}
}
// OFFSET: 0x007A17D0
// FUNCTION: fn_08972
void CSkillAction_SH_HYUN_ROK_SPIRIT_POWER::Slot08(int level, CGameActor* source) {
if (source) {
if (CEffect* effect = g_effectMgr->Spawn(
source->render.accountId, CEZ2STREffectMgr::GetInstance()->EffectId("hyun_rok_spirit_power_cast"), 0.0f, 0.0f, 0.0f, 0, -1, 0, 0
)) {
effect->Slot14(level);
}
if (CEffect* effect = g_effectMgr->Spawn(
source->render.accountId, CEZ2STREffectMgr::GetInstance()->EffectId("hyun_rok_spirit_power_cast_bottom"), 0.0f, 0.0f, 0.0f, 0, -1, 0, 0
)) {
effect->Slot14(level);
}
}
}
// OFFSET: 0x007A1A80
// FUNCTION: fn_08973
void CSkillAction_SH_HYUN_ROK_SPIRIT_POWER::Slot11(int level, CGameActor* source, CGameActor* target) {
if (target) {
g_effectMgr->Spawn(target->render.accountId, CEZ2STREffectMgr::GetInstance()->EffectId("hyun_rok_spirit_power"), 0.0f, 0.0f, 0.0f, 0, -1, 0, 0);
g_effectMgr->Spawn(target->render.accountId, CEZ2STREffectMgr::GetInstance()->EffectId("hyun_rok_spirit_power_bottom"), 0.0f, 0.0f, 0.0f, 0, -1, 0, 0);
}
}
// OFFSET: 0x007A1D10
// FUNCTION: fn_08974
void CSkillAction_SH_HYUN_ROK_SPIRIT_POWER::Slot16(int level, CGameActor* source, CGameActor* target) {
if (source) {
g_effectMgr->Spawn(source->render.accountId, CEZ2STREffectMgr::GetInstance()->EffectId("hyun_rok_spirit_power_hit"), 0.0f, 0.0f, 0.0f, 0, -1, 0, 0);
}
}