2014-01-14 05:37:06 +01:00
|
|
|
#ifndef OPENMW_MECHANICS_LEVELLEDLIST_H
|
|
|
|
#define OPENMW_MECHANICS_LEVELLEDLIST_H
|
|
|
|
|
2016-06-17 23:07:16 +09:00
|
|
|
#include <components/misc/rng.hpp>
|
|
|
|
|
2023-06-11 15:13:46 +02:00
|
|
|
#include <optional>
|
|
|
|
|
2023-04-06 08:52:37 +02:00
|
|
|
namespace ESM
|
|
|
|
{
|
|
|
|
struct LevelledListBase;
|
|
|
|
class RefId;
|
|
|
|
}
|
2014-01-14 05:37:06 +01:00
|
|
|
|
|
|
|
namespace MWMechanics
|
|
|
|
{
|
|
|
|
|
|
|
|
/// @return ID of resulting item, or empty if none
|
2023-06-11 15:13:46 +02:00
|
|
|
ESM::RefId getLevelledItem(
|
|
|
|
const ESM::LevelledListBase* levItem, bool creature, Misc::Rng::Generator& prng, std::optional<int> level = {});
|
2014-01-14 05:37:06 +01:00
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|