23 lines
905 B
C++
23 lines
905 B
C++
#ifndef PKMNLIB_ITEM_HPP
|
|
#define PKMNLIB_ITEM_HPP
|
|
|
|
#include <CreatureLib/Library/Items/Item.hpp>
|
|
namespace PkmnLib::Library {
|
|
class Item final : public CreatureLib::Library::Item {
|
|
uint8_t _flingPower;
|
|
|
|
public:
|
|
Item(const ArbUt::StringView& name, CreatureLib::Library::ItemCategory category,
|
|
CreatureLib::Library::BattleItemCategory battleCategory, int32_t price,
|
|
const CreatureLib::Library::SecondaryEffect* effect,
|
|
const CreatureLib::Library::SecondaryEffect* battleTriggerEffect,
|
|
const std::unordered_set<uint32_t>& flags, uint8_t flingPower) noexcept
|
|
: CreatureLib::Library::Item(name, category, battleCategory, price, battleTriggerEffect, effect, flags),
|
|
_flingPower(flingPower) {}
|
|
|
|
inline uint8_t GetFlingPower() const noexcept { return _flingPower; }
|
|
};
|
|
}
|
|
|
|
#endif // PKMNLIB_ITEM_HPP
|