diff --git a/Jusin154_Team3D/Client/Default/Client.vcxproj b/Jusin154_Team3D/Client/Default/Client.vcxproj
index 8a08019a3..712623a7b 100644
--- a/Jusin154_Team3D/Client/Default/Client.vcxproj
+++ b/Jusin154_Team3D/Client/Default/Client.vcxproj
@@ -182,6 +182,7 @@ call Update_Resources.bat
+
@@ -335,6 +336,7 @@ call Update_Resources.bat
+
diff --git a/Jusin154_Team3D/Client/Default/Client.vcxproj.filters b/Jusin154_Team3D/Client/Default/Client.vcxproj.filters
index 3ba6abb6b..3c24413c8 100644
--- a/Jusin154_Team3D/Client/Default/Client.vcxproj.filters
+++ b/Jusin154_Team3D/Client/Default/Client.vcxproj.filters
@@ -406,20 +406,16 @@
02.GameObjects\NPC\Hostile\Monster\Goblin\Goblin_Mage
-
02.GameObjects\NPC\Hostile\Monster\Goblin\Goblin_Spector
-
+
02.GameObjects\NPC\Hostile\Monster\Goblin\Goblin_Spector
02.GameObjects\NPC\Hostile\Monster\Goblin\Goblin_Warrior
-
- 02.GameObjects\Item\Goblin_BattleAxe
-
02.GameObjects\PhysX\CallBack\Behavior\Player
@@ -456,6 +452,10 @@
02.GameObjects\Effect\MonsterEffect\TrollSwing
+
+
+ 02.GameObjects\Effect\Effects\WandEnd
+
@@ -948,7 +948,7 @@
{7bd8bc85-e56c-40fc-b1a6-6e09da46897f}
-
+
{3f4bde42-c5a0-4c7a-8dde-23e0725534c9}
@@ -970,8 +970,11 @@
{e12337a6-7563-4615-a8d2-a2e2e1ba1ca8}
+
+ {14ad0431-680b-4c8b-93d7-601aee5ce435}
+
-
+
99.Define\00.DEFAULT
@@ -1395,17 +1398,18 @@
02.GameObjects\Effect\MonsterEffect\TrollSwing
+
+
+ 02.GameObjects\Effect\Effects\WandEnd
+
-
+
02.GameObjects\NPC\Hostile\Monster\Goblin\Goblin_Warrior
02.GameObjects\NPC\Hostile\Monster\Goblin\Goblin_Warrior
-
- 02.GameObjects\Item\Goblin_BattleAxe
-
02.GameObjects\PhysX\CallBack\Behavior\Player
@@ -1427,11 +1431,10 @@
02.GameObjects\PhysX\CallBack\HitReport\Monster\Troll
-
+
99.Define\00.DEFAULT
-
-
\ No newline at end of file
+
\ No newline at end of file
diff --git a/Jusin154_Team3D/Client/Private/EffectPool.cpp b/Jusin154_Team3D/Client/Private/EffectPool.cpp
index 4793c7a4a..af9aa87d6 100644
--- a/Jusin154_Team3D/Client/Private/EffectPool.cpp
+++ b/Jusin154_Team3D/Client/Private/EffectPool.cpp
@@ -17,11 +17,12 @@
#include "NomalJapSide.h"
#include "Lumos.h"
-
+#include "WandEnd.h"
#include "Troll_Rush_Hit.h"
#include "Troll_Nomal_Smoke.h"
#include "TrollSwing.h"
+#include "Goblin_Protego.h"
CEffectPool::CEffectPool(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
: CGameObject(pDevice, pContext)
@@ -248,6 +249,16 @@ HRESULT CEffectPool::Ready_Effect()
return pEffect; }
))) return E_FAIL;
+
+ if (FAILED(Create_Effect(SKILL_TYPE::WAND_END, 5, NEXT_LEVEL, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
+
+ CWandEnd* pEffect = nullptr;
+
+ pEffect = m_pGameInstance->Clone_Prototype(iPrototypeLevel, nullptr);
+
+ return pEffect; }
+ ))) return E_FAIL;
+
#endif // !기무리
return S_OK;
@@ -284,6 +295,15 @@ HRESULT CEffectPool::Ready_MonsterEffect()
return pEffect; }
))) return E_FAIL;
+
+ if (FAILED(Create_Effect(SKILL_TYPE::GOBLIN_PROTEGO, 5, NEXT_LEVEL, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
+
+ CGoblin_Protego* pEffect = nullptr;
+
+ pEffect = m_pGameInstance->Clone_Prototype(iPrototypeLevel, nullptr);
+
+ return pEffect; }
+ ))) return E_FAIL;
return S_OK;
}
diff --git a/Jusin154_Team3D/Client/Private/Goblin_Mage_States.cpp b/Jusin154_Team3D/Client/Private/Goblin_Mage_States.cpp
index 6379d113e..d78cc9333 100644
--- a/Jusin154_Team3D/Client/Private/Goblin_Mage_States.cpp
+++ b/Jusin154_Team3D/Client/Private/Goblin_Mage_States.cpp
@@ -30,7 +30,7 @@ HRESULT CGoblin_Mage::Behavior_IdleExitCheck()
if (m_fTargetDistance <= 20.f && m_fTargetDistance != 0.f)
{
m_vOriginPos = m_pTransformCom->Get_State(STATE::POSITION);
- m_pEffectPool->Use_Skill(SKILL_TYPE::PROTEGO, this);
+ m_pEffectPool->Use_Skill(SKILL_TYPE::GOBLIN_PROTEGO, this);
m_pFSM->Change_State(FSMSTATE::MOVE);
}
diff --git a/Jusin154_Team3D/Client/Private/Loader.cpp b/Jusin154_Team3D/Client/Private/Loader.cpp
index 2cfb43de3..de7b56b35 100644
--- a/Jusin154_Team3D/Client/Private/Loader.cpp
+++ b/Jusin154_Team3D/Client/Private/Loader.cpp
@@ -129,6 +129,8 @@
#include "TrollSwing.h"
#include "Troll_Nomal_Smoke.h"
#include "Troll_Rush_Hit.h"
+
+#include "WandEnd.h"
#include "Goblin_Protego.h"
@@ -1462,6 +1464,10 @@ HRESULT CLoader::Loading_For_GamePlay()
return E_FAIL;
}
+ if (FAILED(m_pGameInstance->Add_Prototype(NEXT_LEVEL, CWandEnd::Create(m_pDevice, m_pContext)))) {
+ return E_FAIL;
+ }
+
if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CEffectPool::Create(m_pDevice, m_pContext)))) {
return E_FAIL;
}
diff --git a/Jusin154_Team3D/Client/Private/Player_States.cpp b/Jusin154_Team3D/Client/Private/Player_States.cpp
index 77f672eed..350ccd6d7 100644
--- a/Jusin154_Team3D/Client/Private/Player_States.cpp
+++ b/Jusin154_Team3D/Client/Private/Player_States.cpp
@@ -1057,13 +1057,24 @@ void CPlayer::Behavior_SpellEnter()
}
break;
default:
+
pairAnimInfo = m_Animation[STATEANIM::SPELL_FAIL];
+
+ Add_Event(pairAnimInfo.first,
+ [this]() { m_pEffectPool->Use_Skill(SKILL_TYPE::WAND_END, Get_PartObject()); },
+ 0.3f);
+
break;
}
}
else
{
pairAnimInfo = m_Animation[STATEANIM::SPELL_FAIL];
+
+ Add_Event(pairAnimInfo.first,
+ [this]() { m_pEffectPool->Use_Skill(SKILL_TYPE::WAND_END, Get_PartObject()); },
+ 0.3f);
+
}
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
diff --git a/Jusin154_Team3D/Client/Private/WandEnd.cpp b/Jusin154_Team3D/Client/Private/WandEnd.cpp
new file mode 100644
index 000000000..366c24ff3
--- /dev/null
+++ b/Jusin154_Team3D/Client/Private/WandEnd.cpp
@@ -0,0 +1,178 @@
+#include "pch.h"
+#include "WandEnd.h"
+
+#include "GameInstance.h"
+#include "EffectParts.h"
+#include "Wand.h"
+
+CWandEnd::CWandEnd(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+ : CEffect_Container{ pDevice, pContext }
+{
+}
+
+CWandEnd::CWandEnd(const CWandEnd& rhs)
+ : CEffect_Container(rhs)
+{
+}
+
+HRESULT CWandEnd::Initialize_Prototype()
+{
+
+ return S_OK;
+
+}
+
+HRESULT CWandEnd::Initialize(void* pArg)
+{
+ if (FAILED(__super::Initialize(pArg)))
+ return E_FAIL;
+
+ if (FAILED(Ready_Components(pArg)))
+ return E_FAIL;
+
+
+ if (FAILED(Load_Package("../Bin/Resources/Data/Effect/Package/WandEnd")))
+ return E_FAIL;
+
+ m_wstrEffectName = L"Lumos";
+
+ m_pWandPt = Get_PartObject("WandParticle_R");
+
+ SAFE_ADDREF(m_pWandPt);
+
+ m_fDuration = 2.f;
+
+ m_Events.emplace(0.4f, [&]() {
+ m_isParticleEnd = true;
+
+ m_pWandPt->Get_Component()->Set_State(STATE::POSITION, XMVectorSet(0.f, -500.f, 0.f, 1.f));
+ });
+
+ return S_OK;
+}
+
+void CWandEnd::Priority_Update(_float fTimeDelta)
+{
+ __super::Priority_Update(fTimeDelta);
+
+}
+
+void CWandEnd::Update(_float fTimeDelta)
+{
+ if (m_bVisible == false)
+ return;
+
+ __super::Update(fTimeDelta);
+
+ Update_Event(fTimeDelta);
+
+
+ if (m_isParticleEnd == true)
+ return;
+
+ CWand* pWand = static_cast(m_pOwner);
+
+ if (pWand == nullptr)
+ return;
+
+ m_pWandPt->Get_Component()->Set_State(STATE::POSITION, pWand->Get_WorldPostion());
+
+}
+
+void CWandEnd::Late_Update(_float fTimeDelta)
+{
+ if (m_bVisible == false)
+ return;
+
+ __super::Late_Update(fTimeDelta);
+
+
+}
+
+HRESULT CWandEnd::Pre_Setting(CGameObject* pObject, void* pArg)
+{
+ if (FAILED(__super::Pre_Setting(pObject)))
+ return E_FAIL;
+
+ CWand* pWand = static_cast(m_pOwner);
+
+ if (pWand == nullptr)
+ return E_FAIL;
+
+ m_pWandPt->Set_Visible(true);
+ m_pWandPt->Get_Component()->Set_State(STATE::POSITION, pWand->Get_WorldPostion());
+ m_isParticleEnd = false;
+
+ return S_OK;
+}
+
+HRESULT CWandEnd::Ready_Components(void* pArg)
+{
+ if (FAILED(__super::Ready_Components(pArg))) {
+ return E_FAIL;
+ }
+
+ return S_OK;
+}
+
+HRESULT CWandEnd::Ready_Child()
+{
+ return S_OK;
+}
+
+CWandEnd* CWandEnd::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+{
+ CWandEnd* pInstance = new CWandEnd(pDevice, pContext);
+
+ if (FAILED(pInstance->Initialize_Prototype()))
+ {
+ MSG_BOX("Failed to Created : CWandEnd");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+
+CGameObject* CWandEnd::Clone(void* pArg, CGameObject* pOwner)
+{
+ CWandEnd* pInstance = new CWandEnd(*this);
+ pInstance->m_pOwner = pOwner;
+ if (FAILED(pInstance->Initialize(pArg)))
+ {
+ MSG_BOX("Failed to Cloned : CWandEnd");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+void CWandEnd::OnCollision(CGameObject* pOther, void* pDesc)
+{
+ //CTransform* pOtherTransform = p
+ ON_COLLISION_INFO* CollisionDesc = static_cast(pDesc);
+
+}
+
+void CWandEnd::Free()
+{
+ __super::Free();
+
+ Safe_Release(m_pWandPt);
+
+}
+#ifdef _DEBUG
+
+void CWandEnd::Describe_Entity()
+{
+
+}
+
+#endif // _DEBUG
+
+HRESULT CWandEnd::Bind_ShaderResources()
+{
+ return S_OK;
+}
+
+
diff --git a/Jusin154_Team3D/Client/Public/Client_Enum.h b/Jusin154_Team3D/Client/Public/Client_Enum.h
index 81e755b04..2c5ed1188 100644
--- a/Jusin154_Team3D/Client/Public/Client_Enum.h
+++ b/Jusin154_Team3D/Client/Public/Client_Enum.h
@@ -29,9 +29,9 @@ namespace Client
BEAST_PETTING_BRUSH, BEAST_FEED, NAB_SACK, // 하늘색
JAP, REVELIO, PROTEGO, STUPEFY, // 검은색
ANCIENT_MAGIC_THROW, ANCIENT_MAGIC, ALOHOMORA, PETRIFICUS_TOTALUS,
- JAP_SIDE, BOMBARDA_SIDE, DESCENDO_SIDE, LEVIOSO_SIDE,
+ JAP_SIDE, BOMBARDA_SIDE, DESCENDO_SIDE, LEVIOSO_SIDE, WAND_END,
- TROLL_ATTACK, TROLL_RUSH_HIT, TROLL_NOMAL_SMOKE,
+ TROLL_ATTACK, TROLL_RUSH_HIT, TROLL_NOMAL_SMOKE, GOBLIN_PROTEGO,
END
};
diff --git a/Jusin154_Team3D/Client/Public/WandEnd.h b/Jusin154_Team3D/Client/Public/WandEnd.h
new file mode 100644
index 000000000..b73ed10ad
--- /dev/null
+++ b/Jusin154_Team3D/Client/Public/WandEnd.h
@@ -0,0 +1,49 @@
+#pragma once
+
+#include "Client_Define.h"
+#include "Effect_Container.h"
+
+NS_BEGIN(Engine)
+NS_END
+
+NS_BEGIN(Client)
+
+class CWandEnd final : public CEffect_Container
+{
+private:
+ CWandEnd(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ CWandEnd(const CWandEnd& rhs);
+ virtual ~CWandEnd() = default;
+
+public:
+ virtual void Priority_Update(_float fTimeDelta) override;
+ virtual void Update(_float fTimeDelta) override;
+ virtual void Late_Update(_float fTimeDelta) override;
+
+public:
+ virtual HRESULT Pre_Setting(CGameObject* pObject, void* pArg = nullptr) override;
+
+private:
+ virtual HRESULT Initialize_Prototype() override;
+ virtual HRESULT Initialize(void* pArg) override;
+ virtual HRESULT Ready_Components(void* pArg) override;
+ HRESULT Ready_Child();
+ HRESULT Bind_ShaderResources() override;
+ virtual void OnCollision(CGameObject* pOther = nullptr, void* pDesc = nullptr) override;
+private:
+ _wstring m_wstrEffectName = {};
+
+ class CEffectParts* m_pWandPt = { nullptr };
+
+ _bool m_isParticleEnd = {};
+
+public:
+ static CWandEnd* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ virtual void Free() override;
+ CGameObject* Clone(void* pArg, CGameObject* pOwner) override;
+#ifdef _DEBUG
+ void Describe_Entity() override;
+#endif // _DEBUG
+};
+
+NS_END
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/GoblinMage/Orb_P.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/GoblinMage/Orb_P.bin
new file mode 100644
index 000000000..6062fd404
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/GoblinMage/Orb_P.bin
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:e7de88fb5cc122dde2cac296d273104ebefd933ffb322f1f03098ac03511d9e5
+size 1120
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Trail_PT0.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Trail_PT0.bin
index 6e7e1c0f3..df2b8e890 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Trail_PT0.bin
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Trail_PT0.bin
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:3507cb051a6c5b703d63ed65549587fde761d0d522da15838f49111f3bc28d55
-size 1045
+oid sha256:5bde6082a76193fc49dcdf57ba026c2e6f98a39bd87cc529c21b9df453e59721
+size 1059
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/WandEnd.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/WandEnd.bin
new file mode 100644
index 000000000..a6be396b0
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/WandEnd.bin
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:ed8c71f3a2cef038462ada73b40abb17d81ffed78ac3ab65028972013e1a94e4
+size 68
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/WandEnd/WandParticle_R.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/WandEnd/WandParticle_R.bin
new file mode 100644
index 000000000..f7cd21134
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/WandEnd/WandParticle_R.bin
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:d9419051879b9e4bfa57067d92640a42db30954b7fcf874df8f79e1856a46393
+size 1059
diff --git a/Jusin154_Team3D/Editor/Private/EffectPool.cpp b/Jusin154_Team3D/Editor/Private/EffectPool.cpp
index 6db712412..8d4787972 100644
--- a/Jusin154_Team3D/Editor/Private/EffectPool.cpp
+++ b/Jusin154_Team3D/Editor/Private/EffectPool.cpp
@@ -44,8 +44,8 @@ HRESULT CEffectPool::Initialize(void* pArg)
if (FAILED(Ready_Components()))
return E_FAIL;
- //if (FAILED(Ready_Effect()))
- // return E_FAIL;
+ if (FAILED(Ready_Effect()))
+ return E_FAIL;
if (FAILED(Ready_MonsterEffect()))
return E_FAIL;
diff --git a/Jusin154_Team3D/Editor/Private/Levioso.cpp b/Jusin154_Team3D/Editor/Private/Levioso.cpp
index a503bf238..69b451ff5 100644
--- a/Jusin154_Team3D/Editor/Private/Levioso.cpp
+++ b/Jusin154_Team3D/Editor/Private/Levioso.cpp
@@ -129,15 +129,15 @@ HRESULT CLevioso::Pre_Setting(CGameObject* pObject, void* pArg)
CEditEffect* pWandSmoke = Get_PartObject("Levioso_Wand0");
CEditEffect* pWandLight = Get_PartObject("Levioso_Wand_Light");
-
-
m_pLeviosoPJ_0->Get_Component()->Set_State(STATE::POSITION, WandPos);
m_pTrail_PT_0->Get_Component()->Set_State(STATE::POSITION, WandPos);
+
pWandSmoke->Get_Component()->Set_State(STATE::POSITION, pPlayer->Get_PartObject()->Get_WorldPostion());
pWandLight->Get_Component()->Set_State(STATE::POSITION, pPlayer->Get_PartObject()->Get_WorldPostion());
m_pLeviosoPJ_0->Set_Visible(true);
m_pTrail_PT_0->Set_Visible(true);
+
pWandSmoke->Set_Visible(true);
pWandLight->Set_Visible(true);