mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-07-14 14:57:02 +00:00
16 lines
570 B
C++
16 lines
570 B
C++
#include "ArrowInfiniteEnchantment.h"
|
|
|
|
#include "minecraft/world/item/enchantment/Enchantment.h"
|
|
#include "minecraft/world/item/enchantment/EnchantmentCategory.h"
|
|
#include "strings.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; } |