mirror of
https://github.com/neoStudiosLCE/neoLegacy.git
synced 2026-06-20 14:32:54 +00:00
25 lines
556 B
C++
25 lines
556 B
C++
#include "stdafx.h"
|
|
#include "LuckOfTheSeaEnchantment.h"
|
|
|
|
|
|
LuckOfTheSeaEnchantment::LuckOfTheSeaEnchantment(int id, int frequency) : Enchantment(id, frequency, EnchantmentCategory::fishing_rod)
|
|
{
|
|
setDescriptionId(IDS_ENCHANTMENT_LUCK_OF_THE_SEA);
|
|
}
|
|
|
|
// Source: https://github.com/GRAnimated/MinecraftLCE
|
|
|
|
int LuckOfTheSeaEnchantment::getMinCost(int level)
|
|
{
|
|
return 9 * level + 6;
|
|
}
|
|
|
|
int LuckOfTheSeaEnchantment::getMaxCost(int level)
|
|
{
|
|
return Enchantment::getMinCost(level) + 50;;
|
|
}
|
|
|
|
int LuckOfTheSeaEnchantment::getMaxLevel()
|
|
{
|
|
return 3;
|
|
} |