first commit
This commit is contained in:
22
Minecraft.World/ArrowInfiniteEnchantment.cpp
Normal file
22
Minecraft.World/ArrowInfiniteEnchantment.cpp
Normal file
@@ -0,0 +1,22 @@
|
||||
#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;
|
||||
}
|
||||
Reference in New Issue
Block a user