1
This commit is contained in:
parent
349b851d1c
commit
250d7fec1f
@ -21,6 +21,7 @@
|
|||||||
#include "mt/Param.h"
|
#include "mt/Param.h"
|
||||||
#include "mt/Text.h"
|
#include "mt/Text.h"
|
||||||
#include "mt/Hero.h"
|
#include "mt/Hero.h"
|
||||||
|
#include "mt/Equip.h"
|
||||||
#include "mt/Map.h"
|
#include "mt/Map.h"
|
||||||
#include "mt/PveGemini.h"
|
#include "mt/PveGemini.h"
|
||||||
#include "mt/PveGeminiMode.h"
|
#include "mt/PveGeminiMode.h"
|
||||||
@ -960,6 +961,19 @@ void RoomMgr::EnterNewBie(f8::MsgHdr& hdr, const cs::CMJoin& msg)
|
|||||||
}
|
}
|
||||||
hum->room = room;
|
hum->room = room;
|
||||||
hum->SetBattleContext(context);
|
hum->SetBattleContext(context);
|
||||||
|
{
|
||||||
|
const mt::Hero* hero_meta = mt::Hero::GetById(mt::Param::s().newbie_room_hero_id);
|
||||||
|
const mt::Equip* weapon_meta = mt::Equip::GetById(mt::Param::s().newbie_room_weapon_id);
|
||||||
|
context->ForceInit
|
||||||
|
(
|
||||||
|
App::Instance()->AllocTempHeroUniId(),
|
||||||
|
hero_meta,
|
||||||
|
App::Instance()->AllocTempWeaponUniId(),
|
||||||
|
weapon_meta,
|
||||||
|
0,
|
||||||
|
nullptr
|
||||||
|
);
|
||||||
|
}
|
||||||
hum->GetBattleContext()->Init(hum);
|
hum->GetBattleContext()->Init(hum);
|
||||||
{
|
{
|
||||||
long long hero_uniid = 0;
|
long long hero_uniid = 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user