Files
LegacyRenouveau/Minecraft.World/MendingEnchantment.h
T
Fireblade 525b89484c fix: enchantment table + frost walker (kinda)
fixes:
- treasure enchants being selectable within the enchantment table menu
- frost walker resemblance to decompiled legacy console edition
- enchantment table featuring hot-swappable abilities where the player could replace one tool with another whilst keeping the exact same potential enchantments in the enchant menu
2026-07-18 22:03:54 -04:00

16 lines
390 B
C++

#pragma once
#include "Enchantment.h"
class MendingEnchantment : public Enchantment
{
public:
MendingEnchantment(int id, int freq);
virtual int getMinCost(int level) override;
virtual int getMaxCost(int level) override;
virtual int getMaxLevel() override;
virtual bool isTreasureOnly() override { return true; };
virtual bool canEnchant(shared_ptr<ItemInstance> item) override;
};