1
This commit is contained in:
parent
4cd39d4af0
commit
a275cac33d
@ -1602,6 +1602,11 @@ void Creature::Shot(glm::vec3& target_dir, bool& shot_ok, float fly_distance, in
|
|||||||
|
|
||||||
void Creature::AutoLoadingBullet(bool manual)
|
void Creature::AutoLoadingBullet(bool manual)
|
||||||
{
|
{
|
||||||
|
if (HasBuffEffect(kBET_Jump) ||
|
||||||
|
HasBuffEffect(kBET_Fly) ||
|
||||||
|
HasBuffEffect(kBET_Floating)) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
Weapon* p_weapon = GetCurrWeapon();
|
Weapon* p_weapon = GetCurrWeapon();
|
||||||
if (second_weapon.meta) {
|
if (second_weapon.meta) {
|
||||||
p_weapon = &second_weapon;
|
p_weapon = &second_weapon;
|
||||||
|
@ -486,6 +486,9 @@ void Player::UpdateUseItemIdx()
|
|||||||
if (room->HasRoomSwitch(kRoomSwitchDisableUseItem)) {
|
if (room->HasRoomSwitch(kRoomSwitchDisableUseItem)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
if (HasBuffEffect(kBET_Vertigo)) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
#if 0
|
#if 0
|
||||||
if (use_item_idx == 24) {
|
if (use_item_idx == 24) {
|
||||||
use_item_idx = IS_SHEN_BAO;
|
use_item_idx = IS_SHEN_BAO;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user