This commit is contained in:
aozhiwei 2021-06-22 12:22:56 +00:00
parent 4a7cad1850
commit 6527baab03

View File

@ -577,22 +577,41 @@ void Obstacle::OnExplosionHit(Explosion* e)
bool Obstacle::CanThroughable(Creature* c) bool Obstacle::CanThroughable(Creature* c)
{ {
#if 0 switch (meta->i->collision_hit()) {
if (meta->i->attack_type() == 4) { case kCollisionHitPass:
return true; {
return true;
}
break;
default:
{
return false;
}
break;
} }
#endif
return false; return false;
} }
bool Obstacle::CanThroughable(Bullet* bullet) bool Obstacle::CanThroughable(Bullet* bullet)
{ {
#if 0 switch (meta->i->bullet_hit()) {
if (meta->i->attack_type() == 4) { case kBulletHitPass:
{
return true;
}
break;
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->gun_meta->special_damage_type & meta->receive_special_damage_type) != 0));
}
break;
default:
{
return false;
}
break;
} }
#endif
return false; return false;
} }