Batch #4395 by youko: 15 byte-identical, 65 confirmed by peer review. - fn_08860 CSkillAction_SKE_DAWN_BREAK::Slot08: logic confirmed by peer review - fn_08861 CSkillAction_SKE_DAWN_BREAK::Slot11: logic confirmed by peer review - fn_08862 CSkillAction_SKE_TWINKLING_GALAXY::Slot03: byte-identical - fn_08863 CSkillAction_SKE_TWINKLING_GALAXY::Slot05: byte-identical - fn_08864 CSkillAction_SKE_TWINKLING_GALAXY::Slot08: logic confirmed by peer review - fn_08865 CSkillObjectAction_SKE_TWINKLING_GALAXY::Slot00: logic confirmed by peer review - fn_08866 CSkillAction_SKE_STAR_BURST::Slot03: byte-identical - fn_08867 CSkillAction_SKE_STAR_BURST::Slot08: logic confirmed by peer review - fn_08868 CEfstAction_STAR_BURST::Slot00: logic confirmed by peer review - fn_08869 CEfstAction_STAR_BURST::Slot01: logic confirmed by peer review - fn_08870 CEfstAction_STAR_BURST::Slot02: logic confirmed by peer review - fn_08871 CSkillAction_SKE_STAR_CANNON::Slot03: byte-identical - fn_08872 CSkillAction_SKE_STAR_CANNON::Slot05: byte-identical - fn_08873 CSkillAction_SKE_STAR_CANNON::Slot08: logic confirmed by peer review - fn_08874 CSkillAction_SOA_TALISMAN_OF_FIVE_ELEMENTS::Slot00: byte-identical - fn_08875 CSkillAction_SOA_TALISMAN_OF_FIVE_ELEMENTS::Slot08: logic confirmed by peer review - fn_08876 CSkillAction_SOA_TALISMAN_OF_FIVE_ELEMENTS::Slot11: logic confirmed by peer review - fn_08877 CSkillAction_SOA_TALISMAN_OF_SOUL_STEALING::Slot08: logic confirmed by peer review - fn_08878 CSkillAction_SOA_TALISMAN_OF_SOUL_STEALING::Slot11: logic confirmed by peer review - fn_08879 CSkillAction_SOA_TALISMAN_OF_SOUL_STEALING::Slot15: logic confirmed by peer review - fn_08880 CSkillAction_SOA_EXORCISM_OF_MALICIOUS_SOUL::Slot08: logic confirmed by peer review - fn_08881 CSkillAction_SOA_EXORCISM_OF_MALICIOUS_SOUL::Slot11: logic confirmed by peer review - fn_08882 CSkillAction_SOA_TALISMAN_OF_BLUE_DRAGON::Slot08: logic confirmed by peer review - fn_08883 CSkillAction_SOA_TALISMAN_OF_BLUE_DRAGON::Slot11: logic confirmed by peer review - fn_08884 CEfstAction_T_FIRST_GOD::Slot00: logic confirmed by peer review - fn_08885 CEfstAction_T_FIRST_GOD::Slot01: logic confirmed by peer review - fn_08886 CEfstAction_T_FIRST_GOD::Slot02: logic confirmed by peer review - fn_08887 CSkillAction_SOA_TALISMAN_OF_WHITE_TIGER::Slot08: logic confirmed by peer review - fn_08888 CSkillAction_SOA_TALISMAN_OF_WHITE_TIGER::Slot11: logic confirmed by peer review - fn_08889 CEfstAction_T_SECOND_GOD::Slot00: logic confirmed by peer review - fn_08890 CEfstAction_T_SECOND_GOD::Slot01: logic confirmed by peer review - fn_08891 CEfstAction_T_SECOND_GOD::Slot02: logic confirmed by peer review - fn_08892 CSkillAction_SOA_TALISMAN_OF_RED_PHOENIX::Slot08: logic confirmed by peer review - fn_08893 CSkillAction_SOA_TALISMAN_OF_RED_PHOENIX::Slot11: logic confirmed by peer review - fn_08894 CEfstAction_T_THIRD_GOD::Slot00: logic confirmed by peer review - fn_08895 CEfstAction_T_THIRD_GOD::Slot01: logic confirmed by peer review - fn_08896 CEfstAction_T_THIRD_GOD::Slot02: logic confirmed by peer review - fn_08897 CSkillAction_SOA_TALISMAN_OF_BLACK_TORTOISE::Slot08: logic confirmed by peer review - fn_08898 CSkillAction_SOA_TALISMAN_OF_BLACK_TORTOISE::Slot12: logic confirmed by peer review - fn_08899 CSkillAction_SOA_TALISMAN_OF_BLACK_TORTOISE::Slot14: byte-identical - fn_08900 CEfstAction_T_FOURTH_GOD::Slot00: logic confirmed by peer review - fn_08901 CEfstAction_T_FOURTH_GOD::Slot01: logic confirmed by peer review - fn_08902 CEfstAction_T_FOURTH_GOD::Slot02: logic confirmed by peer review - fn_08903 CSkillAction_SOA_TALISMAN_OF_FOUR_BEARING_GOD::Slot08: logic confirmed by peer review - fn_08904 CSkillAction_SOA_TALISMAN_OF_FOUR_BEARING_GOD::Slot11: logic confirmed by peer review - fn_08905 CSkillAction_SOA_CIRCLE_OF_DIRECTIONS_AND_ELEMENTALS::Slot08: logic confirmed by peer review - fn_08906 CSkillAction_SOA_CIRCLE_OF_DIRECTIONS_AND_ELEMENTALS::Slot11: logic confirmed by peer review - fn_08907 CEfstAction_T_FIVETH_GOD::Slot00: logic confirmed by peer review - fn_08908 CEfstAction_T_FIVETH_GOD::Slot01: logic confirmed by peer review - fn_08909 CEfstAction_T_FIVETH_GOD::Slot02: logic confirmed by peer review - fn_08910 CSkillAction_SOA_SOUL_OF_HEAVEN_AND_EARTH::Slot00: byte-identical - fn_08911 CSkillAction_SOA_SOUL_OF_HEAVEN_AND_EARTH::Slot08: logic confirmed by peer review - fn_08912 CSkillAction_SOA_SOUL_OF_HEAVEN_AND_EARTH::Slot11: logic confirmed by peer review - fn_08913 CEfstAction_HEAVEN_AND_EARTH::Slot00: logic confirmed by peer review - fn_08914 CEfstAction_HEAVEN_AND_EARTH::Slot01: logic confirmed by peer review - fn_08915 CEfstAction_HEAVEN_AND_EARTH::Slot02: logic confirmed by peer review - fn_08916 CSkillAction_SOA_TALISMAN_OF_PROTECTION::Slot00: byte-identical - fn_08917 CSkillAction_SOA_TALISMAN_OF_PROTECTION::Slot08: logic confirmed by peer review - fn_08918 CSkillAction_SOA_TALISMAN_OF_PROTECTION::Slot11: logic confirmed by peer review - fn_08919 CSkillAction_SOA_TALISMAN_OF_WARRIOR::Slot00: byte-identical - fn_08920 CSkillAction_SOA_TALISMAN_OF_WARRIOR::Slot08: logic confirmed by peer review - fn_08921 CSkillAction_SOA_TALISMAN_OF_WARRIOR::Slot11: logic confirmed by peer review - fn_08922 CSkillAction_SOA_TALISMAN_OF_MAGICIAN::Slot00: byte-identical - fn_08923 CSkillAction_SOA_TALISMAN_OF_MAGICIAN::Slot08: logic confirmed by peer review - fn_08924 CSkillAction_SOA_TALISMAN_OF_MAGICIAN::Slot11: logic confirmed by peer review - fn_08925 CSkillAction_SOA_SOUL_GATHERING::Slot08: logic confirmed by peer review - fn_08926 CSkillAction_SOA_SOUL_GATHERING::Slot11: logic confirmed by peer review - fn_08927 CSkillAction_SOA_TOTEM_OF_TUTELARY::Slot08: logic confirmed by peer review - fn_08928 CSkillAction_SOA_TOTEM_OF_TUTELARY::Slot14: byte-identical - fn_08929 CSkillObjectAction_SOA_TOTEM_OF_TUTELARY::Slot00: logic confirmed by peer review - fn_08930 CSkillObjectAction_SOA_TOTEM_OF_TUTELARY::Slot01: logic confirmed by peer review - fn_08931 CSkillAction_SH_CHUL_HO_SONIC_CLAW::Slot02: byte-identical - fn_08932 CSkillAction_SH_CHUL_HO_SONIC_CLAW::Slot11: logic confirmed by peer review - fn_08933 CSkillAction_SH_HOWLING_OF_CHUL_HO::Slot02: byte-identical - fn_08934 CSkillAction_SH_HOWLING_OF_CHUL_HO::Slot08: logic confirmed by peer review - fn_08935 CSkillAction_SH_HOWLING_OF_CHUL_HO::Slot11: logic confirmed by peer review - fn_08936 CEfstAction_HOGOGONG::Slot00: logic confirmed by peer review - fn_08937 CEfstAction_HOGOGONG::Slot01: logic confirmed by peer review - fn_08938 CEfstAction_HOGOGONG::Slot02: logic confirmed by peer review - fn_08939 CSkillAction_SH_HOGOGONG_STRIKE::Slot02: byte-identical Peer-reviewed-by: eAthena, willerthal, KWDev Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes). Adds to the build: Source/Contents/Skills/SkillActionSoulAscetic.cpp
288 lines
8.5 KiB
C++
288 lines
8.5 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
|
|
|
|
// 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
|
|
|
|
// 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
|
|
|
|
// 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
|
|
|
|
// 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
|
|
|
|
// OFFSET: 0x007A0B00
|
|
|
|
// OFFSET: 0x007A0DA0
|
|
|
|
// OFFSET: 0x007A0FD0
|
|
|
|
// 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
|
|
|
|
// OFFSET: 0x007A11C0
|
|
// FUNCTION: fn_08968
|
|
int CSkillAction_SH_CHUL_HO_BATTERING::Slot02() {
|
|
return 54;
|
|
}
|
|
|
|
// OFFSET: 0x007A11D0
|
|
|
|
// OFFSET: 0x007A1360
|
|
|
|
// OFFSET: 0x007A1630
|
|
|
|
// OFFSET: 0x007A17D0
|
|
|
|
// OFFSET: 0x007A1A80
|
|
|
|
// OFFSET: 0x007A1D10
|