This repository has been archived on 2026-05-14. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
MinecraftConsoles/Minecraft.World/ArrowInfiniteEnchantment.cpp
2026-03-01 12:16:08 +08:00

22 lines
440 B
C++

#include "stdafx.h"
#include "ArrowInfiniteEnchantment.h"
ArrowInfiniteEnchantment::ArrowInfiniteEnchantment(int id, int frequency) : Enchantment(id, frequency, EnchantmentCategory::bow)
{
setDescriptionId(IDS_ENCHANTMENT_ARROW_INFINITE);
}
int ArrowInfiniteEnchantment::getMinCost(int level)
{
return 20;
}
int ArrowInfiniteEnchantment::getMaxCost(int level)
{
return 50;
}
int ArrowInfiniteEnchantment::getMaxLevel()
{
return 1;
}