This commit is contained in:
aozhiwei 2024-01-17 11:46:24 +08:00
parent 9de94b999d
commit 2d597fc5b8

View File

@ -23,6 +23,7 @@
#include "car.h"
#include "roomobstacle.h"
#include "weapon.h"
#include "stats.h"
#include "mt/Hero.h"
#include "mt/Equip.h"
@ -1556,6 +1557,9 @@ behaviac::EBTStatus HeroAgent::ThrowItem(int slot)
bomb_dir,
fly_distance,
0);
if (owner_->IsHuman()) {
owner_->AsHuman()->stats->IncWeaponUseTimes(weapon.meta->id(), 1);
}
last_throw_item_frameno_ = owner_->room->GetFrameNo();
return behaviac::BT_SUCCESS;
}