first commit
This commit is contained in:
22
Minecraft.World/FireAspectEnchantment.cpp
Normal file
22
Minecraft.World/FireAspectEnchantment.cpp
Normal file
@@ -0,0 +1,22 @@
|
||||
#include "stdafx.h"
|
||||
#include "FireAspectEnchantment.h"
|
||||
|
||||
FireAspectEnchantment::FireAspectEnchantment(int id, int frequency) : Enchantment(id, frequency, EnchantmentCategory::weapon)
|
||||
{
|
||||
setDescriptionId(IDS_ENCHANTMENT_FIRE);
|
||||
}
|
||||
|
||||
int FireAspectEnchantment::getMinCost(int level)
|
||||
{
|
||||
return 10 + 20 * (level - 1);
|
||||
}
|
||||
|
||||
int FireAspectEnchantment::getMaxCost(int level)
|
||||
{
|
||||
return Enchantment::getMinCost(level) + 50;
|
||||
}
|
||||
|
||||
int FireAspectEnchantment::getMaxLevel()
|
||||
{
|
||||
return 2;
|
||||
}
|
||||
Reference in New Issue
Block a user