1.指定枪械,未对特定场景部件有伤害
This commit is contained in:
parent
ec4b690440
commit
cf49d9a30d
@ -558,6 +558,10 @@ void Obstacle::OnBulletHit(Bullet* bullet)
|
|||||||
if (!IsDead(bullet->room) &&
|
if (!IsDead(bullet->room) &&
|
||||||
Attackable() &&
|
Attackable() &&
|
||||||
!IsTerminatorAirDropBox(bullet->room)) {
|
!IsTerminatorAirDropBox(bullet->room)) {
|
||||||
|
if (meta->receive_special_damage_type != 0 &&
|
||||||
|
((bullet->gun_meta->special_damage_type & meta->receive_special_damage_type) == 0)) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
float dmg = bullet->GetAtk() * (1 + bullet->sender.Get()->GetAttrRate(kHAT_Atk)) +
|
float dmg = bullet->GetAtk() * (1 + bullet->sender.Get()->GetAttrRate(kHAT_Atk)) +
|
||||||
bullet->sender.Get()->GetAttrAbs(kHAT_Atk);
|
bullet->sender.Get()->GetAttrAbs(kHAT_Atk);
|
||||||
float def = 0;
|
float def = 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user