mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-04 02:41:19 +00:00
22 lines
668 B
C++
22 lines
668 B
C++
#ifndef OPENMW_WEAPON_PRIORITY_H
|
|
#define OPENMW_WEAPON_PRIORITY_H
|
|
|
|
namespace MWWorld
|
|
{
|
|
class Ptr;
|
|
}
|
|
|
|
namespace MWMechanics
|
|
{
|
|
float rateWeapon(const MWWorld::Ptr& item, const MWWorld::Ptr& actor, const MWWorld::Ptr& enemy, int type = -1,
|
|
float arrowRating = 0.f, float boltRating = 0.f);
|
|
|
|
float rateAmmo(const MWWorld::Ptr& actor, const MWWorld::Ptr& enemy, MWWorld::Ptr& bestAmmo, int ammoType);
|
|
float rateAmmo(const MWWorld::Ptr& actor, const MWWorld::Ptr& enemy, int ammoType);
|
|
|
|
float vanillaRateWeaponAndAmmo(
|
|
const MWWorld::Ptr& weapon, const MWWorld::Ptr& ammo, const MWWorld::Ptr& actor, const MWWorld::Ptr& enemy);
|
|
}
|
|
|
|
#endif
|