mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/4jcraft.git
synced 2026-09-28 21:41:15 +00:00
chore: format Minecraft.World
This commit is contained in:
@@ -2,28 +2,20 @@
|
||||
#include "../Headers/net.minecraft.world.item.h"
|
||||
#include "DiggingEnchantment.h"
|
||||
|
||||
DiggingEnchantment::DiggingEnchantment(int id, int frequency) : Enchantment(id, frequency, EnchantmentCategory::digger)
|
||||
{
|
||||
setDescriptionId(IDS_ENCHANTMENT_DIGGING);
|
||||
DiggingEnchantment::DiggingEnchantment(int id, int frequency)
|
||||
: Enchantment(id, frequency, EnchantmentCategory::digger) {
|
||||
setDescriptionId(IDS_ENCHANTMENT_DIGGING);
|
||||
}
|
||||
|
||||
int DiggingEnchantment::getMinCost(int level)
|
||||
{
|
||||
return 1 + 10 * (level - 1);
|
||||
int DiggingEnchantment::getMinCost(int level) { return 1 + 10 * (level - 1); }
|
||||
|
||||
int DiggingEnchantment::getMaxCost(int level) {
|
||||
return Enchantment::getMinCost(level) + 50;
|
||||
}
|
||||
|
||||
int DiggingEnchantment::getMaxCost(int level)
|
||||
{
|
||||
return Enchantment::getMinCost(level) + 50;
|
||||
}
|
||||
int DiggingEnchantment::getMaxLevel() { return 5; }
|
||||
|
||||
int DiggingEnchantment::getMaxLevel()
|
||||
{
|
||||
return 5;
|
||||
}
|
||||
|
||||
bool DiggingEnchantment::canEnchant(std::shared_ptr<ItemInstance> item)
|
||||
{
|
||||
if (item->getItem()->id == Item::shears_Id) return true;
|
||||
return Enchantment::canEnchant(item);
|
||||
bool DiggingEnchantment::canEnchant(std::shared_ptr<ItemInstance> item) {
|
||||
if (item->getItem()->id == Item::shears_Id) return true;
|
||||
return Enchantment::canEnchant(item);
|
||||
}
|
||||
Reference in New Issue
Block a user