70 lines
2 KiB
C++
70 lines
2 KiB
C++
|
|
#include "StdAfx.h"
|
|||
|
|
#include "DnFinalCriticalBlow.h"
|
|||
|
|
|
|||
|
|
#ifdef _CLIENT
|
|||
|
|
#include "DnInterface.h"
|
|||
|
|
#endif
|
|||
|
|
|
|||
|
|
#if !defined( USE_BOOST_MEMPOOL )
|
|||
|
|
#ifdef _DEBUG
|
|||
|
|
#define new new(_NORMAL_BLOCK,__FILE__,__LINE__)
|
|||
|
|
#endif
|
|||
|
|
#endif // #if !defined( USE_BOOST_MEMPOOL )
|
|||
|
|
|
|||
|
|
|
|||
|
|
CDnFinalCriticalBlow::CDnFinalCriticalBlow( DnActorHandle hActor, const char* szValue ) : CDnBlow( hActor )
|
|||
|
|
{
|
|||
|
|
m_StateBlow.emBlowIndex = STATE_BLOW::BLOW_251;
|
|||
|
|
SetValue( szValue );
|
|||
|
|
|
|||
|
|
m_fValue = (float)atof(szValue);
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
CDnFinalCriticalBlow::~CDnFinalCriticalBlow(void)
|
|||
|
|
{
|
|||
|
|
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
|
|||
|
|
void CDnFinalCriticalBlow::OnBegin( LOCAL_TIME LocalTime, float fDelta )
|
|||
|
|
{
|
|||
|
|
__super::OnBegin(LocalTime, fDelta);
|
|||
|
|
|
|||
|
|
#if defined(PRE_ADD_CHAR_STATUS_SECOND_RENEW) && defined (PRE_FIX_CHARSTATUS_REFRESH) && defined(_CLIENT)
|
|||
|
|
// <20><>¦ <20>ָ<EFBFBD><D6B8><EFBFBD> <20>κ<EFBFBD><CEBA>ε<EFBFBD> CharStatus<75><73> <20>⺻<EFBFBD><E2BABB><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD>ŵɶ<C5B5> ǥ<><C7A5><EFBFBD><EFBFBD> <20><><EFBFBD>ִµ<D6B4> <20>̻<EFBFBD><CCBB><EFBFBD>ȿ<EFBFBD><C8BF><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>Ȱǵ<C8B0><C7B5>̴<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>.
|
|||
|
|
// <20>ϴ<EFBFBD><CFB4><EFBFBD> <20>̷<EFBFBD><CCB7><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ǥ<><C7A5><EFBFBD>Ǵ<EFBFBD> <20><><EFBFBD><EFBFBD>ȿ<EFBFBD><C8BF><EFBFBD><EFBFBD> <20>߾<EFBFBD><DFBE><EFBFBD><E2B6A7><EFBFBD><EFBFBD> <20>̻<EFBFBD><CCBB><EFBFBD>ȿ<EFBFBD><C8BF><EFBFBD><EFBFBD> <20>ɾ<EFBFBD><C9BE>δµ<CEB4> <20><><EFBFBD>߿<EFBFBD> <20>̷<EFBFBD><CCB7><EFBFBD><EFBFBD>찡 <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> DnBlow<6F><77><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD>߾ <20><><EFBFBD><EFBFBD><EFBFBD>ϵ<EFBFBD><CFB5><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ؾ<EFBFBD><D8BE>ҵ<EFBFBD> <20>ͽ<EFBFBD><CDBD>ϴ<EFBFBD>.
|
|||
|
|
if( CDnActor::s_hLocalActor && m_hActor == CDnActor::s_hLocalActor )
|
|||
|
|
GetInterface().OnRefreshLocalPlayerStatus();
|
|||
|
|
#endif
|
|||
|
|
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
void CDnFinalCriticalBlow::Process( LOCAL_TIME LocalTime, float fDelta )
|
|||
|
|
{
|
|||
|
|
__super::Process( LocalTime, fDelta );
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
|
|||
|
|
void CDnFinalCriticalBlow::OnEnd( LOCAL_TIME LocalTime, float fDelta )
|
|||
|
|
{
|
|||
|
|
__super::OnEnd(LocalTime, fDelta);
|
|||
|
|
|
|||
|
|
#if defined(PRE_ADD_CHAR_STATUS_SECOND_RENEW) && defined (PRE_FIX_CHARSTATUS_REFRESH) && defined(_CLIENT)
|
|||
|
|
if( m_hActor == CDnActor::s_hLocalActor )
|
|||
|
|
GetInterface().OnRefreshLocalPlayerStatus();
|
|||
|
|
#endif
|
|||
|
|
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
#if defined(PRE_ADD_PREFIX_SYSTE_RENEW)
|
|||
|
|
void CDnFinalCriticalBlow::AddStateEffectValue(const char* szOrigValue, const char* szAddValue, std::string& szNewValue)
|
|||
|
|
{
|
|||
|
|
szNewValue = szOrigValue;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
void CDnFinalCriticalBlow::RemoveStateEffectValue(const char* szOrigValue, const char* szAddValue, std::string& szNewValue)
|
|||
|
|
{
|
|||
|
|
szNewValue = szOrigValue;
|
|||
|
|
}
|
|||
|
|
#endif // PRE_ADD_PREFIX_SYSTE_RENEW
|