2026-03-01 12:16:08 +08:00
|
|
|
#include "stdafx.h"
|
|
|
|
|
|
|
|
|
|
#include "BookItem.h"
|
|
|
|
|
|
|
|
|
|
BookItem::BookItem(int id) : Item(id)
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
2026-03-02 17:37:16 +07:00
|
|
|
bool BookItem::isEnchantable(shared_ptr<ItemInstance> itemInstance)
|
2026-03-01 12:16:08 +08:00
|
|
|
{
|
|
|
|
|
return itemInstance->count == 1;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
int BookItem::getEnchantmentValue()
|
|
|
|
|
{
|
|
|
|
|
return 1;
|
|
|
|
|
}
|