TU43 Release 1

+ Mending & FrostWalker (Needs some tlc)
+ Path Blocks
+ All Beetroot Items
- Some SWF & Texture atlasChanges
This commit is contained in:
Tranqlmao
2026-07-06 23:28:11 -04:00
parent b5707e8898
commit 37cd621561
41 changed files with 770 additions and 25 deletions
+29
View File
@@ -0,0 +1,29 @@
#include "stdafx.h"
#include "net.minecraft.world.item.h"
#include "ItemInstance.h"
#include "MendingEnchantment.h"
MendingEnchantment::MendingEnchantment(int id, int frequency) : Enchantment(id, frequency, EnchantmentCategory::all)
{
setDescriptionId(IDS_ENCHANTMENT_MENDING);
}
int MendingEnchantment::getMinCost(int level)
{
return level * 25;
}
int MendingEnchantment::getMaxCost(int level)
{
return getMinCost(level) + 50;
}
int MendingEnchantment::getMaxLevel()
{
return 1;
}
bool MendingEnchantment::canEnchant(shared_ptr<ItemInstance> item)
{
return item->isDamageableItem();
}