This commit is contained in:
aozhiwei 2023-03-29 16:10:52 +08:00
parent 11c3f8139f
commit aa8283d53e
3 changed files with 15 additions and 10 deletions

View File

@ -57,14 +57,18 @@ namespace mt
} }
} }
{ {
std::vector<std::string> strings; if (buff_effect() == kBET_CallFunc &&
a8::Split(buff_param2(), strings, '|'); (int)BuffCallFunc_e::kSetBulletBornOffset == _int_buff_param1) {
if (buff_param2().find(":") != std::string::npos) { } else {
A8_ABORT(); std::vector<std::string> strings;
} a8::Split(buff_param2(), strings, '|');
for (auto& str : strings) { if (buff_param2().find(":") != std::string::npos) {
_buff_param2_int_list.push_back(a8::XValue(str).GetInt()); A8_ABORT();
_buff_param2_int_set.insert(a8::XValue(str).GetInt()); }
for (auto& str : strings) {
_buff_param2_int_list.push_back(a8::XValue(str).GetInt());
_buff_param2_int_set.insert(a8::XValue(str).GetInt());
}
} }
} }
{ {

View File

@ -363,7 +363,8 @@ void InternalShot(Creature* c,
return; return;
} }
auto bullet_born_offset_ptr = &weapon_meta->_bullet_born_offset; auto bullet_born_offset_ptr = &weapon_meta->_bullet_born_offset;
if (c->GetCurrWeapon()->meta == weapon_meta) { if (c->GetCurrWeapon()->meta == weapon_meta &&
c->GetCurrWeapon()->bullet_born_offset_ptr) {
bullet_born_offset_ptr = c->GetCurrWeapon()->bullet_born_offset_ptr; bullet_born_offset_ptr = c->GetCurrWeapon()->bullet_born_offset_ptr;
} }
for (auto& tuple : *bullet_born_offset_ptr) { for (auto& tuple : *bullet_born_offset_ptr) {

2
third_party/a8 vendored

@ -1 +1 @@
Subproject commit 50c04d6bc15bf633f4980039db8be6e61e5b6b55 Subproject commit b6c896a7c5be517ba12d1b069d58103b6214f09f