This commit is contained in:
aozhiwei 2023-04-17 14:16:24 +08:00
parent f7678c47fd
commit 9b7c7a0f9b
3 changed files with 4 additions and 1 deletions

View File

@ -27,5 +27,6 @@ void FragMiTask::Done()
center,
explosion_range,
gun_meta->explosion_effect(),
GetAtk());
GetAtk(),
bullet_uniid);
}

View File

@ -15,6 +15,7 @@ class FragMiTask : public MicroTask
const mt::Equip* meta = nullptr;
float explosion_range = 1;
float atk = 0;
int bullet_uniid = 0;
void Done();
float GetAtk() { return atk; }

View File

@ -1227,6 +1227,7 @@ void Human::ProcThrowDmg(int throw_uniid)
task->gun_meta = equip_meta;
task->meta = equip_meta;
task->atk = equip_meta->_atk;
task->bullet_uniid = context->throw_uniid();
task->explosion_range = equip_meta->explosion_range();
task->Initialize();
int delay_time = equip_meta->missiles_time();;