1
This commit is contained in:
parent
4239f2c7fc
commit
52ec88ff22
@ -1702,6 +1702,20 @@ void Creature::SummonHero(Buff* buff,
|
||||
const glm::vec3& dir
|
||||
)
|
||||
{
|
||||
#if 1
|
||||
const mt::Hero* hero_meta = mt::Hero::GetById(buff->meta->_int_buff_param1);
|
||||
if (hero_meta) {
|
||||
int life_time = 10000;
|
||||
bool through_wall = false;
|
||||
InternalSummonHero(buff,
|
||||
hero_meta,
|
||||
GetAttackDir(),
|
||||
pos,
|
||||
through_wall,
|
||||
1,
|
||||
life_time);
|
||||
}
|
||||
#else
|
||||
for (auto& info : buff->meta->_hero_infos) {
|
||||
int through_wall = std::get<0>(info);
|
||||
float x = std::get<1>(info);
|
||||
@ -1748,6 +1762,7 @@ void Creature::SummonHero(Buff* buff,
|
||||
}//end for j
|
||||
}
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
bool Creature::FreezeOperate()
|
||||
@ -2024,7 +2039,11 @@ void Creature::TraverseSkill(std::function<void (Skill*, bool&)> func)
|
||||
|
||||
bool Creature::TrySummonHero(const mt::Hero* hero_meta, glm::vec3 dir, Position born_pos, bool through_wall)
|
||||
{
|
||||
#if 1
|
||||
return true;
|
||||
#else
|
||||
abort();
|
||||
#endif
|
||||
}
|
||||
|
||||
Hero* Creature::InternalSummonHero(Buff* buff, const mt::Hero* hero_meta, glm::vec3 dir, Position born_pos,
|
||||
|
@ -188,6 +188,7 @@ namespace mt
|
||||
}
|
||||
}
|
||||
}
|
||||
#if 0
|
||||
{
|
||||
std::vector<std::string> strings;
|
||||
a8::Split(buff_param1(), strings, '|');
|
||||
@ -208,6 +209,7 @@ namespace mt
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
if (buff_effect() == kBET_BatchAddBuff) {
|
||||
std::vector<std::string> strings1;
|
||||
a8::Split(buff_param1(), strings1, '|');
|
||||
|
Loading…
x
Reference in New Issue
Block a user