This commit is contained in:
parent
fabee927ad
commit
47c27c870b
6 changed files with 44 additions and 2 deletions
|
@ -19,6 +19,10 @@
|
|||
#include "utils\utils.h"
|
||||
#endif
|
||||
|
||||
#ifndef __LEVEL_LEVEL_H__
|
||||
#include "level\level.h"
|
||||
#endif
|
||||
|
||||
#ifndef __GAME_CONVO_H__
|
||||
#include "game\convo.h"
|
||||
#endif
|
||||
|
@ -28,12 +32,34 @@
|
|||
#endif
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
void CNpcSandyFriend::postInit()
|
||||
{
|
||||
switch( CLevel::getCurrentChapter() )
|
||||
{
|
||||
case 3:
|
||||
{
|
||||
m_conversation = SCRIPTS_CH3L2_01_DAT;
|
||||
|
||||
break;
|
||||
}
|
||||
|
||||
default:
|
||||
{
|
||||
m_conversation = SCRIPTS_CH1L2_03_DAT;
|
||||
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
void CNpcSandyFriend::startConderversation()
|
||||
{
|
||||
if( !CConversation::isActive() )
|
||||
{
|
||||
CConversation::trigger( SCRIPTS_CH1L2_03_DAT );
|
||||
CConversation::trigger( m_conversation );
|
||||
}
|
||||
}
|
|
@ -20,8 +20,12 @@
|
|||
|
||||
class CNpcSandyFriend : public CNpcFriend
|
||||
{
|
||||
public:
|
||||
virtual void postInit();
|
||||
protected:
|
||||
virtual void startConderversation();
|
||||
|
||||
FileEquate m_conversation;
|
||||
};
|
||||
|
||||
#endif
|
|
@ -765,6 +765,12 @@ void CConversation::registerConversationLevelScripts(int level)
|
|||
break;
|
||||
}
|
||||
|
||||
case 2:
|
||||
{
|
||||
CConversation::registerConversationScript(SCRIPTS_CH3L2_01_DAT);
|
||||
break;
|
||||
}
|
||||
|
||||
case 3:
|
||||
{
|
||||
CConversation::registerConversationScript(SCRIPTS_CH3L3_01_DAT);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue