mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-04-23 19:33:36 +00:00
11 lines
262 B
C++
11 lines
262 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; } |