mirror of
https://github.com/GabsPuNs/Project-Zenith-Main.git
synced 2026-05-27 05:04:37 +00:00
* Remove stdafx.h and some <unordered_set> includes * Update Minecraft Server Defines and remove more unused folders/files * Unbloat stdafx.h from Minecraft.World
21 lines
405 B
C++
21 lines
405 B
C++
#include "OxygenEnchantment.h"
|
|
|
|
OxygenEnchantment::OxygenEnchantment(int id, int frequency) : Enchantment(id, frequency, EnchantmentCategory::armor_head)
|
|
{
|
|
setDescriptionId(IDS_ENCHANTMENT_OXYGEN);
|
|
}
|
|
|
|
int OxygenEnchantment::getMinCost(int level)
|
|
{
|
|
return 10 * level;
|
|
}
|
|
|
|
int OxygenEnchantment::getMaxCost(int level)
|
|
{
|
|
return getMinCost(level) + 30;
|
|
}
|
|
|
|
int OxygenEnchantment::getMaxLevel()
|
|
{
|
|
return 3;
|
|
} |