2019-12-30 15:19:53 +00:00
|
|
|
#ifndef PKMNLIB_ITEM_HPP
|
|
|
|
#define PKMNLIB_ITEM_HPP
|
|
|
|
|
2020-02-08 18:22:29 +00:00
|
|
|
#include <CreatureLib/Library/Items/Item.hpp>
|
2019-12-30 15:19:53 +00:00
|
|
|
namespace PkmnLib::Library {
|
2020-10-15 16:13:00 +00:00
|
|
|
class Item final : public CreatureLib::Library::Item {
|
2022-03-25 18:08:42 +00:00
|
|
|
u8 _flingPower;
|
2020-02-13 10:09:24 +00:00
|
|
|
|
2020-01-22 09:33:10 +00:00
|
|
|
public:
|
2020-07-04 13:50:30 +00:00
|
|
|
Item(const ArbUt::StringView& name, CreatureLib::Library::ItemCategory category,
|
2020-01-22 09:33:10 +00:00
|
|
|
CreatureLib::Library::BattleItemCategory battleCategory, int32_t price,
|
2022-03-25 18:08:42 +00:00
|
|
|
const CreatureLib::Library::SecondaryEffect* nullable effect,
|
|
|
|
const CreatureLib::Library::SecondaryEffect* nullable battleTriggerEffect,
|
|
|
|
const std::unordered_set<uint32_t>& flags, u8 flingPower) noexcept
|
2022-02-19 13:04:43 +00:00
|
|
|
: CreatureLib::Library::Item(name, category, battleCategory, price, battleTriggerEffect, effect, flags),
|
2021-03-07 16:09:30 +00:00
|
|
|
_flingPower(flingPower) {}
|
2020-02-13 10:09:24 +00:00
|
|
|
|
2022-03-25 18:08:42 +00:00
|
|
|
inline u8 GetFlingPower() const noexcept { return _flingPower; }
|
2020-01-22 09:33:10 +00:00
|
|
|
};
|
2019-12-30 15:19:53 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
#endif // PKMNLIB_ITEM_HPP
|