1
This commit is contained in:
parent
9de94b999d
commit
2d597fc5b8
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user