[10958] Rename function to CanUseEquippedWeapon

Signed-off-by: NoFantasy <nofantasy@nf.no>
This commit is contained in:
NoFantasy 2011-01-04 10:28:20 +01:00
parent 4fe41fb335
commit b3076146fc
6 changed files with 9 additions and 9 deletions

View file

@ -7289,7 +7289,7 @@ void Player::_ApplyItemBonuses(ItemPrototype const *proto, uint8 slot, bool appl
ApplyFeralAPBonus(feral_bonus, apply);
}
if (!IsUseEquipedWeapon(attType))
if (!CanUseEquippedWeapon(attType))
return;
if (proto->Delay)
@ -9095,7 +9095,7 @@ Item* Player::GetWeaponForAttack(WeaponAttackType attackType, bool nonbroken, bo
if (!item || item->GetProto()->Class != ITEM_CLASS_WEAPON)
return NULL;
if (useable && !IsUseEquipedWeapon(attackType))
if (useable && !CanUseEquippedWeapon(attackType))
return NULL;
if (nonbroken && item->IsBroken())
@ -9113,7 +9113,7 @@ Item* Player::GetShield(bool useable) const
if (!useable)
return item;
if (item->IsBroken() || !IsUseEquipedWeapon(OFF_ATTACK))
if (item->IsBroken() || !CanUseEquippedWeapon(OFF_ATTACK))
return NULL;
return item;