mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-04-25 11:03:39 +00:00
17 lines
261 B
C++
17 lines
261 B
C++
#include "../Platform/stdafx.h"
|
|
|
|
#include "BookItem.h"
|
|
|
|
BookItem::BookItem(int id) : Item(id)
|
|
{
|
|
}
|
|
|
|
bool BookItem::isEnchantable(std::shared_ptr<ItemInstance> itemInstance)
|
|
{
|
|
return itemInstance->count == 1;
|
|
}
|
|
|
|
int BookItem::getEnchantmentValue()
|
|
{
|
|
return 1;
|
|
} |