This commit is contained in:
aozhiwei 2023-04-03 13:58:13 +08:00
parent 06659136e7
commit 0c17ba861f
2 changed files with 9 additions and 0 deletions

View File

@ -508,6 +508,7 @@ void Bullet::Check(float distance)
#if 1
// 999
(fly_distance < 0.00001f && distance > gun_meta->range()) ||
(fly_distance > 0.00001f && distance >= fly_distance) ||
#else
(!IsBomb() && distance > gun_meta->range()) ||
#endif

View File

@ -367,6 +367,14 @@ void InternalShot(Creature* c,
weapon_lv = weapon_lv;
}
int weapon_buff_id = 0;
#if 1
if (c->GetAbility()->GetAttrAddition(kHAT_ShotRange) > 0.00001f) {
if (fly_distance > 0.00001f) {
} else {
fly_distance = weapon_meta->range() * (1 + c->GetAbility()->GetAttrAddition(kHAT_ShotRange));
}
}
#endif
auto bullet_born_offset_ptr = &weapon_meta->_bullet_born_offset;
if (c->GetCurrWeapon()->meta == weapon_meta) {
if (c->GetCurrWeapon()->bullet_born_offset_ptr) {