1
This commit is contained in:
parent
80c8f92d37
commit
90f9c492ab
@ -32,6 +32,7 @@ void Bullet::Initialize()
|
|||||||
MoveableEntity::Initialize();
|
MoveableEntity::Initialize();
|
||||||
RecalcSelfCollider();
|
RecalcSelfCollider();
|
||||||
ability_ = sender.Get()->GetAbility();
|
ability_ = sender.Get()->GetAbility();
|
||||||
|
is_curr_weapon = sender.Get()->GetCurrWeapon()->meta == gun_meta;
|
||||||
}
|
}
|
||||||
|
|
||||||
void Bullet::Update(int delta_time)
|
void Bullet::Update(int delta_time)
|
||||||
@ -441,7 +442,7 @@ void Bullet::ProcOilBucketBomb(int delay_time)
|
|||||||
|
|
||||||
bool Bullet::IsCurrWeapon()
|
bool Bullet::IsCurrWeapon()
|
||||||
{
|
{
|
||||||
return sender.Get()->GetCurrWeapon()->meta == gun_meta;
|
return is_curr_weapon;
|
||||||
}
|
}
|
||||||
|
|
||||||
void Bullet::AddGunBuff()
|
void Bullet::AddGunBuff()
|
||||||
|
@ -64,6 +64,7 @@ private:
|
|||||||
CircleCollider* self_collider_ = nullptr;
|
CircleCollider* self_collider_ = nullptr;
|
||||||
bool later_removed_ = false;
|
bool later_removed_ = false;
|
||||||
std::shared_ptr<Ability> ability_;
|
std::shared_ptr<Ability> ability_;
|
||||||
|
bool is_curr_weapon = false;
|
||||||
|
|
||||||
friend class EntityFactory;
|
friend class EntityFactory;
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user