1
This commit is contained in:
parent
7e35106ca0
commit
fde4c50b68
@ -616,7 +616,7 @@ bool Obstacle::CanThroughable(Creature* c)
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool Obstacle::CanThroughable(Bullet* bullet)
|
bool Obstacle::CanThroughable(IBullet* bullet)
|
||||||
{
|
{
|
||||||
switch (meta->i->bullet_hit()) {
|
switch (meta->i->bullet_hit()) {
|
||||||
case kBulletHitPass:
|
case kBulletHitPass:
|
||||||
@ -627,7 +627,7 @@ bool Obstacle::CanThroughable(Bullet* bullet)
|
|||||||
case kBulletHitOnlySpecDmg:
|
case kBulletHitOnlySpecDmg:
|
||||||
{
|
{
|
||||||
return !(meta->receive_special_damage_type != 0 &&
|
return !(meta->receive_special_damage_type != 0 &&
|
||||||
((bullet->gun_meta->special_damage_type & meta->receive_special_damage_type) != 0));
|
((bullet->GetGunMeta()->special_damage_type & meta->receive_special_damage_type) != 0));
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
@ -46,7 +46,7 @@ class Obstacle : public Entity
|
|||||||
virtual void OnExplosionHit(Explosion* explosion) override;
|
virtual void OnExplosionHit(Explosion* explosion) override;
|
||||||
virtual bool Attackable(Room* room) override;
|
virtual bool Attackable(Room* room) override;
|
||||||
virtual bool CanThroughable(Creature* c);
|
virtual bool CanThroughable(Creature* c);
|
||||||
virtual bool CanThroughable(Bullet* bullet);
|
virtual bool CanThroughable(IBullet* bullet);
|
||||||
virtual bool DoInteraction(Human* sender);
|
virtual bool DoInteraction(Human* sender);
|
||||||
virtual int OnCollisionTrigger(Creature* c, ColliderComponent* collider);
|
virtual int OnCollisionTrigger(Creature* c, ColliderComponent* collider);
|
||||||
virtual bool CanSeeMe(Human* hum);
|
virtual bool CanSeeMe(Human* hum);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user