This commit is contained in:
aozhiwei 2023-03-24 13:10:23 +08:00
parent 2432919f8f
commit 4feaeec930
2 changed files with 22 additions and 14 deletions

View File

@ -322,14 +322,12 @@ void Incubator::SpawnWaveMon(int wave)
int enemy_id = content->_enemys[monIdx];
const mt::Hero* hero_meta = mt::Hero::GetById(enemy_id);
if (hero_meta) {
// 999
#if 1
Position hero_pos;
hero_pos.FromGlmVec3(content->_spawn_point);
#if 0
hero_pos.SetX(5801.422);
hero_pos.SetY(6.000006);
hero_pos.SetZ(5607.3);
#else
Position hero_pos = content->spawn_point;
#endif
int team_id = 666;

View File

@ -9,6 +9,7 @@ namespace mt
{
void PveGeminiContent::Init1()
{
{
std::vector<std::string> strings;
a8::Split(enemy_id(), strings, '|');
@ -24,6 +25,15 @@ namespace mt
}
}
}
{
std::vector<std::string> strings;
a8::Split(spawn_point(), strings, ',');
_spawn_point = glm::vec3(
(float)a8::XValue(strings[0]).GetDouble(),
6.0f,
(float)a8::XValue(strings[1]).GetDouble());
}
}
const std::vector<const mt::PveGeminiContent*>* PveGeminiContent::GetContentsByMode(int mode)
{