mirror of
https://github.com/GabsPuNs/Project-Zenith-Main.git
synced 2026-05-25 12:14:34 +00:00
* Remove stdafx.h and some <unordered_set> includes * Update Minecraft Server Defines and remove more unused folders/files * Unbloat stdafx.h from Minecraft.World
16 lines
224 B
C++
16 lines
224 B
C++
|
|
#include "BookItem.h"
|
|
|
|
BookItem::BookItem(int id) : Item(id)
|
|
{
|
|
}
|
|
|
|
bool BookItem::isEnchantable(shared_ptr<ItemInstance> itemInstance)
|
|
{
|
|
return itemInstance->count == 1;
|
|
}
|
|
|
|
int BookItem::getEnchantmentValue()
|
|
{
|
|
return 1;
|
|
} |